mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
drose added new style: BlackOnWhite
This commit is contained in:
parent
d835222177
commit
e50a7d67d3
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user