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

overview.py (1488B)


      1 #Embedded file name: C:\BuildAgent\work\20d73f1b24eed06e\eve\release\V24.01\eve\client\script\ui\shared\agencyNew\ui\contentPagesUI\zarzakh\panels\overview.py
      2 from carbonui import uiconst
      3 from carbonui.text.styles import TextBody
      4 from carbonui.control.section import SectionAutoSize
      5 from carbonui.primitives.sprite import Sprite
      6 from eve.client.script.ui.shared.agencyNew.ui.contentPagesUI.zarzakh.panels.base import BasePanel
      7 from localization import GetByLabel
      8 
      9 class OverviewPanel(BasePanel):
     10 
     11     def __init__(self, *args, **kwargs):
     12         super(OverviewPanel, self).__init__(*args, **kwargs)
     13         self._overview_section = None
     14         self._overview_label = None
     15         self._construct_layout()
     16 
     17     def _construct_layout(self):
     18         self._overview_section = SectionAutoSize(name='overview_section', parent=self, align=uiconst.TOALL, headerText=GetByLabel('UI/Agency/Zarzakh/Guides/Overview/OverviewSectionTitle'))
     19         Sprite(name='overview_image', parent=self._overview_section, align=uiconst.TOTOP, width=739, height=241, texturePath='res:/UI/Texture/classes/agency/zarzakh/overview/banner.png', state=uiconst.UI_DISABLED, padTop=5, padBottom=5)
     20         self._overview_label = TextBody(name='overview_label', parent=self._overview_section, align=uiconst.TOTOP, text=GetByLabel('UI/Agency/Zarzakh/Guides/Overview/OverviewSectionText'), padding=5)
     21 
     22     def get_searchable_strings(self):
     23         return [self._overview_section.headerText, self._overview_label.GetText()]