multiLoginBlockedWindow.py (1818B)
1 #Embedded file name: C:\BuildAgent\work\20d73f1b24eed06e\eve\release\V24.01\eve\client\script\ui\shared\cloneGrade\multiLoginBlockedWindow.py 2 import carbonui.const as uiconst 3 from carbonui.primitives.container import Container 4 from carbonui.primitives.containerAutoSize import ContainerAutoSize 5 from clonegrade import COLOR_OMEGA_ORANGE 6 from eve.client.script.ui.control.eveLabel import Label 7 from eve.client.script.ui.shared.cloneGrade.cloneUpgradeWindow import CloneUpgradeWindow, STATE_UPGRADE, STATE_EXTEND 8 from localization import GetByLabel 9 10 class MultiLoginBlockedWindow(CloneUpgradeWindow): 11 default_windowID = 'MultiLoginBlockedWindow' 12 13 @property 14 def analyticID(self): 15 return 'omega_upgrade_multi_login' 16 17 def ConstructBenefitEntries(self): 18 self.bottomCont = Container(name='bottomCont', parent=self.mainCont, align=uiconst.CENTERBOTTOM, pos=(0, 30, 450, 220), bgColor=(0, 0, 0, 0.4)) 19 self.benefitCont = ContainerAutoSize(parent=self.bottomCont, align=uiconst.CENTER, width=400) 20 Label(parent=self.benefitCont, align=uiconst.TOTOP, text=GetByLabel('UI/CloneState/MultiLoginBlockedHeader'), fontsize=18, bold=True, padBottom=8, color=COLOR_OMEGA_ORANGE) 21 Label(parent=self.benefitCont, align=uiconst.TOTOP, text=GetByLabel('UI/CloneState/MultiLoginBlockedMain'), fontsize=14) 22 23 def ConstructUpgradeButton(self): 24 if self.windowState == STATE_EXTEND: 25 Label(parent=self.mainCont, align=uiconst.CENTERTOP, state=uiconst.UI_DISABLED, text=GetByLabel('UI/CloneState/UpgradeSuccessful'), uppercase=True, bold=True, color=COLOR_OMEGA_ORANGE, top=296, width=self.width) 26 elif self.windowState == STATE_UPGRADE: 27 super(MultiLoginBlockedWindow, self).ConstructUpgradeButton() 28 29 def ConstructPlexContainer(self): 30 pass