Ejemplo n.º 1
0
 def apply(self, componentScript):
     VisualState.apply(self, componentScript)
     if hasattr(componentScript, 'sliderBackground'):
         componentScript.sliderBackground.textureName = self.backgroundTextureName
         if self.thumbTextureMapping:
             applyMapping(componentScript.sliderBackground, self.backgroundTextureMappingType, self.backgroundTextureMapping)
         componentScript.sliderBackground.colour = self.backgroundColour
     if hasattr(componentScript, 'sliderThumb'):
         componentScript.sliderThumb.textureName = self.thumbTextureName
         if self.thumbTextureMapping:
             applyMapping(componentScript.sliderThumb, self.thumbTextureMappingType, self.thumbTextureMapping)
         componentScript.sliderThumb.colour = self.thumbColour
Ejemplo n.º 2
0
 def apply(self, componentScript):
     VisualState.apply(self, componentScript)
     if hasattr(componentScript, 'sliderBackground'):
         componentScript.sliderBackground.textureName = self.backgroundTextureName
         if self.thumbTextureMapping:
             applyMapping(componentScript.sliderBackground, self.backgroundTextureMappingType, self.backgroundTextureMapping)
         componentScript.sliderBackground.colour = self.backgroundColour
     if hasattr(componentScript, 'sliderThumb'):
         componentScript.sliderThumb.textureName = self.thumbTextureName
         if self.thumbTextureMapping:
             applyMapping(componentScript.sliderThumb, self.thumbTextureMappingType, self.thumbTextureMapping)
         componentScript.sliderThumb.colour = self.thumbColour