NovaBryan/EVE_Dump
Log | Files | 📦 下载最新源码 (.zip) | Refs | README

frontPageCont.py (1695B)


      1 #Embedded file name: C:\BuildAgent\work\20d73f1b24eed06e\eve\release\V24.01\eve\client\script\ui\shared\factionalWarfare\enlistmentFlow\frontPageCont.py
      2 from carbonui import TextAlign
      3 from carbonui.text.custom import TextCustom
      4 from carbonui.primitives.container import Container
      5 from carbonui.primitives.containerAutoSize import ContainerAutoSize
      6 import carbonui.const as uiconst
      7 from carbonui.primitives.layoutGrid import LayoutGrid
      8 from carbonui.primitives.sprite import Sprite
      9 from eve.client.script.ui.control.toggleButtonGroupCircular import ToggleButtonGroupCircular
     10 from eve.client.script.ui.shared.factionalWarfare.enlistmentFlow.enlistmentConst import SELECTED_EMPIRE, SELECTED_PIRATES, BG_TEXTURE_PATH_BY_SIDE
     11 from eve.client.script.ui.shared.factionalWarfare.enlistmentFlow.insurgencySideSelector import InsurgencySideSelector
     12 from localization import GetByLabel
     13 
     14 class EnlistmentFrontPageCont(Container):
     15     default_name = 'EnlistmentFrontPageCont'
     16 
     17     def ApplyAttributes(self, attributes):
     18         super(EnlistmentFrontPageCont, self).ApplyAttributes(attributes)
     19         self.enlistmentController = attributes.enlistmentController
     20         text = GetByLabel('UI/FactionWarfare/Enlistment/ChooseYourSide')
     21         TextCustom(parent=self, fontsize=20, text=text, align=uiconst.CENTER)
     22         self.AddBanners()
     23 
     24     def AddBanners(self):
     25         grid = LayoutGrid(parent=self, align=uiconst.CENTER, columns=2)
     26         InsurgencySideSelector(parent=grid, insurgencySideID=SELECTED_EMPIRE, enlistmentController=self.enlistmentController, left=0)
     27         InsurgencySideSelector(parent=grid, insurgencySideID=SELECTED_PIRATES, enlistmentController=self.enlistmentController, left=300)