def ApplyAttributes(self, attributes): GaugeCircular.ApplyAttributes(self, attributes) self.gauge.OnMouseMove = self.OnMouseMove self.bgGauge.OnMouseMove = self.OnMouseMove self.gauge.GetTooltipPosition = self.GetTooltipPosition self.bgGauge.GetTooltipPosition = self.GetTooltipPosition self.currentValue = 0
def ApplyAttributes(self, attributes): attributes['useRealTime'] = False GaugeCircular.ApplyAttributes(self, attributes) radius = attributes.get('radius', self.default_radius) self.animatedGauge = GaugeCircular(parent=self, name='animatedGauge', radius=radius, lineWidth=LINE_WIDTH, showMarker=False, colorStart=WHITE_COLOR, colorEnd=WHITE_COLOR, colorBg=NO_COLOR, state=uiconst.UI_DISABLED, idx=0, useRealTime=False) self.stalemateTextureWidth = 2 * math.pi * radius / 7 self.SetAnimatedGaugeTexture(self.gaugeArrowRightTexturePath, ARROW_TEXTURE_WIDTH) self.animatedGauge.gauge.spriteEffect = trinity.TR2_SFX_COPY self.animatedGauge.gauge.texture.useTransform = True
def ApplyAttributes(self, attributes): GaugeCircular.ApplyAttributes(self, attributes) self.jobData = attributes.jobData