taleSystemEffectCont.py (976B)
1 #Embedded file name: C:\BuildAgent\work\20d73f1b24eed06e\eve\release\V24.01\eve\client\script\ui\shared\incursions\taleSystemEffectCont.py 2 from carbonui import uiconst 3 from carbonui.primitives.container import Container 4 from eve.client.script.ui.shared.incursions.taleSystemEffect import TaleSystemEffect 5 from localization import GetByLabel 6 ICONSIZE = 22 7 8 class TaleSystemEffectCont(Container): 9 default_name = 'TaleSystemEffectCont' 10 default_height = ICONSIZE 11 12 def ApplyAttributes(self, attributes): 13 super(TaleSystemEffectCont, self).ApplyAttributes(attributes) 14 effects = attributes.effects 15 influence = attributes.influence 16 for effectInfo in effects: 17 effect = TaleSystemEffect(name=effectInfo['name'], align=uiconst.TOLEFT, parent=self, width=ICONSIZE, padRight=6, texturePath=effectInfo['texturePath'], hint=GetByLabel(effectInfo['hint']), isScalable=effectInfo['isScalable']) 18 effect.SetInfluence(influence)