mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-18 20:53:50 -04:00
*** empty log message ***
This commit is contained in:
parent
5432e52b5d
commit
0cc0bf5e31
@ -5,11 +5,10 @@ import GuiLabel
|
|||||||
import GuiButton
|
import GuiButton
|
||||||
|
|
||||||
guiMgr = GuiManager.GuiManager.getPtr(base.win, base.mak.node(), base.renderGui.node())
|
guiMgr = GuiManager.GuiManager.getPtr(base.win, base.mak.node(), base.renderGui.node())
|
||||||
font = loader.loadModelNode("phase_3/models/fonts/ttf-comic")
|
|
||||||
|
|
||||||
class Button(DirectObject):
|
class Button(DirectObject):
|
||||||
|
|
||||||
def __init__(self, name, label=None):
|
def __init__(self, name, label=None, font=interfaceFont):
|
||||||
self.name = name
|
self.name = name
|
||||||
# if no label given, use the button name
|
# if no label given, use the button name
|
||||||
if (label == None):
|
if (label == None):
|
||||||
|
@ -6,12 +6,12 @@ import Button
|
|||||||
import GuiLabel
|
import GuiLabel
|
||||||
import Sign
|
import Sign
|
||||||
|
|
||||||
font = (loader.loadModelOnce("phase_3/models/fonts/ttf-comic")).node()
|
|
||||||
|
|
||||||
class ScrollingLabel(PandaObject.PandaObject):
|
class ScrollingLabel(PandaObject.PandaObject):
|
||||||
|
|
||||||
# special methods
|
# special methods
|
||||||
def __init__(self, name, itemList):
|
def __init__(self, name, itemList, font=interfaceFont):
|
||||||
|
|
||||||
self.name = name
|
self.name = name
|
||||||
self.eventName = self.name
|
self.eventName = self.name
|
||||||
|
@ -6,11 +6,9 @@ import GuiLabel
|
|||||||
|
|
||||||
guiMgr = GuiManager.GuiManager.getPtr(base.win, base.mak.node(), base.renderGui.node())
|
guiMgr = GuiManager.GuiManager.getPtr(base.win, base.mak.node(), base.renderGui.node())
|
||||||
|
|
||||||
font = (loader.loadModelOnce("phase_3/models/fonts/ttf-comic")).node()
|
|
||||||
|
|
||||||
class Sign(DirectObject):
|
class Sign(DirectObject):
|
||||||
|
|
||||||
def __init__(self, name, label=None):
|
def __init__(self, name, label=None, font=interfaceFont):
|
||||||
self.name = name
|
self.name = name
|
||||||
# label in this case means GuiLabel
|
# label in this case means GuiLabel
|
||||||
if not label:
|
if not label:
|
||||||
|
@ -18,3 +18,7 @@ __builtin__.taskMgr = base.taskMgr
|
|||||||
__builtin__.eventMgr = base.eventMgr
|
__builtin__.eventMgr = base.eventMgr
|
||||||
__builtin__.messenger = base.messenger
|
__builtin__.messenger = base.messenger
|
||||||
__builtin__.config = base.config
|
__builtin__.config = base.config
|
||||||
|
|
||||||
|
# Pointer to interface font
|
||||||
|
import ToontownGlobals
|
||||||
|
__builtin__.interfaceFont = ToontownGlobals.getInterfaceFont()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user