예제 #1
0
 def ApplyAttributes(self, attributes):
     Button.ApplyAttributes(self, attributes)
     self.progressFill = FillThemeColored(
         parent=self,
         name='progressFill',
         state=uiconst.UI_DISABLED,
         align=uiconst.TOLEFT_PROP,
         colorType=uiconst.COLORTYPE_UIHEADER,
         opacity=1.0)
예제 #2
0
 def ApplyAttributes(self, attributes):
     Button.ApplyAttributes(self, attributes)
     self.isStopPending = False
     self.isArrowsAnimating = False
     self.sr.label.uppercase = True
     self.sr.label.fontsize = 13
     self.sr.label.bold = True
     self.pattern = Sprite(name='bgGradient', bgParent=self, texturePath='res:/UI/Texture/Classes/Industry/CenterBar/buttonPattern.png', color=Color.GRAY2, idx=0)
     self.bg = Sprite(name='bg', bgParent=self, opacity=0.0, texturePath='res:/UI/Texture/Classes/Industry/CenterBar/buttonBg.png', color=Color.GRAY2, idx=0, state=uiconst.UI_HIDDEN)
     self.arrows = Sprite(bgParent=self, texturePath='res:/UI/Texture/Classes/Industry/CenterBar/arrowMask.png', textureSecondaryPath='res:/UI/Texture/Classes/Industry/CenterBar/arrows.png', spriteEffect=trinity.TR2_SFX_MODULATE, color=Color.GRAY2, idx=0)
     self.arrows.translationSecondary = (-0.16, 0)
     self.errorFrame = ErrorFrame(bgParent=self)
     self.errorFrame.Hide()
     color = attributes.color
     if color is None:
         color = sm.GetService('uiColor').GetUIColor(uiconst.COLORTYPE_UIHILIGHT)
     self.SetColor(color)
예제 #3
0
 def ApplyAttributes(self, attributes):
     Button.ApplyAttributes(self, attributes)
     self.tooltipErrors = None
     self.jobData = attributes.jobData
     self.isStopPending = False
     self.isArrowsAnimating = False
     self.func = self.ClickFunc
     self.sr.label.uppercase = True
     self.sr.label.fontsize = 13
     self.sr.label.bold = True
     self.pattern = Sprite(
         name='bgGradient',
         bgParent=self,
         texturePath=
         'res:/UI/Texture/Classes/Industry/CenterBar/buttonPattern.png',
         color=Color.GRAY2,
         idx=0)
     self.bg = Sprite(
         name='bg',
         bgParent=self,
         opacity=0.0,
         texturePath=
         'res:/UI/Texture/Classes/Industry/CenterBar/buttonBg.png',
         color=Color.GRAY2,
         idx=0,
         state=uiconst.UI_HIDDEN)
     self.arrows = Sprite(
         bgParent=self,
         texturePath=
         'res:/UI/Texture/Classes/Industry/CenterBar/arrowMask.png',
         textureSecondaryPath=
         'res:/UI/Texture/Classes/Industry/CenterBar/arrows.png',
         spriteEffect=trinity.TR2_SFX_MODULATE,
         color=Color.GRAY2,
         idx=0)
     self.arrows.translationSecondary = (-0.16, 0)
     self.errorFrame = ErrorFrame(bgParent=self)
     self.errorFrame.Hide()