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

__init__.py (5420B)


      1 #Embedded file name: C:\BuildAgent\work\20d73f1b24eed06e\eve\release\V24.01\eve\client\script\ui\shared\neocom\charsheet\__init__.py
      2 from eve.client.script.ui.plex.textures import PLEX_WINDOW_ICON
      3 from eve.common.lib import appConst
      4 from localization import GetByLabel
      5 import uihighlighting.uniqueNameConst as pConst
      6 PANEL_EXPERTSYSTEMS = 'expertsystems'
      7 PANEL_SHIPSKINS = 'skins'
      8 PANEL_SHIPEMBLEMS = 'emblems'
      9 PANEL_PERSONALIZATION = 'personalization'
     10 PANEL_PLEX = 'pilotlicense'
     11 PANEL_EMPLOYMENT = 'employment'
     12 PANEL_JUMPCLONES = 'jumpclones'
     13 PANEL_KILLRIGHTS = 'killrights'
     14 PANEL_SECURITYSTATUS = 'securitystatus'
     15 PANEL_BIO = 'bio'
     16 PANEL_IMPLANTSBOOTERS = 'myimplants_boosters'
     17 PANEL_ATTRIBUTES = 'myattributes'
     18 PANEL_COMBATLOG = 'mykills'
     19 PANEL_DECORATIONS = 'mydecorations'
     20 PANEL_STANDINGS = 'mystandings'
     21 PANEL_HOME_STATION = 'home_station'
     22 PANEL_CHARACTER = 'character'
     23 PANEL_HISTORY = 'history'
     24 PANEL_INTERACTIONS = 'interactions'
     25 PANEL_SKILLS_HISTORY = 'myskills_skillhistory'
     26 PANEL_INFO = {PANEL_EXPERTSYSTEMS: ('Tooltips/CharacterSheet/ExpertSystems',
     27                        'res:/ui/Texture/WindowIcons/augmentations.png',
     28                        'Tooltips/CharacterSheet/ExpertSystems_description',
     29                        pConst.UNIQUE_NAME_EXPERT_SYSTEMS_TAB),
     30  PANEL_DECORATIONS: ('Tooltips/CharacterSheet/Decorations',
     31                      'res:/ui/Texture/WindowIcons/decorations.png',
     32                      'Tooltips/CharacterSheet/Decorations_description',
     33                      pConst.UNIQUE_NAME_DECORATIONS),
     34  PANEL_ATTRIBUTES: ('Tooltips/CharacterSheet/Attributes', 'res:/ui/Texture/WindowIcons/attributes.png', 'Tooltips/CharacterSheet/Attributes_description', None),
     35  PANEL_IMPLANTSBOOTERS: ('Tooltips/CharacterSheet/Augmentations',
     36                          'res:/ui/Texture/WindowIcons/augmentations.png',
     37                          'Tooltips/CharacterSheet/Augmentations_description',
     38                          pConst.UNIQUE_NAME_AUGMENTATIONS_TAB),
     39  PANEL_JUMPCLONES: ('Tooltips/CharacterSheet/JumpClones',
     40                     'res:/ui/Texture/WindowIcons/jumpclones.png',
     41                     'Tooltips/CharacterSheet/JumpClones_description',
     42                     pConst.UNIQUE_NAME_JUMP_CLONES_TAB),
     43  PANEL_BIO: ('Tooltips/CharacterSheet/Bio', 'res:/ui/Texture/WindowIcons/biography.png', 'Tooltips/CharacterSheet/Bio_description', None),
     44  PANEL_EMPLOYMENT: ('Tooltips/CharacterSheet/EmploymentHistory', 'res:/ui/Texture/WindowIcons/employmenthistory.png', 'Tooltips/CharacterSheet/EmploymentHistory_description', None),
     45  PANEL_STANDINGS: ('Tooltips/CharacterSheet/Standings',
     46                    'res:/ui/Texture/WindowIcons/personalstandings.png',
     47                    'Tooltips/CharacterSheet/Standings_description',
     48                    pConst.UNIQUE_NAME_CHAR_STANDINGS_TAB),
     49  PANEL_SECURITYSTATUS: ('Tooltips/CharacterSheet/SecurityStatus',
     50                         'res:/ui/Texture/WindowIcons/securitystatus.png',
     51                         'Tooltips/CharacterSheet/SecurityStatus_description',
     52                         pConst.UNIQUE_NAME_SECURITY_STATUS_TAB),
     53  PANEL_KILLRIGHTS: ('Tooltips/CharacterSheet/KillRights',
     54                     'res:/ui/Texture/WindowIcons/killrights.png',
     55                     'Tooltips/CharacterSheet/KillRights_description',
     56                     pConst.UNIQUE_NAME_SHOW_KILL_RIGHTS_TAB),
     57  PANEL_COMBATLOG: ('Tooltips/CharacterSheet/CombatLog',
     58                    'res:/ui/Texture/WindowIcons/combatlog.png',
     59                    'Tooltips/CharacterSheet/CombatLog_description',
     60                    pConst.UNIQUE_NAME_COMBAT_LOG_TAB),
     61  PANEL_PLEX: ('Tooltips/CharacterSheet/PilotLicense',
     62               PLEX_WINDOW_ICON,
     63               'Tooltips/CharacterSheet/PilotLicense_description',
     64               None),
     65  PANEL_PERSONALIZATION: ('Tooltips/CharacterSheet/Personalisation', None, 'Tooltips/CharacterSheet/Personalisation_description', None),
     66  PANEL_SHIPEMBLEMS: ('Tooltips/CharacterSheet/ShipEmblems',
     67                      None,
     68                      'Tooltips/CharacterSheet/ShipEmblems_description',
     69                      pConst.UNIQUE_NAME_EMBLEMS_TAB),
     70  PANEL_SHIPSKINS: ('Tooltips/CharacterSheet/Skins',
     71                    'res:/ui/Texture/WindowIcons/skins.png',
     72                    'Tooltips/CharacterSheet/Skins_description',
     73                    pConst.UNIQUE_NAME_SKINS_TAB),
     74  PANEL_CHARACTER: ('Tooltips/CharacterSheet/Character', 'res:/ui/Texture/WindowIcons/character.png', None, None),
     75  PANEL_INTERACTIONS: ('Tooltips/CharacterSheet/Interactions', 'res:/ui/Texture/WindowIcons/interactions.png', None, None),
     76  PANEL_HISTORY: ('Tooltips/CharacterSheet/History', 'res:/ui/Texture/WindowIcons/history.png', None, None),
     77  PANEL_SKILLS_HISTORY: ('Tooltips/CharacterSheet/Skills', 'res:/ui/Texture/WindowIcons/skills.png', 'Tooltips/CharacterSheet/History_description', None),
     78  PANEL_HOME_STATION: ('Tooltips/CharacterSheet/HomeStation',
     79                       None,
     80                       'Tooltips/CharacterSheet/HomeStationDescription',
     81                       pConst.UNIQUE_NAME_CHARSHEET_HOME_TAB)}
     82 
     83 def GetPanelName(panelID):
     84     return GetByLabel(PANEL_INFO.get(panelID)[0])
     85 
     86 
     87 def GetPanelIcon(panelID):
     88     return PANEL_INFO.get(panelID)[1]
     89 
     90 
     91 def GetPanelDescription(panelID):
     92     label = PANEL_INFO.get(panelID)[2]
     93     if label:
     94         return GetByLabel(label)
     95     else:
     96         return None
     97 
     98 
     99 def GetPanelUniqueName(panelID):
    100     return PANEL_INFO.get(panelID)[3]