all_packs.py (1812B)
1 #Embedded file name: C:\BuildAgent\work\20d73f1b24eed06e\eve\release\V24.01\eve\client\script\ui\shared\theatersOfWar\campaigns\theme_packs\all_packs.py 2 import eve.common.lib.appConst as appConst 3 from carbonui.fontconst import MINMATAR_FONT_FAMILY, AMARR_FONT_FAMILY, CALDARI_FONT_FAMILY, GALLENTE_FONT_FAMILY 4 from eve.client.script.ui.shared.colorThemes import COLOR_THEME_ID_BY_FACTION, DEFAULT_COLORTHEMEID, COLOR_THEME_PRESET_BY_ID 5 from eve.client.script.ui.shared.theatersOfWar.campaigns.theme_packs.theme_pack import ThemePack 6 7 def _get_theme_by_faction(faction_id): 8 theme_id = COLOR_THEME_ID_BY_FACTION.get(faction_id, DEFAULT_COLORTHEMEID) 9 theme = COLOR_THEME_PRESET_BY_ID[theme_id] 10 return theme 11 12 13 def get_default_campaign_pack(): 14 theme = COLOR_THEME_PRESET_BY_ID[DEFAULT_COLORTHEMEID] 15 return ThemePack(theme.focus, theme.accent, '#FF58A7BF', theme.focus_dark, None) 16 17 18 def get_amarr_campaign_pack(): 19 theme = _get_theme_by_faction(appConst.factionAmarrEmpire) 20 return ThemePack(theme.focus, theme.accent, '#FFE7B815', theme.focus_dark, AMARR_FONT_FAMILY) 21 22 23 def get_caldari_campaign_pack(): 24 theme = _get_theme_by_faction(appConst.factionCaldariState) 25 return ThemePack(theme.focus, theme.accent, '#FF00ACD1', theme.focus_dark, CALDARI_FONT_FAMILY) 26 27 28 def get_gallente_campaign_pack(): 29 theme = _get_theme_by_faction(appConst.factionGallenteFederation) 30 return ThemePack(theme.focus, theme.accent, '#FF40AA5E', theme.focus_dark, GALLENTE_FONT_FAMILY) 31 32 33 def get_minmatar_campaign_pack(): 34 theme = _get_theme_by_faction(appConst.factionMinmatarRepublic) 35 return ThemePack(theme.focus, theme.accent, '#FFFE3743', theme.focus_dark, MINMATAR_FONT_FAMILY) 36 37 38 def get_charles_campaign_pack(): 39 return ThemePack('#FFFF00FF', '#FF008080', '#FFCB3BEF', '#305665', None)