Пример #1
0
 def ConstructLayout(self):
     self.topFill = uiprimitives.Container(parent=self, name='topFill', align=uiconst.TOTOP, height=30)
     BlurredSceneUnderlay(bgParent=self.topFill)
     self.topBG = uiprimitives.Sprite(parent=self.topFill, align=uiconst.TOALL, texturePath='res:/UI/Texture/classes/Neocom/eveButtonBg.png', blendMode=trinity.TR2_SBM_ADD)
     self.main = uiprimitives.Container(name='main', parent=self, padTop=3)
     self.bgFill = FillThemeColored(parent=self, align=uiconst.TOTOP, colorType=uiconst.COLORTYPE_UIBASE, opacity=0.8)
     GradientThemeColored(parent=self, align=uiconst.TOALL, colorType=uiconst.COLORTYPE_UIBASE, rgbData=[(0.0, (1.0, 1.0, 1.0))], alphaData=[(0.0, 0.8), (0.4, 0.3), (1.0, 0.1)], rotation=-pi / 2)
     BlurredSceneUnderlay(bgParent=self, isPinned=True, opacity=0.8)
Пример #2
0
 def _ConstructBackground(self):
     self.bgGradient = uicontrols.GradientSprite(bgParent=self,
                                                 rgbData=((0, (1.0, 1.0,
                                                               1.0)), ),
                                                 alphaData=((0.0, 0.0),
                                                            (1.0, 0.07)))
     self.blurredUnderlay = BlurredSceneUnderlay(bgParent=self,
                                                 isPinned=True,
                                                 isInFocus=True)
     if self.align == uiconst.TOLEFT:
         align = uiconst.TORIGHT
     else:
         align = uiconst.TOLEFT
     self.resizeLine = uiprimitives.Line(parent=self.resizeLineCont,
                                         color=(0, 0, 0, 0),
                                         align=align,
                                         weight=3,
                                         state=uiconst.UI_NORMAL)
     self.resizeLine.OnMouseDown = self.OnReisizeLineMouseDown
     self.resizeLine.OnMouseEnter = self.OnResizeLineMouseEnter
     self.SetResizeLineCursor()
Пример #3
0
 def ConstructLayout(self):
     self.main = uiprimitives.Container(parent=self, align=uiconst.TOALL)
     FillUnderlay(parent=self,
                  colorType=uiconst.COLORTYPE_UIBASE,
                  opacity=0.8)
     BlurredSceneUnderlay(bgParent=self, isPinned=True)
 def Prepare_Background_(self):
     self.sr.underlay = WindowUnderlay(parent=self, name='underlay', state=uiconst.UI_DISABLED)
     self.blinkFill = uiprimitives.Sprite(bgParent=self.sr.underlay, name='blinkFill', texturePath='res:/UI/Texture/classes/Tutorial/fill_no_border.png', state=uiconst.UI_DISABLED, color=(1, 1, 1, 0.5))
     self.blinkBorder = uiprimitives.Sprite(bgParent=self.sr.underlay, name='blinkBorder', texturePath='res:/UI/Texture/classes/Tutorial/border.png', state=uiconst.UI_DISABLED, color=TutorialColor.HINT_FRAME)
     uicontrols.Frame(name='frame', bgParent=self.sr.underlay, color=TutorialColor.WINDOW_FRAME, frameConst=uiconst.FRAME_BORDER1_CORNER0)
     BlurredSceneUnderlay(bgParent=self.sr.underlay)