diff --git a/direct/src/gui/OnscreenText.py b/direct/src/gui/OnscreenText.py index 0bfb0c1d1f..69c39d8c37 100644 --- a/direct/src/gui/OnscreenText.py +++ b/direct/src/gui/OnscreenText.py @@ -12,6 +12,7 @@ Plain = 1 ScreenTitle = 2 ScreenPrompt = 3 NameConfirm = 4 +BlackOnWhite = 5 class OnscreenText(PandaObject, NodePath): @@ -124,6 +125,14 @@ class OnscreenText(PandaObject, NodePath): frame = frame or (0, 0, 0, 0) align = align or TMALIGNCENTER + elif style == BlackOnWhite: + scale = scale or 0.1 + fg = fg or (0, 0, 0, 1) + bg = bg or (1, 1, 1, 1) + shadow = shadow or (0, 0, 0, 0) + frame = frame or (0, 0, 0, 0) + align = align or TMALIGNCENTER + else: raise ValueError