def __init__(self, tabBar, name, **kw): optiondefs = (('modelName', 'general_frame_c', None), ('frameSize', (0, 0.205, 0.0, 0.1), None), ('borderScale', 0.135, None), ('bgBuffer', 0.14, None), ('showBackground', True, None), ('bgColorScale', VBase4(0, 0, 0, 1), None), ('flatten', 0, None), ('label', '', None), ('textMayChange', 0, None), ('textpos', (0.1, 0.025, 0), None)) self.defineoptions(kw, optiondefs) TopTab.__init__(self, tabBar, name, **kw) self.initialiseoptions(ShipTab) self.guiComponents['background'].setTransparency(0, 1) self.label = DirectLabel(parent=self, relief=None, state=DGG.DISABLED, text=name, text_pos=self['textpos'], text_scale=0.05, text_align=TextNode.ACenter, text_fg=PiratesGuiGlobals.TextFG1, text_shadow=PiratesGuiGlobals.TextShadow, text_font=PiratesGlobals.getInterfaceFont(), textMayChange=1) return
def __init__(self, tabBar, name, text_xyz=None, **kw): optiondefs = (('modelName', 'general_frame_c', None), ('frameSize', (0, 0.22, 0.0, 0.10000000000000001), None), ('borderScale', 0.13500000000000001, None), ('bgBuffer', 0.14000000000000001, None), ('label', '', None), ('textMayChange', 1, None)) self.defineoptions(kw, optiondefs) TopTab.__init__(self, tabBar, name) self.initialiseoptions(ChatTab) text_pos = (0.11700000000000001, 0.040000000000000001, 0) if text_xyz: text_pos = text_xyz self.myTextScale = PiratesGuiGlobals.TextScaleLarge * 1.1000000000000001 self.myLabel = DirectLabel(parent=self, relief=None, state=DGG.DISABLED, text=self['label'], text_scale=self.myTextScale, text_align=TextNode.ACenter, text_fg=PiratesGuiGlobals.TextFG1, text_shadow=PiratesGuiGlobals.TextShadow, text_pos=text_pos, text_font=PiratesGlobals.getInterfaceFont(), textMayChange=1)
def __init__(self, tabBar, name, **kw): optiondefs = ( ("modelName", "general_frame_c", None), ("frameSize", (0, 0.20499999999999999, 0.0, 0.10000000000000001), None), ("borderScale", 0.13500000000000001, None), ("bgBuffer", 0.14000000000000001, None), ("showBackground", True, None), ("bgColorScale", VBase4(0, 0, 0, 1), None), ("flatten", 0, None), ("label", "", None), ("textMayChange", 0, None), ("textpos", (0.10000000000000001, 0.025000000000000001, 0), None), ) self.defineoptions(kw, optiondefs) TopTab.__init__(self, tabBar, name) self.initialiseoptions(ShipTab) self.guiComponents["background"].setTransparency(0, 1) self.label = DirectLabel( parent=self, relief=None, state=DGG.DISABLED, text=name, text_pos=self["textpos"], text_scale=0.050000000000000003, text_align=TextNode.ACenter, text_fg=PiratesGuiGlobals.TextFG1, text_shadow=PiratesGuiGlobals.TextShadow, text_font=PiratesGlobals.getInterfaceFont(), textMayChange=1, )
def __init__(self, tabBar, name, **kw): optiondefs = (('modelName', 'general_frame_c', None), ('frameSize', (0, 0.20499999999999999, 0.0, 0.10000000000000001), None), ('borderScale', 0.13500000000000001, None), ('bgBuffer', 0.14000000000000001, None), ('showBackground', True, None), ('bgColorScale', VBase4(0, 0, 0, 1), None), ('flatten', 0, None), ('label', '', None), ('textMayChange', 0, None), ('textpos', (0.10000000000000001, 0.025000000000000001, 0), None)) self.defineoptions(kw, optiondefs) TopTab.__init__(self, tabBar, name, **None) self.initialiseoptions(ShipTab) self.guiComponents['background'].setTransparency(0, 1) self.label = DirectLabel(parent = self, relief = None, state = DGG.DISABLED, text = name, text_pos = self['textpos'], text_scale = 0.050000000000000003, text_align = TextNode.ACenter, text_fg = PiratesGuiGlobals.TextFG1, text_shadow = PiratesGuiGlobals.TextShadow, text_font = PiratesGlobals.getInterfaceFont(), textMayChange = 1)
def __init__(self, tabBar, name, **kw): optiondefs = (('modelName', 'general_frame_c', None), ('frameSize', (0, 0.745, 0.0, 0.11), None), ('borderScale', 0.135, None), ('bgBuffer', 0.14, None)) self.defineoptions(kw, optiondefs) TopTab.__init__(self, tabBar, name, **kw) self.initialiseoptions(ChatTab) return
def __init__(self, tabBar, name, text_xyz = None, **kw): optiondefs = (('modelName', 'general_frame_c', None), ('frameSize', (0, 0.22, 0.0, 0.10000000000000001), None), ('borderScale', 0.13500000000000001, None), ('bgBuffer', 0.14000000000000001, None), ('label', '', None), ('textMayChange', 1, None)) self.defineoptions(kw, optiondefs) TopTab.__init__(self, tabBar, name) self.initialiseoptions(ChatTab) text_pos = (0.11700000000000001, 0.040000000000000001, 0) if text_xyz: text_pos = text_xyz self.myTextScale = PiratesGuiGlobals.TextScaleLarge * 1.1000000000000001 self.myLabel = DirectLabel(parent = self, relief = None, state = DGG.DISABLED, text = self['label'], text_scale = self.myTextScale, text_align = TextNode.ACenter, text_fg = PiratesGuiGlobals.TextFG1, text_shadow = PiratesGuiGlobals.TextShadow, text_pos = text_pos, text_font = PiratesGlobals.getInterfaceFont(), textMayChange = 1)
def destroy(self): self.myLabel = None TopTab.destroy(self) return
def __init__(self, tabBar, name, **kw): optiondefs = (('modelName', 'general_frame_c', None), ('frameSize', (0, 0.745, 0.0, 0.11), None), ('borderScale', 0.13500000000000001, None), ('bgBuffer', 0.14000000000000001, None)) self.defineoptions(kw, optiondefs) TopTab.__init__(self, tabBar, name) self.initialiseoptions(ChatTab)
def destroy(self): self.myLabel = None TopTab.destroy(self)