mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
*** empty log message ***
This commit is contained in:
parent
4e9a2fec77
commit
989c4282d1
@ -64,7 +64,13 @@ def textLabelAndText(string, style,
|
|||||||
text.setCardAsMargin(0.1, 0.1, 0.0, 0.0)
|
text.setCardAsMargin(0.1, 0.1, 0.0, 0.0)
|
||||||
text.setTransform(Mat4.scaleMat(scale))
|
text.setTransform(Mat4.scaleMat(scale))
|
||||||
|
|
||||||
if style == ButtonUp:
|
# The style might *itself* be a four-component color.
|
||||||
|
if (isinstance(style, types.TupleType) or
|
||||||
|
isinstance(style, VBase4)):
|
||||||
|
# If the style is a tuple, it means black on the specified color.
|
||||||
|
text.setCardColor(style[0], style[1], style[2], style[3])
|
||||||
|
|
||||||
|
elif style == ButtonUp:
|
||||||
# This is the default: black on white.
|
# This is the default: black on white.
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user