diff --git a/direct/src/gui/Label.py b/direct/src/gui/Label.py index 9f47f527f0..0fcf0a6096 100644 --- a/direct/src/gui/Label.py +++ b/direct/src/gui/Label.py @@ -11,8 +11,10 @@ ButtonLit = 3 ButtonDown = 4 ButtonInactive = 5 Sign = 6 -ScrollTitle = 7 -ScrollItem = 8 +SignBlack = 7 +ScrollTitle = 8 +ScrollItem = 9 + def textLabel(string, style, scale = 0.1, @@ -91,6 +93,11 @@ def textLabelAndText(string, style, text.setTextColor(1., 0., 0., 1.) text.clearCard() + elif style == SignBlack: + # For a black sign, we want black text with no background card. + text.setTextColor(0., 0., 0., 1.) + text.clearCard() + elif style == ScrollTitle: text.setTextColor(1., 0., 0., 1.) text.setCardColor(1., 1., 1., 0.)