Esempio n. 1
0
 def ApplyAttributes(self, attributes):
     ButtonIcon.ApplyAttributes(self, attributes)
     self.settingGroupKey = VIEWMODE_MARKERS_SETTINGS
     self.mapViewID = attributes.Get('mapViewID',
                                     mapViewConst.MAPVIEW_PRIMARY_ID)
     self.callback = attributes.callback
     self.SetTexturePath(ICON_ROOT + 'markersIcon.png')
Esempio n. 2
0
 def ApplyAttributes(self, attributes):
     ButtonIcon.ApplyAttributes(self, attributes)
     delta = attributes.delta
     self.deltaText = Label(parent=self,
                            align=uiconst.CENTER,
                            fontsize=9,
                            top=2)
     self.UpdateDelta(delta)
Esempio n. 3
0
 def ApplyAttributes(self, attributes):
     attributes.args = (self, ) + attributes.args
     ButtonIcon.ApplyAttributes(self, attributes)
     self.loadingWheel = None
     self.menuFunc = attributes.menuFunc
     self.hintFunc = attributes.hintFunc
     self.hintLabelPath = attributes.hintLabelPath
     self.colorSelected = sm.GetService('uiColor').GetUIColor(
         uiconst.COLORTYPE_UIHILIGHT)
     self.checkmark = None
     self.buttonType = attributes.buttonType
     self.frame = Frame(bgParent=self, color=NOT_SELECTED_FRAME_COLOR)
     self.hint = self.buttonType
     self.btnSettingConfig = attributes.btnSettingConfig
     if attributes.isChecked:
         self.SetSelected()
Esempio n. 4
0
 def ApplyAttributes(self, attributes):
     ButtonIcon.ApplyAttributes(self, attributes)
     self._label = None
     self._menu = None
     self._menuButton = None
     if attributes.GetUtilMenu:
         self._getMenuFunction = attributes.GetUtilMenu
     else:
         raise RuntimeError('GetUtilMenu has to be provided in order to use UtilMenu')
     texturePath = attributes.get('texturePath', self.default_texturePath)
     closeTexturePath = attributes.get('closeTexturePath', None)
     iconSize = attributes.get('iconSize', self.default_iconSize)
     self.texturePath = texturePath
     self.iconSize = iconSize
     self.menuAlign = attributes.get('menuAlign', self.default_menuAlign)
     self.closeTexturePath = closeTexturePath or texturePath
     self.maxWidth = attributes.get('maxWidth', self.default_maxWidth)
     if attributes.label:
         self.SetLabel(attributes.label, attributes.labelAlign or uiconst.CENTERLEFT)
Esempio n. 5
0
 def ApplyAttributes(self, attributes):
     ButtonIcon.ApplyAttributes(self, attributes)
     self.factionID = attributes.factionID
     self.CheckBlink()
Esempio n. 6
0
 def ApplyAttributes(self, attributes):
     ButtonIcon.ApplyAttributes(self, attributes)
Esempio n. 7
0
 def ApplyAttributes(self, attributes):
     ButtonIcon.ApplyAttributes(self, attributes)
     self.controller = attributes.controller
Esempio n. 8
0
 def ApplyAttributes(self, attributes):
     ButtonIcon.ApplyAttributes(self, attributes)
     self.settingGroupKeys = attributes.settingGroupKeys
     self.callback = attributes.callback
     self.SetTexturePath(ICON_ROOT + 'icon_const_group.png')
Esempio n. 9
0
 def ApplyAttributes(self, attributes):
     ButtonIcon.ApplyAttributes(self, attributes)
     self.settingGroupKey = VIEWMODE_MARKERS_SETTINGS
     self.callback = attributes.callback
     self.SetTexturePath(ICON_ROOT + 'markersIcon.png')
Esempio n. 10
0
 def ApplyAttributes(self, attributes):
     ButtonIcon.ApplyAttributes(self, attributes)
     self.settingGroupKey = attributes.settingGroupKey
     self.callback = attributes.callback
     self.ReloadSettingValue()
Esempio n. 11
0
 def ApplyAttributes(self, attributes):
     ButtonIcon.ApplyAttributes(self, attributes)
     self.activityID, self.bpData = attributes.args