Пример #1
0
 def ApplyAttributes(self, attributes):
     uicls.Container.ApplyAttributes(self, attributes)
     self.entityID = attributes.entityID
     self.clickFunc = None
     self.clickArgs = ()
     self.newsTicker = ScreenNewsTicker(parent=self)
     self.bottomCont = uicls.Container(name='bottomCont',
                                       parent=self,
                                       align=uiconst.TOBOTTOM,
                                       height=60,
                                       state=uiconst.UI_DISABLED)
     wedgeBracket = uicls.ScreenWedgeBracketTop(parent=self.bottomCont,
                                                hasCorners=False,
                                                wedgePosRatio=0.806,
                                                wedgeWidth=30,
                                                wedgeTopStart=0,
                                                appear=True)
     self.hoverLabel = uicls.Label(name='hoverLabel',
                                   parent=self.bottomCont,
                                   align=uiconst.CENTER,
                                   fontsize=35,
                                   color=util.Color.WHITE,
                                   uppercase=True,
                                   bold=True)
     self.hoverLabel.opacity = 0.0
     self.hoverFill = uicls.Fill(parent=self, color=(1.0, 1.0, 1.0, 0.0))
     self.mainCont = uicls.Container(name='mainCont',
                                     parent=self,
                                     state=uiconst.UI_DISABLED)
     self.mainCont.cursor = uiconst.UICURSOR_SELECT
Пример #2
0
 def ApplyAttributes(self, attributes):
     ScreenFrameBase.ApplyAttributes(self, attributes)
     self.topBracket = uicls.ScreenWedgeBracketTop(parent=self.bracketLayer,
                                                   wedgePosRatio=0.3,
                                                   wedgeWidth=200,
                                                   hasCorners=False)
     self.bottomBracket = uicls.ScreenSimpleBracketBottom(
         parent=self.bracketLayer)
Пример #3
0
 def ApplyAttributes(self, attributes):
     uicls._ScreenFrameBase.ApplyAttributes(self, attributes)
     self.bottomBracket = uicls.ScreenWedgeBracketBottom(
         parent=self.bracketLayer,
         wedgePosRatio=0.3,
         rotation=math.pi,
         align=uiconst.TOBOTTOM)
     self.topBracket = uicls.ScreenWedgeBracketTop(parent=self.bracketLayer,
                                                   wedgePosRatio=0.3,
                                                   rotation=0)