*** empty log message ***

This commit is contained in:
gregw 2001-03-17 03:01:29 +00:00
parent 5f558c4d7b
commit 9f49b9531a
2 changed files with 8 additions and 3 deletions

View File

@ -14,7 +14,8 @@ class Button(DirectObject):
drawOrder = getDefaultDrawOrder(),
font = getDefaultFont(),
pos = (0, 0),
geomRect = None):
geomRect = None,
style = Label.ButtonUp):
self.name = name
self.width = width
# if no label given, use the button name
@ -26,7 +27,7 @@ class Button(DirectObject):
# text label, make text button
self.label = label
self.l1 = Label.textLabel(self.label, Label.ButtonUp,
self.l1 = Label.textLabel(self.label, style,
scale, width, drawOrder, font)
if width == None:

View File

@ -11,7 +11,7 @@ ButtonDown = 3
Sign = 4
ScrollTitle = 5
ScrollItem = 6
ButtonUpGui = 7
def textLabel(string, style,
scale = 0.1,
@ -64,6 +64,10 @@ def textLabelAndText(string, style,
if style == ButtonUp:
# This is the default: black on white.
pass
elif style == ButtonUpGui:
# special GUI button with our lovely gui color
text.setCardColor(0.25, 0.7, 0.85, 1.0)
elif style == ButtonLit:
# When the mouse is over the button, the background turns