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')
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)
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()
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)
def ApplyAttributes(self, attributes): ButtonIcon.ApplyAttributes(self, attributes) self.factionID = attributes.factionID self.CheckBlink()
def ApplyAttributes(self, attributes): ButtonIcon.ApplyAttributes(self, attributes)
def ApplyAttributes(self, attributes): ButtonIcon.ApplyAttributes(self, attributes) self.controller = attributes.controller
def ApplyAttributes(self, attributes): ButtonIcon.ApplyAttributes(self, attributes) self.settingGroupKeys = attributes.settingGroupKeys self.callback = attributes.callback self.SetTexturePath(ICON_ROOT + 'icon_const_group.png')
def ApplyAttributes(self, attributes): ButtonIcon.ApplyAttributes(self, attributes) self.settingGroupKey = VIEWMODE_MARKERS_SETTINGS self.callback = attributes.callback self.SetTexturePath(ICON_ROOT + 'markersIcon.png')
def ApplyAttributes(self, attributes): ButtonIcon.ApplyAttributes(self, attributes) self.settingGroupKey = attributes.settingGroupKey self.callback = attributes.callback self.ReloadSettingValue()
def ApplyAttributes(self, attributes): ButtonIcon.ApplyAttributes(self, attributes) self.activityID, self.bpData = attributes.args