瀏覽代碼

*** empty log message ***

gregw 25 年之前
父節點
當前提交
94a2ccfb36
共有 1 個文件被更改,包括 9 次插入2 次删除
  1. 9 2
      direct/src/gui/Label.py

+ 9 - 2
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.)