Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- codeChangeUI.hpp
- Safe Code change UI Version 0.8
- Using pre-existing Epoch safegui code with edits
- */
- class RscButton
- {
- access = 0;
- type = 1;
- text = "";
- colorText[] = {0.8784,0.8471,0.651,1};
- colorDisabled[] = {0.4,0.4,0.4,1};
- colorBackground[] = {1,0.537,0,0.5};
- colorBackgroundDisabled[] = {0.95,0.95,0.95,1};
- colorBackgroundActive[] = {1,0.537,0,1};
- colorFocused[] = {1,0.537,0,1};
- colorShadow[] = {0.023529,0,0.0313725,1};
- colorBorder[] = {0.023529,0,0.0313725,1};
- soundEnter[] = {"\ca\ui\data\sound\onover",0.09,1};
- soundPush[] = {"\ca\ui\data\sound\new1",0,0};
- soundClick[] = {"\ca\ui\data\sound\onclick",0.07,1};
- soundEscape[] = {"\ca\ui\data\sound\onescape",0.09,1};
- style = 2;
- x = 0;
- y = 0;
- w = 0.095589;
- h = 0.039216;
- shadow = 2;
- font = "Zeppelin32";
- sizeEx = 0.03921;
- offsetX = 0.003;
- offsetY = 0.003;
- offsetPressedX = 0.002;
- offsetPressedY = 0.002;
- borderSize = 0;
- };
- class LockBoxChangeUI {
- idd = -1;
- movingenable = 0;
- class Controls {
- class KeypadUIPic : RscPicture {
- idc = -1;
- text = "\z\addons\dayz_epoch\ui\lockbox_gui.paa";
- x = 0.0492023;
- y = 0.00788009;
- w = 0.902925;
- h = 0.98818;
- };
- class main_button : RscButton {
- idc = -1;
- text = "";
- style = 0x02 + 0x100;
- colorText[] = {1, 1, 1, 0};
- colorDisabled[] = {1, 1, 1, 0};
- colorBackground[] = {1, 1, 1, 0};
- colorBackgroundDisabled[] = {1, 1, 1, 0};
- colorBackgroundActive[] = {1, 1, 1, 0.1};
- colorShadow[] = {1, 1, 1, 0};
- colorFocused[] = {1, 1, 1, 0.1};
- soundClick[] = {"", 0.6, 1};
- };
- class red_button : main_button {
- idc = -1;
- x = 0.171543;
- y = 0.115839;
- w = 0.126596;
- h = 0.153191;
- action = "new_combination = new_combination + [str(100)];";
- onButtonClick = "[player,""keypad_tick"",0,false] call dayz_zombieSpeak";
- };
- class green_button : main_button {
- idc = -1;
- x = 0.343085;
- y = 0.115839;
- w = 0.126596;
- h = 0.153191;
- action = "new_combination = new_combination + [str(101)];";
- onButtonClick = "[player,""keypad_tick"",0,false] call dayz_zombieSpeak";
- };
- class blue_button : main_button {
- idc = -1;
- x = 0.514628;
- y = 0.115839;
- w = 0.126596;
- h = 0.153191;
- action = "new_combination = new_combination + [str(102)];";
- onButtonClick = "[player,""keypad_tick"",0,false] call dayz_zombieSpeak";
- };
- class keypad_1 : main_button {
- idc = -1;
- x = 0.174202;
- y = 0.308905;
- w = 0.126596;
- h = 0.153191;
- action = "new_combination = new_combination + [str(1)];";
- onButtonClick = "[player,""keypad_tick"",0,false] call dayz_zombieSpeak";
- };
- class keypad_2 : main_button {
- idc = -1;
- x = 0.344415;
- y = 0.310875;
- w = 0.126596;
- h = 0.153191;
- action = "new_combination = new_combination + [str(2)];";
- onButtonClick = "[player,""keypad_tick"",0,false] call dayz_zombieSpeak";
- };
- class keypad_3 : main_button {
- idc = -1;
- x = 0.515957;
- y = 0.312845;
- w = 0.126596;
- h = 0.153191;
- action = "new_combination = new_combination + [str(3)];";
- onButtonClick = "[player,""keypad_tick"",0,false] call dayz_zombieSpeak";
- };
- class keypad_4 : main_button {
- idc = -1;
- x = 0.178192;
- y = 0.50788;
- w = 0.126596;
- h = 0.153191;
- action = "new_combination = new_combination + [str(4)];";
- onButtonClick = "[player,""keypad_tick"",0,false] call dayz_zombieSpeak";
- };
- class keypad_5 : main_button {
- idc = -1;
- x = 0.344415;
- y = 0.50788;
- w = 0.126596;
- h = 0.153191;
- action = "new_combination = new_combination + [str(5)];";
- onButtonClick = "[player,""keypad_tick"",0,false] call dayz_zombieSpeak";
- };
- class keypad_6 : main_button {
- idc = -1;
- x = 0.517287;
- y = 0.50985;
- w = 0.126596;
- h = 0.153191;
- action = "new_combination = new_combination + [str(6)];";
- onButtonClick = "[player,""keypad_tick"",0,false] call dayz_zombieSpeak";
- };
- class keypad_7 : main_button {
- idc = -1;
- x = 0.179521;
- y = 0.700946;
- w = 0.126596;
- h = 0.153191;
- action = "new_combination = new_combination + [str(7)];";
- onButtonClick = "[player,""keypad_tick"",0,false] call dayz_zombieSpeak";
- };
- class keypad_8 : main_button {
- idc = -1;
- x = 0.344415;
- y = 0.700946;
- w = 0.126596;
- h = 0.153191;
- action = "new_combination = new_combination + [str(8)];";
- onButtonClick = "[player,""keypad_tick"",0,false] call dayz_zombieSpeak";
- };
- class keypad_9 : main_button {
- idc = -1;
- x = 0.518617;
- y = 0.704886;
- w = 0.126596;
- h = 0.153191;
- action = "new_combination = new_combination + [str(9)];";
- onButtonClick = "[player,""keypad_tick"",0,false] call dayz_zombieSpeak";
- };
- class keypad_0 : main_button {
- idc = -1;
- x = 0.692819;
- y = 0.704886;
- w = 0.126596;
- h = 0.153191;
- action = "new_combination = new_combination + [str(0)];";
- onButtonClick = "[player,""keypad_tick"",0,false] call dayz_zombieSpeak";
- };
- class kpbcancel : main_button {
- idc = -1;
- x = 0.68617;
- y = 0.312845;
- w = 0.126596;
- h = 0.153191;
- onButtonClick = "[player,""keypad_tick"",0,false] call dayz_zombieSpeak;((ctrlParent (_this select 0)) closeDisplay 3000);";
- };
- class kpbcancel2 : main_button {
- idc = -1;
- x = 0.69016;
- y = 0.50985;
- w = 0.126596;
- h = 0.153191;
- onButtonClick = "[player,""keypad_tick"",0,false] call dayz_zombieSpeak;((ctrlParent (_this select 0)) closeDisplay 3000);";
- };
- class kpbenter : main_button {
- idc = -1;
- x = 0.6875;
- y = 0.121749;
- w = 0.126596;
- h = 0.153191;
- action = "[dayz_selectedVault,new_combination] spawn player_changeCode;";
- onButtonClick = "((ctrlParent (_this select 0)) closeDisplay 3000); [dayz_selectedVault,new_combination] spawn player_changeCode;";
- };
- };
- };
- class SafeChangeUI {
- idd = -1;
- movingenable = 0;
- class Controls {
- class SafeKeyPadPic : RscPicture {
- idc = -1;
- text = "\z\addons\dayz_epoch\pictures\SafeKeyPad.paa";
- x = "0.361701 * safezoneW + safezoneX";
- y = "0.255985 * safezoneH + safezoneY";
- w = "0.281637 * safezoneW";
- h = "0.470087 * safezoneH";
- };
- class b1 : RscButton {
- idc = -1;
- x = "0.444897 * safezoneW + safezoneX";
- y = "0.39423 * safezoneH + safezoneY";
- w = "0.0283751 * safezoneW";
- h = "0.0490667 * safezoneH";
- font = "Zeppelin33";
- sizeEx = 0.05;
- text = "1";
- colorText[] = {0, 0.6, 1, 1};
- colorBackground[] = {0, 0, 0, 0};
- colorBackgroundActive[] = {0, 0, 0, 0};
- action = "new_combination = new_combination + [str(1)];";
- soundClick[] = {"\dayz_sfx\action\cell\dtmf_1.ogg", 0.5, 1};
- };
- class b4 : RscButton {
- idc = -1;
- x = "0.444897 * safezoneW + safezoneX";
- y = "0.441239 * safezoneH + safezoneY";
- w = "0.0283751 * safezoneW";
- h = "0.0490667 * safezoneH";
- font = "Zeppelin33";
- sizeEx = 0.05;
- text = "4";
- colorText[] = {0, 0.6, 1, 1};
- colorBackground[] = {0, 0, 0, 0};
- colorBackgroundActive[] = {0, 0, 0, 0};
- action = "new_combination = new_combination + [str(4)];";
- soundClick[] = {"\dayz_sfx\action\cell\dtmf_4.ogg", 0.5, 1};
- };
- class b7 : RscButton {
- idc = -1;
- x = "0.444897 * safezoneW + safezoneX";
- y = "0.488248 * safezoneH + safezoneY";
- w = "0.0283751 * safezoneW";
- h = "0.0490667 * safezoneH";
- font = "Zeppelin33";
- sizeEx = 0.05;
- text = "7";
- colorText[] = {0, 0.6, 1, 1};
- colorBackground[] = {0, 0, 0, 0};
- colorBackgroundActive[] = {0, 0, 0, 0};
- action = "new_combination = new_combination + [str(7)];";
- soundClick[] = {"\dayz_sfx\action\cell\dtmf_7.ogg", 0.5, 1};
- };
- class b2 : RscButton {
- idc = -1;
- x = "0.487755 * safezoneW + safezoneX";
- y = "0.39423 * safezoneH + safezoneY";
- w = "0.0283751 * safezoneW";
- h = "0.0490667 * safezoneH";
- font = "Zeppelin33";
- sizeEx = 0.05;
- text = "2";
- colorText[] = {0, 0.6, 1, 1};
- colorBackground[] = {0, 0, 0, 0};
- colorBackgroundActive[] = {0, 0, 0, 0};
- action = "new_combination = new_combination + [str(2)];";
- soundClick[] = {"\dayz_sfx\action\cell\dtmf_2.ogg", 0.5, 1};
- };
- class b8 : RscButton {
- idc = -1;
- x = "0.487755 * safezoneW + safezoneX";
- y = "0.488248 * safezoneH + safezoneY";
- w = "0.0283751 * safezoneW";
- h = "0.0490667 * safezoneH";
- font = "Zeppelin33";
- sizeEx = 0.05;
- text = "8";
- colorText[] = {0, 0.6, 1, 1};
- colorBackground[] = {0, 0, 0, 0};
- colorBackgroundActive[] = {0, 0, 0, 0};
- action = "new_combination = new_combination + [str(8)];";
- soundClick[] = {"\dayz_sfx\action\cell\dtmf_8.ogg", 0.5, 1};
- };
- class b5 : RscButton {
- idc = -1;
- x = "0.487755 * safezoneW + safezoneX";
- y = "0.441239 * safezoneH + safezoneY";
- w = "0.0283751 * safezoneW";
- h = "0.0490667 * safezoneH";
- font = "Zeppelin33";
- sizeEx = 0.05;
- text = "5";
- colorText[] = {0, 0.6, 1, 1};
- colorBackground[] = {0, 0, 0, 0};
- colorBackgroundActive[] = {0, 0, 0, 0};
- action = "new_combination = new_combination + [str(5)];";
- soundClick[] = {"\dayz_sfx\action\cell\dtmf_5.ogg", 0.5, 1};
- };
- class b3 : RscButton {
- idc = -1;
- x = "0.530613 * safezoneW + safezoneX";
- y = "0.39423 * safezoneH + safezoneY";
- w = "0.0283751 * safezoneW";
- h = "0.0490667 * safezoneH";
- font = "Zeppelin33";
- sizeEx = 0.05;
- text = "3";
- colorText[] = {0, 0.6, 1, 1};
- colorBackground[] = {0, 0, 0, 0};
- colorBackgroundActive[] = {0, 0, 0, 0};
- action = "new_combination = new_combination + [str(3)];";
- soundClick[] = {"\dayz_sfx\action\cell\dtmf_3.ogg", 0.5, 1};
- };
- class b6 : RscButton {
- idc = -1;
- x = "0.530613 * safezoneW + safezoneX";
- y = "0.441239 * safezoneH + safezoneY";
- w = "0.0283751 * safezoneW";
- h = "0.0490667 * safezoneH";
- font = "Zeppelin33";
- sizeEx = 0.05;
- text = "6";
- colorText[] = {0, 0.6, 1, 1};
- colorBackground[] = {0, 0, 0, 0};
- colorBackgroundActive[] = {0, 0, 0, 0};
- action = "new_combination = new_combination + [str(6)];";
- soundClick[] = {"\dayz_sfx\action\cell\dtmf_6.ogg", 0.5, 1};
- };
- class b9 : RscButton {
- idc = -1;
- x = "0.530613 * safezoneW + safezoneX";
- y = "0.488248 * safezoneH + safezoneY";
- w = "0.0283751 * safezoneW";
- h = "0.0490667 * safezoneH";
- font = "Zeppelin33";
- sizeEx = 0.05;
- text = "9";
- colorText[] = {0, 0.6, 1, 1};
- colorBackground[] = {0, 0, 0, 0};
- colorBackgroundActive[] = {0, 0, 0, 0};
- action = "new_combination = new_combination + [str(9)];";
- soundClick[] = {"\dayz_sfx\action\cell\dtmf_9.ogg", 0.5, 1};
- };
- class b0 : RscButton {
- idc = -1;
- x = "0.487755 * safezoneW + safezoneX";
- y = "0.535257 * safezoneH + safezoneY";
- w = "0.0283751 * safezoneW";
- h = "0.0490667 * safezoneH";
- font = "Zeppelin33";
- sizeEx = 0.05;
- text = "0";
- colorText[] = {0, 0.6, 1, 1};
- colorBackground[] = {0, 0, 0, 0};
- colorBackgroundActive[] = {0, 0, 0, 0};
- action = "new_combination = new_combination + [str(0)];";
- soundClick[] = {"\dayz_sfx\action\cell\dtmf_9.ogg", 0.5, 1};
- };
- class bcancel : RscButton {
- idc = -1;
- x = "0.444897 * safezoneW + safezoneX";
- y = "0.545257 * safezoneH + safezoneY";
- w = "0.0263751 * safezoneW";
- h = "0.0440667 * safezoneH";
- font = "Zeppelin33";
- sizeEx = 0.1;
- text = "*";
- colorText[] = {1, 0.1, 0.1, 1};
- colorBackground[] = {0, 0, 0, 0};
- colorBackgroundActive[] = {0, 0, 0, 0};
- soundClick[] = {"\dayz_sfx\action\cell\dtmf_star.ogg", 0.6, 1};
- onButtonClick = "((ctrlParent (_this select 0)) closeDisplay 3000);";
- };
- class benter : RscButton {
- idc = -1;
- x = "0.530613 * safezoneW + safezoneX";
- y = "0.535257 * safezoneH + safezoneY";
- w = "0.0263751 * safezoneW";
- h = "0.0440667 * safezoneH";
- font = "Zeppelin33Italic";
- sizeEx = 0.1;
- text = "#";
- colorText[] = {0, 1, 0, 1};
- colorBackground[] = {0, 0, 0, 0};
- colorBackgroundActive[] = {0, 0, 0, 0};
- action = "[dayz_selectedVault,new_combination] spawn player_changeCode;";
- onButtonClick = "((ctrlParent (_this select 0)) closeDisplay 3000); [dayz_selectedVault,new_combination] spawn player_changeCode;";
- soundClick[] = {"\dayz_sfx\action\cell\dtmf_hash.ogg", 0.6, 1};
- };
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement