Пример #1
0
 def ApplyAttributes(self, attributes):
     InSpaceBracket.ApplyAttributes(self, attributes)
     self.damage = DamageRing(name='DamageRing', parent=self)
     self.timer = CountdownTimer(
         name='StructureCounter',
         parent=self,
         countsDown=True,
         timerFunc=blue.os.GetWallclockTime,
         timerRunningOutAnimation=TIMER_RUNNING_OUT_NO_ANIMATION)
     self.timer.Hide()
Пример #2
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)
Пример #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
Пример #4
0
 def ApplyAttributes(self, attributes):
     InSpaceBracket.ApplyAttributes(self, attributes)
     self.navSelectHilight = Container(name='navSelectHilight',
                                       parent=self,
                                       align=uiconst.CENTER,
                                       state=uiconst.UI_DISABLED,
                                       width=86,
                                       height=86)
     self.ringSprite = Sprite(
         bgParent=self.navSelectHilight,
         texturePath=
         'res:/UI/Texture/classes/ShipUI/Fighters/selectionRingInSpace.png')
     self.bracketSprite = Sprite(
         bgParent=self.navSelectHilight,
         texturePath=
         'res:/UI/Texture/classes/ShipUI/Fighters/selectionBracketInSpace.png'
     )
     isSelected = self.itemID in movementFunctions.GetFightersSelectedForNavigation(
     )
     self.navSelectHilight.display = isSelected