stepHeader.py (1494B)
1 #Embedded file name: C:\BuildAgent\work\20d73f1b24eed06e\eve\release\V24.01\eve\client\script\ui\login\charcreation_new\steps\stepHeader.py 2 import math 3 from carbonui import uiconst 4 from carbonui.primitives.containerAutoSize import ContainerAutoSize 5 from eve.client.script.ui.control.eveLabel import EveHeaderLarge, EveCaptionLarge 6 from eveui import Sprite 7 8 class StepHeader(ContainerAutoSize): 9 default_name = 'StepHeader' 10 default_alignMode = uiconst.TOLEFT 11 default_height = 20 12 default_title = '' 13 default_subtitle = '' 14 15 def ApplyAttributes(self, attributes): 16 super(StepHeader, self).ApplyAttributes(attributes) 17 Sprite(name='leftGradient', parent=ContainerAutoSize(parent=self, align=uiconst.TOLEFT), align=uiconst.CENTERLEFT, texturePath='res:/UI/Texture/Classes/CharacterSelection/EmpireSelection/headerGradientStrip.png', pos=(0, 0, 224, 16), opacity=0.5) 18 self.caption = EveCaptionLarge(parent=ContainerAutoSize(parent=self, align=uiconst.TOLEFT), align=uiconst.CENTERLEFT, padding=(30, 0, 30, 0), text=attributes.title, opacity=1.0) 19 Sprite(name='leftGradient', parent=ContainerAutoSize(parent=self, align=uiconst.TOLEFT), align=uiconst.CENTERLEFT, rotation=math.pi, texturePath='res:/UI/Texture/Classes/CharacterSelection/EmpireSelection/headerGradientStrip.png', pos=(0, 0, 224, 16), opacity=0.5) 20 self.description = EveHeaderLarge(parent=self, align=uiconst.CENTERTOP, top=40, width=350, text='<center>' + attributes.subtitle)