From 6732e5cb67a5e5f470b9d315b16c870c8a0f0d2c Mon Sep 17 00:00:00 2001 From: ebaydayz Date: Fri, 4 Nov 2016 18:56:06 -0400 Subject: [PATCH] Recolor lobby and player list to dark grey --- SQF/dayz_code/Configs/RscDisplay/RscLobby.hpp | 116 +++++++++++++++--- SQF/dayz_code/Configs/rscTitles.hpp | 55 +++++++++ .../gui/grey/loadscreen_progressbar_ca.paa | Bin 0 -> 5806 bytes 3 files changed, 153 insertions(+), 18 deletions(-) create mode 100644 SQF/dayz_code/gui/grey/loadscreen_progressbar_ca.paa diff --git a/SQF/dayz_code/Configs/RscDisplay/RscLobby.hpp b/SQF/dayz_code/Configs/RscDisplay/RscLobby.hpp index 3bd823868..70f6d02fa 100644 --- a/SQF/dayz_code/Configs/RscDisplay/RscLobby.hpp +++ b/SQF/dayz_code/Configs/RscDisplay/RscLobby.hpp @@ -13,9 +13,9 @@ class RscDisplayMultiplayerSetup: RscStandardDisplay guerLocked = "ca\ui\data\flag_none_ca.paa"; civlUnlocked = "ca\ui\data\flag_none_ca.paa"; civlLocked = "ca\ui\data\flag_none_ca.paa"; - colorNotAssigned[] = {.8,.8,.8,1}; - colorAssigned[] = {.8,.8,.8,1}; - colorConfirmed[] = {.8,.8,.8,1}; + colorNotAssigned[] = {0, 1, 0, 1}; + colorAssigned[] = {0, 1, 0, 1}; + colorConfirmed[] = {0, 1, 0, 1}; onload = "with uiNameSpace do{RscDisplayMultiplayerSetup=_this select 0}; [_this] execVM 'z\addons\dayz_code\init\lobbyAutoJoin.sqf'"; //#70 onMouseHolding = "with uiNameSpace do { switch (1 == 1) do { case(isNil 'RscDMSLoad'): { RscDMSLoad = diag_tickTime; }; case(RscDMSLoad == -1): {}; case(RscDMSLoad == -2): {}; case(diag_tickTime - RscDMSLoad > 7): { RscDMSLoad = diag_tickTime; }; case(diag_tickTime - RscDMSLoad > 5): { }; }; };"; @@ -99,9 +99,47 @@ class RscDisplayMultiplayerSetup: RscStandardDisplay y = "(02/100) * SafeZoneH + SafeZoneY"; w = "(96/100) * SafeZoneW"; h = "(06/100) * SafeZoneH"; - colorBackground[] = {49/255, 36/255, 25/255, 173/255}; + colorBackground[] = {0.1, 0.1, 0.1, 0.68}; text = $STR_UI_LOBBY; }; + class TextMission : RscText { + idc = 1002; + x = "(02/100) * SafeZoneW + SafeZoneX"; + y = "(9.5/100) * SafeZoneH + SafeZoneY"; + w = "(18/100) * SafeZoneW"; + h = "(3/100) * SafeZoneH"; + SizeEx = 0.03; + text = $STR_DISP_SRVSETUP_NAME; + colorText[] = {0.95, 0.95, 0.95, 1}; + }; + class ValueMission : RscText { + idc = 101; + x = "(20/100) * SafeZoneW + SafeZoneX"; + y = "(9.5/100) * SafeZoneH + SafeZoneY"; + w = "(40/100) * SafeZoneW"; + h = "(3/100) * SafeZoneH"; + SizeEx = 0.03; + colorText[] = {0.95, 0.95, 0.95, 1}; + }; + class CA_TextDescription : RscText { + idc = 1004; + x = "(02/100) * SafeZoneW + SafeZoneX"; + y = "(12.5/100) * SafeZoneH + SafeZoneY"; + w = "(18/100) * SafeZoneW"; + h = "(3/100) * SafeZoneH"; + SizeEx = 0.03; + text = $STR_DISP_SRVSETUP_DESC; + colorText[] = {0.95, 0.95, 0.95, 1}; + }; + class CA_ValueDescription : RscText { + idc = 103; + x = "(20/100) * SafeZoneW + SafeZoneX"; + y = "(12.5/100) * SafeZoneH + SafeZoneY"; + w = "(78/100) * SafeZoneW"; + h = "(3/100) * SafeZoneH"; + SizeEx = 0.03; + colorText[] = {0.95, 0.95, 0.95, 1}; + }; class TextIsland: RscText { idc = 1003; @@ -162,16 +200,68 @@ class RscDisplayMultiplayerSetup: RscStandardDisplay x = "(2/100) * SafeZoneW + SafeZoneX"; // to left w = "(96/100) * SafeZoneW"; // wide }; - class CA_ButtonCancel: RscShortcutButton - { + class CA_B_Lock : RscShortcutButton { + idc = 118; + x = "(39/100) * SafeZoneW + SafeZoneX"; + y = "(93/100) * SafeZoneH + SafeZoneY"; + w = 0.183825; + color[] = {0.95, 0.95, 0.95, 1.0}; + animTextureNormal = "\z\addons\dayz_code\gui\grey\ui_button_normal_ca.paa"; + animTextureDisabled = "\z\addons\dayz_code\gui\grey\ui_button_disabled_ca.paa"; + animTextureOver = "\z\addons\dayz_code\gui\grey\ui_button_over_ca.paa"; + animTextureFocused = "\z\addons\dayz_code\gui\grey\ui_button_focus_ca.paa"; + animTexturePressed = "\z\addons\dayz_code\gui\grey\ui_button_down_ca.paa"; + animTextureDefault = "\z\addons\dayz_code\gui\grey\ui_button_default_ca.paa"; + }; + class CA_B_DSinterface : RscShortcutButton { + idc = 1012; + default = 0; + onButtonClick = "openDSInterface;"; + shortcuts[] = {}; + x = "(2.75/100) * SafeZoneW + SafeZoneX"; + y = "(93/100) * SafeZoneH + SafeZoneY"; + w = 0.26; + text = $STR_DISP_SERVER_CONTROL; + color[] = {0.95, 0.95, 0.95, 1.0}; + animTextureNormal = "\z\addons\dayz_code\gui\grey\ui_button_normal_ca.paa"; + animTextureDisabled = "\z\addons\dayz_code\gui\grey\ui_button_disabled_ca.paa"; + animTextureOver = "\z\addons\dayz_code\gui\grey\ui_button_over_ca.paa"; + animTextureFocused = "\z\addons\dayz_code\gui\grey\ui_button_focus_ca.paa"; + animTexturePressed = "\z\addons\dayz_code\gui\grey\ui_button_down_ca.paa"; + animTextureDefault = "\z\addons\dayz_code\gui\grey\ui_button_default_ca.paa"; + }; + class CA_ButtonContinue : RscShortcutButton { + idc = 1; + default = 1; + shortcuts[] = {0x00050000 + 0, 28, 57, 156}; + x = "(83/100) * SafeZoneW + SafeZoneX"; + y = "(93/100) * SafeZoneH + SafeZoneY"; + text = $STR_DISP_OK; + onButtonClick = "((findDisplay 70) displayCtrl 300) ctrlShow false;"; + color[] = {0.95, 0.95, 0.95, 1.0}; + animTextureNormal = "\z\addons\dayz_code\gui\grey\ui_button_normal_ca.paa"; + animTextureDisabled = "\z\addons\dayz_code\gui\grey\ui_button_disabled_ca.paa"; + animTextureOver = "\z\addons\dayz_code\gui\grey\ui_button_over_ca.paa"; + animTextureFocused = "\z\addons\dayz_code\gui\grey\ui_button_focus_ca.paa"; + animTexturePressed = "\z\addons\dayz_code\gui\grey\ui_button_down_ca.paa"; + animTextureDefault = "\z\addons\dayz_code\gui\grey\ui_button_default_ca.paa"; + }; + class CA_ButtonCancel : RscShortcutButton { idc = 2; default = 0; - shortcuts[] = {"0x00050000 + 1"}; + shortcuts[] = {0x00050000 + 1}; x = "(68/100) * SafeZoneW + SafeZoneX"; y = "(93/100) * SafeZoneH + SafeZoneY"; w = 0.203825; - text = "$STR_DISP_BACK"; + text = $STR_DISP_BACK; onButtonClick = "with uiNameSpace do {RscDMSLoad=nil;};"; // autologon at logon on next server + color[] = {0.95, 0.95, 0.95, 1.0}; + animTextureNormal = "\z\addons\dayz_code\gui\grey\ui_button_normal_ca.paa"; + animTextureDisabled = "\z\addons\dayz_code\gui\grey\ui_button_disabled_ca.paa"; + animTextureOver = "\z\addons\dayz_code\gui\grey\ui_button_over_ca.paa"; + animTextureFocused = "\z\addons\dayz_code\gui\grey\ui_button_focus_ca.paa"; + animTexturePressed = "\z\addons\dayz_code\gui\grey\ui_button_down_ca.paa"; + animTextureDefault = "\z\addons\dayz_code\gui\grey\ui_button_default_ca.paa"; }; class Y_GamerCard: RscActiveText { @@ -197,16 +287,6 @@ class RscDisplayMultiplayerSetup: RscStandardDisplay y = 0.9; w = 0.15; }; - class CA_ButtonContinue: RscShortcutButton - { - idc = 1; - default = 1; - shortcuts[] = {"0x00050000 + 0",28,57,156}; - x = "(83/100) * SafeZoneW + SafeZoneX"; - y = "(93/100) * SafeZoneH + SafeZoneY"; - text = "OK"; - onButtonClick = "((findDisplay 70) displayCtrl 300) ctrlShow false;"; - }; class infoText: RscText { idc = 300; diff --git a/SQF/dayz_code/Configs/rscTitles.hpp b/SQF/dayz_code/Configs/rscTitles.hpp index 416ff52d6..2eb93efe3 100644 --- a/SQF/dayz_code/Configs/rscTitles.hpp +++ b/SQF/dayz_code/Configs/rscTitles.hpp @@ -398,6 +398,61 @@ class RscDisplayDiary { delete DiaryBackground; delete CA_PlayerName; delete CA_CurrentTaskLabel; + class CA_MainBackground : IGUIBack { + idc = 1020; + x = "SafeZoneX + 0.010 * SafeZoneW"; + y = "SafeZoneY + 0.031"; + w = "0.98*SafeZoneW"; + h = 0.082; + colorbackground[] = {0.1, 0.1, 0.1, 0.85}; + }; + class CA_TopicsBackground : IGUIBack { + idc = 1021; + x = "0.010*SafeZoneW + SafeZoneX"; + y = "SafeZoneY + 0.117"; + w = "0.146*SafeZoneW"; + h = 0.53; + colorbackground[] = {0.1, 0.1, 0.1, 0.85}; + }; + class CA_SubTopicsBackground : IGUIBack { + idc = 1022; + x = "0.16*SafeZoneW + SafeZoneX"; + y = "SafeZoneY + 0.117"; + w = "0.283*SafeZoneW"; + h = 0.53; + colorbackground[] = {0.1, 0.1, 0.1, 0.85}; + }; + class CA_ContentBackground : IGUIBack { + idc = 1023; + x = "0.446*SafeZoneW + SafeZoneX"; + y = "SafeZoneY + 0.117"; + w = "SafeZoneW * 0.544"; + h = 0.832; + colorbackground[] = {0.1, 0.1, 0.1, 0.85}; + }; + class DiaryList : RscIGUIListBox { + idc = 1001; + onLBSelChanged = "[_this select 0, _this select 1, 'List'] call compile preprocessFileLineNumbers 'ca\Warfare2\Scripts\Client\GUI\GUI_logEH.sqf'; private ['_dummy']; _dummy = [_this,'onLBSelChanged'] call compile preprocessfile '\ca\ui\scripts\server_interface.sqf';"; + default = 1; + x = "0.010*SafeZoneW + SafeZoneX"; + y = "SafeZoneY + 0.137"; + w = "0.146*SafeZoneW"; + h = 0.6; + colorSelectBackground[] = {0, 0, 0, 1.0}; + colorSelectBackground2[] = {0, 0, 0, 0.8}; + }; + class CA_DiaryIndex : RscIGUIListBox { + idc = 1002; + onLBSelChanged = "[_this select 0, _this select 1, 'Index'] call compile preprocessFileLineNumbers 'ca\Warfare2\Scripts\Client\GUI\GUI_logEH.sqf';"; + default = 0; + x = "0.16*SafeZoneW + SafeZoneX"; + y = "SafeZoneY + 0.137"; + w = "0.283*SafeZoneW"; + h = 0.6; + sizeEx = 0.034; + colorSelectBackground[] = {0, 0, 0, 1.0}; + colorSelectBackground2[] = {0, 0, 0, 0.8}; + }; }; }; diff --git a/SQF/dayz_code/gui/grey/loadscreen_progressbar_ca.paa b/SQF/dayz_code/gui/grey/loadscreen_progressbar_ca.paa new file mode 100644 index 0000000000000000000000000000000000000000..4cd7291f87b997c7600fcb5ad3790327680a3df6 GIT binary patch literal 5806 zcmZSm@9ypx;_M#g$ie^tAile!j~j^32*eQ0lkQ@^4s`e+nP!|6Kq7=P)e4 z*Df>5vj#Q^VEmXbz{bLfd^jHx{S#DR@}qoEau^Md(ewc84-W415Dm)D^$GC&%)WHJ z>co&F@8{&R+ZTjV*5W59Cb|No1i zVgRYO8)kgxKe`{=>u(6b{Hwsg#L&RN@M;%maFl@oCj9yhh(|mAt6dCC3P|P)0HeZz zf#Jm!(6BGU+7~auTzDak!M_4@J`lhnl>=yu0??TIXvW-!D1-Tq1*i<@-4{<7!Mb6> NOc3E`&rvOf@Bk5j{Pq9< literal 0 HcmV?d00001