From 94a2ccfb36cd9c6a319dea36a593f4090e2d207f Mon Sep 17 00:00:00 2001 From: gregw <> Date: Wed, 28 Mar 2001 19:57:26 +0000 Subject: [PATCH] *** empty log message *** --- direct/src/gui/Label.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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.)