コード例 #1
0
ファイル: button.py プロジェクト: webiumsk/WOT-0.9.14-CT
 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
ファイル: button.py プロジェクト: webiumsk/WOT-0.9.15.1
 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
ファイル: slider.py プロジェクト: webiumsk/WOT-0.9.15.1
 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
ファイル: pyguislider.py プロジェクト: kusaku/wot_scripts
 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)