mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 18:31:55 -04:00
*** empty log message ***
This commit is contained in:
parent
b90dfaa600
commit
f58bab0542
@ -26,7 +26,7 @@ class DirectEntry(DirectFrame):
|
|||||||
('pgFunc', PGEntry, None),
|
('pgFunc', PGEntry, None),
|
||||||
('numStates', 3, None),
|
('numStates', 3, None),
|
||||||
('state', NORMAL, None),
|
('state', NORMAL, None),
|
||||||
('entryFont', None, None),
|
('entryFont', None, INITOPT),
|
||||||
('width', 10, self.setup),
|
('width', 10, self.setup),
|
||||||
('numLines', 5, self.setup),
|
('numLines', 5, self.setup),
|
||||||
('focus', 0, self.setFocus),
|
('focus', 0, self.setFocus),
|
||||||
@ -50,7 +50,9 @@ class DirectEntry(DirectFrame):
|
|||||||
DirectFrame.__init__(self, parent)
|
DirectFrame.__init__(self, parent)
|
||||||
|
|
||||||
if self['entryFont'] == None:
|
if self['entryFont'] == None:
|
||||||
self['entryFont'] = getDefaultFont()
|
font = getDefaultFont()
|
||||||
|
else:
|
||||||
|
font = self['entryFont']
|
||||||
|
|
||||||
# Create Text Node Component
|
# Create Text Node Component
|
||||||
self.onscreenText = self.createcomponent(
|
self.onscreenText = self.createcomponent(
|
||||||
@ -62,7 +64,7 @@ class DirectEntry(DirectFrame):
|
|||||||
text = '',
|
text = '',
|
||||||
# PGEntry assumes left alignment
|
# PGEntry assumes left alignment
|
||||||
align = TMALIGNLEFT,
|
align = TMALIGNLEFT,
|
||||||
font = self['entryFont'],
|
font = font,
|
||||||
scale = 1,
|
scale = 1,
|
||||||
# Don't get rid of the text node
|
# Don't get rid of the text node
|
||||||
mayChange = 1)
|
mayChange = 1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user