Ejemplo n.º 1
0
 def _CreateBar(self, text):
     self.bar = Container(parent=self.topParent, align=uiconst.TOBOTTOM, height=self.barHeight, state=uiconst.UI_NORMAL)
     uicontrols.GradientSprite(bgParent=self.bar, rotation=-pi / 2, rgbData=[(0, (0.3, 0.3, 0.3))], alphaData=[(0, 0.5), (0.9, 0.15)])
     barLabelParent = Container(parent=self.bar, align=uiconst.CENTER, height=self.barHeight, width=300, state=uiconst.UI_DISABLED)
     self.isUpIcons = [uiprimitives.Sprite(parent=barLabelParent, align=uiconst.CENTERLEFT, pos=(-15, 0, 32, 32), name='statusIcon', state=uiconst.UI_NORMAL, texturePath='res:/UI/Texture/Icons/105_32_4.png', idx=0), uiprimitives.Sprite(parent=barLabelParent, align=uiconst.CENTERRIGHT, pos=(-15, 0, 32, 32), name='statusIcon', state=uiconst.UI_NORMAL, texturePath='res:/UI/Texture/Icons/105_32_4.png', idx=0)]
     self.barLabel = EveCaptionSmall(parent=barLabelParent, text=text, align=uiconst.CENTER)
     w = self.barLabel.width
     barLabelParent.left -= 25
     barLabelParent.width = w + 50
     self.bar.OnClick = self.ToggleBar
Ejemplo n.º 2
0
 def ApplyAttributes(self, attributes):
     Container.ApplyAttributes(self, attributes)
     self._statusIconColor = 0
     self.morph = partial(uicore.effect.MorphUI, newthread=0, time=150.0)
     self.topParent = Container(parent=self, align=uiconst.TOTOP_PROP, height=1.0)
     self.barHeight = 24
     self._CreateBar(attributes.curtainText)
     self._SetTopContainer(attributes)
     self._SetBottomContainer(attributes)
     self.isUp = False
     self.callback = attributes.callback
     self.SetStatusIconOff()
Ejemplo n.º 3
0
 def ApplyAttributes(self, attributes):
     InSpaceBracket.ApplyAttributes(self, attributes)
     self.width = 32
     self.height = 40
     container = Container(parent=self,
                           align=uiconst.BOTTOMLEFT,
                           height=8,
                           width=32)
     inner = Container(parent=container, padding=(2, 2, 2, 2))
     self.frame = Frame(parent=container)
     container.fill = Fill(parent=inner,
                           align=uiconst.TOLEFT_PROP,
                           width=0,
                           padding=(0, 0, 0, 0))
     self.capacityBar = container
Ejemplo n.º 4
0
 def ApplyAttributes(self, attributes):
     InSpaceBracket.ApplyAttributes(self, attributes)
     self.width = self.height = 32
     container = Container(parent=self,
                           align=uiconst.CENTER,
                           top=12,
                           height=30,
                           width=64)
     self.timer = Timer(parent=container,
                        align=uiconst.TOTOP,
                        height=12,
                        state=uiconst.UI_HIDDEN)