From c900cb4d7d50f46684b07032d2e330383ad284b9 Mon Sep 17 00:00:00 2001 From: Raymix Date: Sun, 12 Jun 2016 01:08:48 +0100 Subject: [PATCH] returns [r,g,b,a] of current color scheme on client. Allows us to adapt to common color scheme selected in game options. --- Sources/epoch_code/gui/scripts/Epoch_getColorScheme.sqf | 6 ++++++ Sources/epoch_config/Configs/CfgClientFunctions.hpp | 1 + 2 files changed, 7 insertions(+) create mode 100644 Sources/epoch_code/gui/scripts/Epoch_getColorScheme.sqf diff --git a/Sources/epoch_code/gui/scripts/Epoch_getColorScheme.sqf b/Sources/epoch_code/gui/scripts/Epoch_getColorScheme.sqf new file mode 100644 index 00000000..c66f68e6 --- /dev/null +++ b/Sources/epoch_code/gui/scripts/Epoch_getColorScheme.sqf @@ -0,0 +1,6 @@ +[ + profileNamespace getVariable "gui_bcg_rgb_r", + profileNamespace getVariable "gui_bcg_rgb_g", + profileNamespace getVariable "gui_bcg_rgb_b", + profileNamespace getVariable "gui_bcg_rgb_a" +] \ No newline at end of file diff --git a/Sources/epoch_config/Configs/CfgClientFunctions.hpp b/Sources/epoch_config/Configs/CfgClientFunctions.hpp index a3ae1b18..84fe6b7b 100644 --- a/Sources/epoch_config/Configs/CfgClientFunctions.hpp +++ b/Sources/epoch_config/Configs/CfgClientFunctions.hpp @@ -167,6 +167,7 @@ class CfgClientFunctions class secureStorageHandler {}; class dynamicText {}; class genderSelection {}; + class getColorScheme {}; }; class config {