예제 #1
0
 def onSave(self, dataSection):
     VisualState.onSave(self, dataSection)
     if self.textStyle:
         dataSection.writeString('textStyle', self.textStyle)
     iconSection = dataSection.createSection('icon')
     iconSection.writeString('textureName', self.iconTextureName)
     iconSection.writeString('materialFX', self.iconMaterialFX)
     if self.iconTextureMapping:
         mappingSection = iconSection.createSection('mapping')
         self._writeMappingSection(mappingSection, self.iconTextureMappingType, self.iconTextureMapping)
     iconSection.writeVector4('colour', self.iconColour)
예제 #2
0
 def onSave(self, dataSection):
     VisualState.onSave(self, dataSection)
     if self.textStyle:
         dataSection.writeString('textStyle', self.textStyle)
     iconSection = dataSection.createSection('icon')
     iconSection.writeString('textureName', self.iconTextureName)
     iconSection.writeString('materialFX', self.iconMaterialFX)
     if self.iconTextureMapping:
         mappingSection = iconSection.createSection('mapping')
         self._writeMappingSection(mappingSection, self.iconTextureMappingType, self.iconTextureMapping)
     iconSection.writeVector4('colour', self.iconColour)
예제 #3
0
 def onSave(self, dataSection):
     VisualState.onSave(self, dataSection)
     backgroundSection = dataSection.createSection('background')
     backgroundSection.writeString('textureName', self.backgroundTextureName)
     if self.backgroundTextureMapping:
         mappingSection = backgroundSection.createSection('mapping')
         self._writeMappingSection(mappingSection, self.backgroundTextureMappingType, self.backgroundTextureMapping)
     backgroundSection.writeVector4('colour', self.backgroundColour)
     thumbSection = dataSection.createSection('thumb')
     thumbSection.writeString('textureName', self.thumbTextureName)
     if self.thumbTextureMapping:
         mappingSection = thumbSection.createSection('mapping')
         self._writeMappingSection(mappingSection, self.thumbTextureMappingType, self.thumbTextureMapping)
     thumbSection.writeVector4('colour', self.thumbColour)
예제 #4
0
 def onSave(self, dataSection):
     VisualState.onSave(self, dataSection)
     backgroundSection = dataSection.createSection('background')
     backgroundSection.writeString('textureName', self.backgroundTextureName)
     if self.backgroundTextureMapping:
         mappingSection = backgroundSection.createSection('mapping')
         self._writeMappingSection(mappingSection, self.backgroundTextureMappingType, self.backgroundTextureMapping)
     backgroundSection.writeVector4('colour', self.backgroundColour)
     thumbSection = dataSection.createSection('thumb')
     thumbSection.writeString('textureName', self.thumbTextureName)
     if self.thumbTextureMapping:
         mappingSection = thumbSection.createSection('mapping')
         self._writeMappingSection(mappingSection, self.thumbTextureMappingType, self.thumbTextureMapping)
     thumbSection.writeVector4('colour', self.thumbColour)