mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 16:58:40 -04:00
DirectRadioButton--removal of model-loading by default and indicator handling
Signed-off-by: rdb <git@rdb.name>
This commit is contained in:
parent
2e555db30e
commit
178c16e94b
@ -43,7 +43,7 @@ class DirectRadioButton(DirectButton):
|
||||
('boxGeom', None, None),
|
||||
('boxGeomColor', None, None),
|
||||
('boxGeomScale', 1.0, None),
|
||||
('boxImage', loader.loadModel('models/gui/radio_button_gui'), None),
|
||||
('boxImage', None, None),
|
||||
('boxImageScale', 1.0, None),
|
||||
('boxImageColor', VBase4(1, 1, 1, 1), None),
|
||||
('boxRelief', None, None),
|
||||
@ -69,9 +69,11 @@ class DirectRadioButton(DirectButton):
|
||||
# Call option initialization functions
|
||||
self.initialiseoptions(DirectRadioButton)
|
||||
# After initialization with X giving it the correct size, put back space
|
||||
if self['boxGeom'] == None:
|
||||
if self['boxGeom'] is None:
|
||||
if not 'boxRelief' in kw and self['boxImage'] is None:
|
||||
self.indicator['relief'] = DGG.SUNKEN
|
||||
self.indicator['text'] = (' ', '*')
|
||||
self.indicator['text_pos'] = (0, -.5)
|
||||
self.indicator['text_pos'] = (0, -.25)
|
||||
else:
|
||||
self.indicator['text'] = (' ', ' ')
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user