Добавил новую тему
This commit is contained in:
@@ -22,6 +22,7 @@ using Content.Client.Stylesheets;
|
||||
using Content.Client.Viewport;
|
||||
using Content.Client.Voting;
|
||||
using Content.Shared.Ame.Components;
|
||||
using Content.Shared.CCVar;
|
||||
using Content.Shared.Gravity;
|
||||
using Content.Shared.Localizations;
|
||||
using Robust.Client;
|
||||
@@ -157,7 +158,7 @@ namespace Content.Client.Entry
|
||||
_clientPreferencesManager.Initialize();
|
||||
_euiManager.Initialize();
|
||||
_voteManager.Initialize();
|
||||
_userInterfaceManager.SetDefaultTheme("SS14DefaultTheme");
|
||||
_userInterfaceManager.SetDefaultTheme(_configManager.GetCVar(CCVars.UIDefaultInterfaceTheme));
|
||||
_userInterfaceManager.SetActiveTheme(_configManager.GetCVar(CVars.InterfaceTheme));
|
||||
_documentParsingManager.Initialize();
|
||||
|
||||
|
||||
@@ -631,6 +631,9 @@ namespace Content.Shared.CCVar
|
||||
* Interface
|
||||
*/
|
||||
|
||||
public static readonly CVarDef<string> UIDefaultInterfaceTheme =
|
||||
CVarDef.Create("interface.default_theme", "CP14DefaultTheme", CVar.CLIENTONLY);
|
||||
|
||||
public static readonly CVarDef<string> UIClickSound =
|
||||
CVarDef.Create("interface.click_sound", "/Audio/UserInterface/click.ogg", CVar.REPLICATED);
|
||||
|
||||
@@ -726,7 +729,7 @@ namespace Content.Shared.CCVar
|
||||
|
||||
public static readonly CVarDef<bool> CombatModeIndicatorsPointShow =
|
||||
CVarDef.Create("hud.combat_mode_indicators_point_show", true, CVar.ARCHIVE | CVar.CLIENTONLY);
|
||||
|
||||
|
||||
public static readonly CVarDef<bool> LoocAboveHeadShow =
|
||||
CVarDef.Create("hud.show_looc_above_head", true, CVar.ARCHIVE | CVar.CLIENTONLY);
|
||||
|
||||
@@ -1225,7 +1228,7 @@ namespace Content.Shared.CCVar
|
||||
/// </summary>
|
||||
public static readonly CVarDef<bool> OocEnableDuringRound =
|
||||
CVarDef.Create("ooc.enable_during_round", false, CVar.NOTIFY | CVar.REPLICATED | CVar.SERVER);
|
||||
|
||||
|
||||
public static readonly CVarDef<bool> ShowOocPatronColor =
|
||||
CVarDef.Create("ooc.show_ooc_patron_color", true, CVar.ARCHIVE | CVar.REPLICATED | CVar.CLIENT);
|
||||
|
||||
|
||||
5
Resources/Prototypes/_CP14/hud.yml
Normal file
5
Resources/Prototypes/_CP14/hud.yml
Normal file
@@ -0,0 +1,5 @@
|
||||
- type: hudTheme
|
||||
id: CP14DefaultTheme
|
||||
name: ui-options-hud-theme-default
|
||||
path: Default
|
||||
order: -1
|
||||
14
Resources/Prototypes/_CP14/themes.yml
Normal file
14
Resources/Prototypes/_CP14/themes.yml
Normal file
@@ -0,0 +1,14 @@
|
||||
- type: uiTheme
|
||||
id: CP14DefaultTheme
|
||||
path: /Textures/_CP14/Interface/Default/
|
||||
colors:
|
||||
whiteText: "#FFF5EE"
|
||||
slotSelectedGold: "#e6b812"
|
||||
slotColor: "#0f1215"
|
||||
slotOutline: "#333850"
|
||||
slotText: "#333850"
|
||||
nanoGold: "#A88B5E"
|
||||
goodGreenFore: "#31843E"
|
||||
concerningOrangeFore: "#A5762F"
|
||||
dangerousRedFore: "#BB3232"
|
||||
disabledFore: "#5A5A5A"
|
||||
@@ -1,41 +1,44 @@
|
||||
- type: hudTheme
|
||||
id: SS14DefaultTheme
|
||||
name: ui-options-hud-theme-default
|
||||
path: Default
|
||||
order: -1
|
||||
# Они не будут работать с новыми слотами
|
||||
# А так же они не подходят под нашу атмосферу
|
||||
|
||||
- type: hudTheme
|
||||
id: SS14PlasmafireTheme
|
||||
name: ui-options-hud-theme-plasmafire
|
||||
path: Plasmafire
|
||||
order: 3
|
||||
# - type: hudTheme
|
||||
# id: SS14DefaultTheme
|
||||
# name: ui-options-hud-theme-default
|
||||
# path: Default
|
||||
# order: -1
|
||||
|
||||
- type: hudTheme
|
||||
id: SS14SlimecoreTheme
|
||||
name: ui-options-hud-theme-slimecore
|
||||
path: Slimecore
|
||||
order: 2
|
||||
# - type: hudTheme
|
||||
# id: SS14PlasmafireTheme
|
||||
# name: ui-options-hud-theme-plasmafire
|
||||
# path: Plasmafire
|
||||
# order: 3
|
||||
|
||||
- type: hudTheme
|
||||
id: SS14ClockworkTheme
|
||||
name: ui-options-hud-theme-clockwork
|
||||
path: Clockwork
|
||||
order: 4
|
||||
# - type: hudTheme
|
||||
# id: SS14SlimecoreTheme
|
||||
# name: ui-options-hud-theme-slimecore
|
||||
# path: Slimecore
|
||||
# order: 2
|
||||
|
||||
- type: hudTheme
|
||||
id: SS14RetroTheme
|
||||
name: ui-options-hud-theme-retro
|
||||
path: Retro
|
||||
order: 6
|
||||
# - type: hudTheme
|
||||
# id: SS14ClockworkTheme
|
||||
# name: ui-options-hud-theme-clockwork
|
||||
# path: Clockwork
|
||||
# order: 4
|
||||
|
||||
- type: hudTheme
|
||||
id: SS14MinimalistTheme
|
||||
name: ui-options-hud-theme-minimalist
|
||||
path: Minimalist
|
||||
order: 1
|
||||
# - type: hudTheme
|
||||
# id: SS14RetroTheme
|
||||
# name: ui-options-hud-theme-retro
|
||||
# path: Retro
|
||||
# order: 6
|
||||
|
||||
- type: hudTheme
|
||||
id: SS14AshenTheme
|
||||
name: ui-options-hud-theme-ashen
|
||||
path: Ashen
|
||||
order: 5
|
||||
# - type: hudTheme
|
||||
# id: SS14MinimalistTheme
|
||||
# name: ui-options-hud-theme-minimalist
|
||||
# path: Minimalist
|
||||
# order: 1
|
||||
|
||||
# - type: hudTheme
|
||||
# id: SS14AshenTheme
|
||||
# name: ui-options-hud-theme-ashen
|
||||
# path: Ashen
|
||||
# order: 5
|
||||
|
||||
Reference in New Issue
Block a user