Пример #1
0
 def ApplyAttributes(self, attributes):
     ScreenFrameBase.ApplyAttributes(self, attributes)
     self.topBracket = uicls.ScreenSimpleBracketTop(
         parent=self.bracketLayer)
     self.bottomBracket = uicls.ScreenWedgeBracketBottom(
         parent=self.bracketLayer,
         wedgePosRatio=0.3,
         wedgeWidth=200,
         hasCorners=False)
Пример #2
0
 def ApplyAttributes(self, attributes):
     uiprimitives.Container.ApplyAttributes(self, attributes)
     wedgeBracket = uicls.ScreenWedgeBracketBottom(parent=self, hasCorners=False, wedgePosRatio=0.85, wedgeWidth=30, wedgeTopStart=0)
     wedgeBracket.AnimAppear()
     self.leftCont = uiprimitives.Container(name='leftCont', parent=self, align=uiconst.TOLEFT, width=200, padBottom=-20, padLeft=6)
     uiprimitives.Sprite(name='ICLogo', parent=self.leftCont, align=uiconst.CENTERLEFT, texturePath='res:/UI/Texture/classes/CQMainScreen/ICLogo.png', pos=(30, 4, 50, 50))
     uicontrols.Label(name='breakingNewsLabel', parent=self.leftCont, text='A DIVISION', fontsize=25, top=5, align=uiconst.TOPLEFT, left=85)
     uicontrols.Label(name='breakingNewsLabel', parent=self.leftCont, text='OF ISD', fontsize=25, top=28, align=uiconst.TOPLEFT, left=85)
     uiprimitives.Sprite(bgParent=self.leftCont, texturePath='res:/UI/Texture/classes/CQMainScreen/breakingNewsGradient.png')
     self.autoText = uicls.AutoTextScroll(parent=self, align=uiconst.TOALL, scrollSpeed=40, padBottom=-20, padLeft=-15, fadeWidth=50)
Пример #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)