Пример #1
0
 def ApplyAttributes(self, attributes):
     VectorLineTrace.ApplyAttributes(self, attributes)
     ColorThemeMixin.ApplyAttributes(self, attributes)
     self.lineType = LINE_SOLID
     self.fromID = attributes.fromID
     self.toID = attributes.toID
     self.glowLine = VectorLineTrace(parent=self.parent, lineWidth=20, spriteEffect=trinity.TR2_SFX_COPY, texturePath='res:/UI/Texture/classes/Achievements/lineGlow.png', name='glowLine', blendMode=trinity.TR2_SBM_ADDX2, opacity=0.3)
     sm.RegisterNotify(self)
Пример #2
0
 def ApplyAttributes(self, attributes):
     VectorLineTrace.ApplyAttributes(self, attributes)
     self.dashSizeFactor = attributes.dashSizeFactor or 6.0
     self.startAngle = attributes.startAngle or mathUtil.DegToRad(138)
     self.range = attributes.range or mathUtil.DegToRad(265)
     self.radius = attributes.radius or 30
     self.lineWidth = attributes.lineWidth or 2.5
     self.gapEnds = attributes.gapEnds or True
     self.dashColors = attributes.dashColors or None
     self.PlotFighters()
     sm.RegisterNotify(self)
Пример #3
0
 def ApplyAttributes(self, attributes):
     VectorLineTrace.ApplyAttributes(self, attributes)
     self.graphContainer = attributes.get('graphContainer', None)
     self.data = attributes.get('data', None)
     if self.data is None:
         return
     self.maxValue = attributes.get('maxValue', 0)
     self.color = attributes.get('color', self.default_color)
     self.animation = attributes.get('animation', self.default_animation)
     self.animationDelay = attributes.get('animationDelay',
                                          self.default_animationDelay)
     self.animationDuration = attributes.get('animationDuration',
                                             self.default_animationDuration)
     self.zoom = attributes.get('zoom', self.default_zoom)
     self.axis = attributes.get('axis', None)
     self.Build()
Пример #4
0
 def ApplyAttributes(self, attributes):
     VectorLineTrace.ApplyAttributes(self, attributes)
     self.data = attributes.get('data', [])
     self.maxValue = attributes.get('maxValue', 0)
     self.Build()
Пример #5
0
 def ApplyAttributes(self, attributes):
     VectorLineTrace.ApplyAttributes(self, attributes)