From ad22c7df040fdea091f25549453f123215b6c063 Mon Sep 17 00:00:00 2001 From: Florian Kinder Date: Tue, 18 Feb 2014 23:51:38 +0100 Subject: [PATCH] Updated Displays Disabled new gear system --- .../Configs/CfgPlayerStats/defines.hpp | 108 ++ .../Configs/CfgPlayerStats/p__cover.hpp | 99 ++ .../CfgPlayerStats/p_bandits_killed.hpp | 458 +++++++ .../Configs/CfgPlayerStats/p_headshots.hpp | 450 +++++++ .../Configs/CfgPlayerStats/p_humanity_art.hpp | 148 +++ .../CfgPlayerStats/p_journal_humanity.hpp | 249 ++++ .../Configs/CfgPlayerStats/p_murders.hpp | 439 +++++++ .../CfgPlayerStats/p_zombies_killed.hpp | 461 +++++++ .../Configs/CfgPlayerStats/sound.hpp | 22 + .../RscDisplay/RscDisplayCraftingMenu.hpp | 1110 +++++++++++++++++ .../Configs/RscDisplay/RscDisplayGear.hpp | 1016 +++++++++++++++ .../RscDisplay/RscDisplayGenderSelect.hpp | 54 + .../RscDisplay/RscDisplaySpawnSelecter.hpp | 17 +- .../Configs/RscDisplay/RscPlayerUI.hpp | 300 +++++ SQF/dayz_code/Configs/RscDisplay/includes.hpp | 6 + SQF/dayz_code/Configs/rscTitles.hpp | 735 ++++------- SQF/dayz_code/config.cpp | 31 - 17 files changed, 5137 insertions(+), 566 deletions(-) create mode 100644 SQF/dayz_code/Configs/CfgPlayerStats/defines.hpp create mode 100644 SQF/dayz_code/Configs/CfgPlayerStats/p__cover.hpp create mode 100644 SQF/dayz_code/Configs/CfgPlayerStats/p_bandits_killed.hpp create mode 100644 SQF/dayz_code/Configs/CfgPlayerStats/p_headshots.hpp create mode 100644 SQF/dayz_code/Configs/CfgPlayerStats/p_humanity_art.hpp create mode 100644 SQF/dayz_code/Configs/CfgPlayerStats/p_journal_humanity.hpp create mode 100644 SQF/dayz_code/Configs/CfgPlayerStats/p_murders.hpp create mode 100644 SQF/dayz_code/Configs/CfgPlayerStats/p_zombies_killed.hpp create mode 100644 SQF/dayz_code/Configs/CfgPlayerStats/sound.hpp create mode 100644 SQF/dayz_code/Configs/RscDisplay/RscDisplayCraftingMenu.hpp create mode 100644 SQF/dayz_code/Configs/RscDisplay/RscDisplayGear.hpp create mode 100644 SQF/dayz_code/Configs/RscDisplay/RscDisplayGenderSelect.hpp create mode 100644 SQF/dayz_code/Configs/RscDisplay/RscPlayerUI.hpp create mode 100644 SQF/dayz_code/Configs/RscDisplay/includes.hpp diff --git a/SQF/dayz_code/Configs/CfgPlayerStats/defines.hpp b/SQF/dayz_code/Configs/CfgPlayerStats/defines.hpp new file mode 100644 index 000000000..35afd57f2 --- /dev/null +++ b/SQF/dayz_code/Configs/CfgPlayerStats/defines.hpp @@ -0,0 +1,108 @@ +/********************************************************************************************************************/ +// Config file for [DayZ] +// Created by: [Horde/Das Attorney] +//********************************************************************************************************************/ + +/********************************************************************************************************************/ +// Defines +/********************************************************************************************************************/ + +#define CT_STATIC 0 +#define CT_BUTTON 1 +#define CT_COMBO 4 +#define CT_STRUCTURED_TEXT 13 + +#define ST_LEFT 0x00 +#define ST_RIGHT 0x01 +#define ST_CENTER 0x02 +#define ST_PICTURE 0x30 +#define ST_ROUNDED1 128 +#define ST_MULTI 0x10 + +/********************************************************************************************************************/ +// Base Classes +/********************************************************************************************************************/ + +class horde_RscPicture +{ + access = 0; + type = CT_STATIC; + style = ST_PICTURE; + idc = -1; + colorBackground[] = {0,0,0,1}; + colorText[] = {1,1,1,1}; + font = "Zeppelin33"; + sizeEx = 0; + lineSpacing = 0; + text = ""; + fixedWidth = 0; + shadow = 0; + x = 0; + y = 0; + w = 0; + h = 0; +}; + +class horde_RscText +{ + type = CT_STATIC; + text = ""; + idc = -1; + style = ST_CENTER; + h = 0.04; + colorBackground[] = {0, 0, 0, 0}; + colorText[] = {0, 0, 0, 1}; + font = "Zeppelin33"; + sizeEx = 0.01 * safezoneH; + shadow = 0; +}; + +class horde_RscStructuredText +{ + access = 0; + type = CT_STRUCTURED_TEXT; + style = ST_CENTER; + font = "Zeppelin33"; + idc = -1; + colorBackground[] = {0,0,0,0}; + colorText[] = {0,0,0,0}; + x = 0; + y = 0; + h = 0; + w = 0; + text = ""; + size = 0.0146 * safezoneH; + shadow = 0; +}; + +class horde_RscButton +{ + access = 0; + type = CT_BUTTON; + style = ST_LEFT; + x = 0; + y = 0; + w = 0; + h = 0; + text = ""; + font = "Zeppelin33"; + sizeEx = 0.04; + colorText[] = {0, 0, 0, 0}; + colorDisabled[] = {0, 0, 0, 0}; + colorBackground[] = {0, 0, 0, 0}; + colorBackgroundDisabled[] = {0, 0, 0, 0}; + colorBackgroundActive[] = {0, 0, 0, 0}; + offsetX = 0; + offsetY = 0; + offsetPressedX = 0; + offsetPressedY = 0; + colorFocused[] = {0, 0, 0, 0}; + colorShadow[] = {0, 0, 0, 0}; + shadow = 0; + colorBorder[] = {0, 0, 0, 0}; + borderSize = 0; + soundEnter[] = {"",0.1,1}; + soundPush[] = {"",0.1,1}; + soundClick[] = {"",0.1,1}; + soundEscape[] = {"",0.1,1}; +}; diff --git a/SQF/dayz_code/Configs/CfgPlayerStats/p__cover.hpp b/SQF/dayz_code/Configs/CfgPlayerStats/p__cover.hpp new file mode 100644 index 000000000..1c8275499 --- /dev/null +++ b/SQF/dayz_code/Configs/CfgPlayerStats/p__cover.hpp @@ -0,0 +1,99 @@ +/********************************************************************************************************************/ +// Config file for [DayZ] +// Created by: [Horde/Das Attorney] +//********************************************************************************************************************/ + +/********************************************************************************************************************/ +// Set up dialog +/********************************************************************************************************************/ + +class horde_journal_front_cover +{ + idd = -1; + movingEnable = false; + onLoad = ""; + enableSimulation = true; + controlsBackground[] = {}; + objects[] = {}; + controls[] = + { + "book_page_image", + "open_craft", + "open_book", + "click_here_to_close_book_1", + "click_here_to_close_book_2", + "click_here_to_close_book_3", + "click_here_to_close_book_4" + }; + + // background + + class book_page_image: horde_RscPicture + { + idc = 1200; + text = "\z\addons\dayz_communityassets\pictures\playerstats\book\cover.paa"; + x = 0.199197 * safezoneW + safezoneX; + y = -0.0250695 * safezoneH + safezoneY; + w = 0.601605 * safezoneW; + h = 1.05014 * safezoneH; + + }; + + // buttons + + class open_craft: RscIGUIShortcutButton { + idc = -1; + x = 0.48 * safezoneW + safezoneX; + y = 0.8 * safezoneH + safezoneY; + text = $STR_UI_CRAFT_OPEN; + action = "closeDialog 0; createDialog 'RscDisplayCraftingMenu';"; + }; + + class open_book: horde_RscButton + { + idc = 1900; + text = "#(argb,8,8,3)color(1,1,1,0.5)"; + x = 0.5 * safezoneW + safezoneX; + y = 0.149954 * safezoneH + safezoneY; + w = 0.291687 * safezoneW; + h = 0.68259 * safezoneH; + action = "playSound 'horde_sound_turning_page'; closeDialog 0; createDialog 'horde_journal_pages_journal_humanity';"; + }; + class click_here_to_close_book_1: horde_RscButton + { + idc = 1901; + x = -0.0195684 * safezoneW + safezoneX; + y = -0.0600741 * safezoneH + safezoneY; + w = 1.03914 * safezoneW; + h = 0.210028 * safezoneH; + action = "playSound 'horde_sound_close_book'; closeDialog 0;"; + }; + class click_here_to_close_book_2: horde_RscButton + { + idc = 1902; + x = 0.791687 * safezoneW + safezoneX; + y = 0.149954 * safezoneH + safezoneY; + w = 1.04825 * safezoneW; + h = 0.892618 * safezoneH; + action = "playSound 'horde_sound_close_book'; closeDialog 0;"; + }; + class click_here_to_close_book_3: horde_RscButton + { + idc = 1903; + x = -0.0013379 * safezoneW + safezoneX; + y = 0.832544 * safezoneH + safezoneY; + w = 1.04825 * safezoneW; + h = 0.892618 * safezoneH; + action = "playSound 'horde_sound_close_book'; closeDialog 0;"; + }; + class click_here_to_close_book_4: horde_RscButton + { + idc = 1904; + x = -0.110721 * safezoneW + safezoneX; + y = 0.0624421 * safezoneH + safezoneY; + w = 0.610721 * safezoneW; + h = 0.822609 * safezoneH; + action = "playSound 'horde_sound_close_book'; closeDialog 0;"; + }; +}; + diff --git a/SQF/dayz_code/Configs/CfgPlayerStats/p_bandits_killed.hpp b/SQF/dayz_code/Configs/CfgPlayerStats/p_bandits_killed.hpp new file mode 100644 index 000000000..5a3c91658 --- /dev/null +++ b/SQF/dayz_code/Configs/CfgPlayerStats/p_bandits_killed.hpp @@ -0,0 +1,458 @@ +/********************************************************************************************************************/ +// Config file for [DayZ] +// Created by: [Horde/Das Attorney] +//********************************************************************************************************************/ + +/********************************************************************************************************************/ +// Set up dialog +/********************************************************************************************************************/ + +class horde_journal_pages_bandits +{ + idd = -1; + movingEnable = false; + onLoad = "uiNamespace setVariable ['horde_myDisplay', (_this select 0)]; [player getVariable['banditKills', 0]] call horde_epeen_setText_stats_fnc;"; + enableSimulation = true; + controlsBackground[] = {}; + objects[] = {}; + controls[] = + { + "book_page_image", + "header_one", + "header_two", + "main_image", + "t11", + "t12", + "t13", + "t14", + "t15", + "t21", + "t22", + "t23", + "t24", + "t25", + "t31", + "t32", + "t33", + "t34", + "t35", + "t41", + "t42", + "t43", + "t44", + "t45", + "t51", + "t52", + "t53", + "t54", + "t55", + "t61", + "t62", + "t63", + "t64", + "t65", + "t75", + "t71", + "t72", + "t73", + "t74", + "t75", + "add_kills", + "click_for_prev_page", + "click_for_next_page", + "click_here_to_close_book_1", + "click_here_to_close_book_2", + "click_here_to_close_book_3", + "click_here_to_close_book_4" + }; + + class book_page_image: horde_RscPicture + { + idc = 1200; + text = "\z\addons\dayz_communityassets\pictures\playerstats\book\pages_2.paa"; + x = 0.199165 * safezoneW + safezoneX; + y = -0.00752226 * safezoneH + safezoneY; + w = 0.601429 * safezoneW; + h = 1.01491 * safezoneH; + }; + class header_one: horde_RscPicture + { + idc = 1700; + text = "\z\addons\dayz_communityassets\pictures\playerstats\headers\bandit.paa"; + x = 0.253926 * safezoneW + safezoneX; + y = 0.219948 * safezoneH + safezoneY; + w = 0.200505 * safezoneW; + h = 0.0700129 * safezoneH; + }; + class header_two: horde_RscPicture + { + idc = 1701; + text = "\z\addons\dayz_communityassets\pictures\playerstats\headers\killed.paa"; + x = 0.244842 * safezoneW + safezoneX; + y = 0.290028 * safezoneH + safezoneY; + w = 0.218707 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class main_image: horde_RscPicture + { + idc = 1702; + text = "\z\addons\dayz_communityassets\pictures\playerstats\illus\bandit.paa"; + x = 0.281293 * safezoneW + safezoneX; + y = 0.360019 * safezoneH + safezoneY; + w = 0.173143 * safezoneW; + h = 0.489934 * safezoneH; + }; + class t11: horde_RscStructuredText + { + idc = 1204; + x = 0.527338 * safezoneW + safezoneX; + y = 0.220038 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t12: horde_RscStructuredText + { + idc = 1205; + x = 0.572902 * safezoneW + safezoneX; + y = 0.220038 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t13: horde_RscStructuredText + { + idc = 1206; + x = 0.618466 * safezoneW + safezoneX; + y = 0.220038 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t14: horde_RscStructuredText + { + idc = 1207; + x = 0.66403 * safezoneW + safezoneX; + y = 0.220038 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t15: horde_RscStructuredText + { + idc = 1208; + x = 0.709594 * safezoneW + safezoneX; + y = 0.220038 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t21: horde_RscStructuredText + { + idc = 1209; + x = 0.527338 * safezoneW + safezoneX; + y = 0.290028 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t22: horde_RscStructuredText + { + idc = 1210; + x = 0.572902 * safezoneW + safezoneX; + y = 0.290028 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t23: horde_RscStructuredText + { + idc = 1211; + x = 0.618466 * safezoneW + safezoneX; + y = 0.290028 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t24: horde_RscStructuredText + { + idc = 1212; + x = 0.66403 * safezoneW + safezoneX; + y = 0.290028 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t25: horde_RscStructuredText + { + idc = 1213; + x = 0.709594 * safezoneW + safezoneX; + y = 0.290028 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t31: horde_RscStructuredText + { + idc = 1214; + x = 0.527338 * safezoneW + safezoneX; + y = 0.360019 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t32: horde_RscStructuredText + { + idc = 1215; + x = 0.572902 * safezoneW + safezoneX; + y = 0.360019 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t33: horde_RscStructuredText + { + idc = 1216; + x = 0.618466 * safezoneW + safezoneX; + y = 0.360019 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t34: horde_RscStructuredText + { + idc = 1217; + x = 0.66403 * safezoneW + safezoneX; + y = 0.360019 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t35: horde_RscStructuredText + { + idc = 1218; + x = 0.709594 * safezoneW + safezoneX; + y = 0.360019 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t41: horde_RscStructuredText + { + idc = 1219; + x = 0.527338 * safezoneW + safezoneX; + y = 0.43001 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t42: horde_RscStructuredText + { + idc = 1220; + x = 0.572902 * safezoneW + safezoneX; + y = 0.43001 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t43: horde_RscStructuredText + { + idc = 1221; + x = 0.618466 * safezoneW + safezoneX; + y = 0.43001 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t44: horde_RscStructuredText + { + idc = 1222; + x = 0.66403 * safezoneW + safezoneX; + y = 0.43001 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t45: horde_RscStructuredText + { + idc = 1223; + x = 0.709594 * safezoneW + safezoneX; + y = 0.43001 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t51: horde_RscStructuredText + { + idc = 1224; + x = 0.527338 * safezoneW + safezoneX; + y = 0.5 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t52: horde_RscStructuredText + { + idc = 1225; + x = 0.572902 * safezoneW + safezoneX; + y = 0.5 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t53: horde_RscStructuredText + { + idc = 1226; + x = 0.618466 * safezoneW + safezoneX; + y = 0.5 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t54: horde_RscStructuredText + { + idc = 1227; + x = 0.66403 * safezoneW + safezoneX; + y = 0.5 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t55: horde_RscStructuredText + { + idc = 1228; + x = 0.709594 * safezoneW + safezoneX; + y = 0.5 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t61: horde_RscStructuredText + { + idc = 1229; + x = 0.527338 * safezoneW + safezoneX; + y = 0.569991 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t62: horde_RscStructuredText + { + idc = 1230; + x = 0.572902 * safezoneW + safezoneX; + y = 0.569991 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t63: horde_RscStructuredText + { + idc = 1231; + x = 0.618466 * safezoneW + safezoneX; + y = 0.569991 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t64: horde_RscStructuredText + { + idc = 1232; + x = 0.66403 * safezoneW + safezoneX; + y = 0.569991 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t65: horde_RscStructuredText + { + idc = 1233; + x = 0.709594 * safezoneW + safezoneX; + y = 0.569991 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t71: horde_RscStructuredText + { + idc = 1234; + x = 0.527338 * safezoneW + safezoneX; + y = 0.639981 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t72: horde_RscStructuredText + { + idc = 1235; + x = 0.572902 * safezoneW + safezoneX; + y = 0.639981 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t73: horde_RscStructuredText + { + idc = 1236; + x = 0.618466 * safezoneW + safezoneX; + y = 0.639981 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t74: horde_RscStructuredText + { + idc = 1237; + x = 0.66403 * safezoneW + safezoneX; + y = 0.639981 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t75: horde_RscStructuredText + { + idc = 1238; + x = 0.709594 * safezoneW + safezoneX; + y = 0.639981 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class add_kills: horde_RscStructuredText + { + idc = 1239; + x = 0.536451 * safezoneW + safezoneX; + y = 0.709972 * safezoneH + safezoneY; + w = 0.218707 * safezoneW; + h = 0.0699905 * safezoneH; + }; + + //********************************************************************************************************************/ + // Buttons + //********************************************************************************************************************/ + + class click_for_prev_page: horde_RscButton + { + idc = 1900; + x = 0.217398 * safezoneW + safezoneX; + y = 0.167485 * safezoneH + safezoneY; + w = 0.282602 * safezoneW; + h = 0.665029 * safezoneH; + // soundPush[] = {"sounds\close",1,1}; + action = "playSound 'horde_sound_turning_page'; closeDialog 0; createDialog 'horde_journal_pages_headshots';"; + }; + class click_for_next_page: horde_RscButton + { + idc = 1901; + x = 0.5 * safezoneW + safezoneX; + y = 0.167485 * safezoneH + safezoneY; + w = 0.282602 * safezoneW; + h = 0.665029 * safezoneH; + // soundPush[] = {"sounds\page",0.7,1}; + action = "playSound 'horde_sound_turning_page'; closeDialog 0; createDialog 'horde_journal_pages_murders';"; + }; + class click_here_to_close_book_1: horde_RscButton + { + idc = 1902; + x = -0.00139144 * safezoneW + safezoneX; + y = -0.00752226 * safezoneH + safezoneY; + w = 1.03925 * safezoneW; + h = 0.175008 * safezoneH; + // soundPush[] = {"sounds\close",1,1}; + action = "playSound 'horde_sound_close_book'; closeDialog 0;"; + }; + class click_here_to_close_book_2: horde_RscButton + { + idc = 1903; + x = 0.791719 * safezoneW + safezoneX; + y = 0.167485 * safezoneH + safezoneY; + w = 0.209673 * safezoneW; + h = 0.68253 * safezoneH; + // soundPush[] = {"sounds\close",1,1}; + action = "playSound 'horde_sound_close_book'; closeDialog 0;"; + }; + class click_here_to_close_book_3: horde_RscButton + { + idc = 1904; + x = -0.00139144 * safezoneW + safezoneX; + y = 0.832515 * safezoneH + safezoneY; + w = 1.0119 * safezoneW; + h = 0.175008 * safezoneH; + // soundPush[] = {"sounds\close",1,1}; + action = "playSound 'horde_sound_close_book'; closeDialog 0;"; + }; + class click_here_to_close_book_4: horde_RscButton + { + idc = 1905; + x = -0.00139144 * safezoneW + safezoneX; + y = 0.167485 * safezoneH + safezoneY; + w = 0.209673 * safezoneW; + h = 0.68253 * safezoneH; + // soundPush[] = {"sounds\close",1,1}; + action = "playSound 'horde_sound_close_book'; closeDialog 0;"; + }; +}; \ No newline at end of file diff --git a/SQF/dayz_code/Configs/CfgPlayerStats/p_headshots.hpp b/SQF/dayz_code/Configs/CfgPlayerStats/p_headshots.hpp new file mode 100644 index 000000000..e5a67a827 --- /dev/null +++ b/SQF/dayz_code/Configs/CfgPlayerStats/p_headshots.hpp @@ -0,0 +1,450 @@ +/********************************************************************************************************************/ +// Config file for [DayZ] +// Created by: [Horde/Das Attorney] +//********************************************************************************************************************/ + +/********************************************************************************************************************/ +// Set up dialog +/********************************************************************************************************************/ + +class horde_journal_pages_headshots +{ + idd = -1; + movingEnable = false; + onLoad = "uiNamespace setVariable ['horde_myDisplay', (_this select 0)]; [player getVariable['headShots', 0]] call horde_epeen_setText_stats_fnc;"; + enableSimulation = true; + controlsBackground[] = {}; + objects[] = {}; + controls[] = + { + "book_page_image", + "header_one", + "main_image", + "t11", + "t12", + "t13", + "t14", + "t15", + "t21", + "t22", + "t23", + "t24", + "t25", + "t31", + "t32", + "t33", + "t34", + "t35", + "t41", + "t42", + "t43", + "t44", + "t45", + "t51", + "t52", + "t53", + "t54", + "t55", + "t61", + "t62", + "t63", + "t64", + "t65", + "t75", + "t71", + "t72", + "t73", + "t74", + "t75", + "add_kills", + "click_for_prev_page", + "click_for_next_page", + "click_here_to_close_book_1", + "click_here_to_close_book_2", + "click_here_to_close_book_3", + "click_here_to_close_book_4" + }; + + // picture of blank book pages + + class book_page_image: horde_RscPicture + { + idc = 1200; + text = "\z\addons\dayz_communityassets\pictures\playerstats\book\pages_2.paa"; + x = 0.199165 * safezoneW + safezoneX; + y = -0.00752226 * safezoneH + safezoneY; + w = 0.601429 * safezoneW; + h = 1.01491 * safezoneH; + }; + class header_one: horde_RscPicture + { + idc = 1700; + text = "\z\addons\dayz_communityassets\pictures\playerstats\headers\headshots.paa"; + x = 0.244842 * safezoneW + safezoneX; + y = 0.237536 * safezoneH + safezoneY; + w = 0.218707 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class main_image: horde_RscPicture + { + idc = 1701; + text = "\z\addons\dayz_communityassets\pictures\playerstats\illus\headshots.paa"; + x = 0.208391 * safezoneW + safezoneX; + y = 0.290028 * safezoneH + safezoneY; + w = 0.309835 * safezoneW; + h = 0.507431 * safezoneH; + }; + class t11: horde_RscStructuredText + { + idc = 1204; + x = 0.527338 * safezoneW + safezoneX; + y = 0.220038 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t12: horde_RscStructuredText + { + idc = 1205; + x = 0.572902 * safezoneW + safezoneX; + y = 0.220038 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t13: horde_RscStructuredText + { + idc = 1206; + x = 0.618466 * safezoneW + safezoneX; + y = 0.220038 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t14: horde_RscStructuredText + { + idc = 1207; + x = 0.66403 * safezoneW + safezoneX; + y = 0.220038 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t15: horde_RscStructuredText + { + idc = 1208; + x = 0.709594 * safezoneW + safezoneX; + y = 0.220038 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t21: horde_RscStructuredText + { + idc = 1209; + x = 0.527338 * safezoneW + safezoneX; + y = 0.290028 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t22: horde_RscStructuredText + { + idc = 1210; + x = 0.572902 * safezoneW + safezoneX; + y = 0.290028 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t23: horde_RscStructuredText + { + idc = 1211; + x = 0.618466 * safezoneW + safezoneX; + y = 0.290028 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t24: horde_RscStructuredText + { + idc = 1212; + x = 0.66403 * safezoneW + safezoneX; + y = 0.290028 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t25: horde_RscStructuredText + { + idc = 1213; + x = 0.709594 * safezoneW + safezoneX; + y = 0.290028 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t31: horde_RscStructuredText + { + idc = 1214; + x = 0.527338 * safezoneW + safezoneX; + y = 0.360019 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t32: horde_RscStructuredText + { + idc = 1215; + x = 0.572902 * safezoneW + safezoneX; + y = 0.360019 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t33: horde_RscStructuredText + { + idc = 1216; + x = 0.618466 * safezoneW + safezoneX; + y = 0.360019 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t34: horde_RscStructuredText + { + idc = 1217; + x = 0.66403 * safezoneW + safezoneX; + y = 0.360019 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t35: horde_RscStructuredText + { + idc = 1218; + x = 0.709594 * safezoneW + safezoneX; + y = 0.360019 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t41: horde_RscStructuredText + { + idc = 1219; + x = 0.527338 * safezoneW + safezoneX; + y = 0.43001 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t42: horde_RscStructuredText + { + idc = 1220; + x = 0.572902 * safezoneW + safezoneX; + y = 0.43001 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t43: horde_RscStructuredText + { + idc = 1221; + x = 0.618466 * safezoneW + safezoneX; + y = 0.43001 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t44: horde_RscStructuredText + { + idc = 1222; + x = 0.66403 * safezoneW + safezoneX; + y = 0.43001 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t45: horde_RscStructuredText + { + idc = 1223; + x = 0.709594 * safezoneW + safezoneX; + y = 0.43001 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t51: horde_RscStructuredText + { + idc = 1224; + x = 0.527338 * safezoneW + safezoneX; + y = 0.5 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t52: horde_RscStructuredText + { + idc = 1225; + x = 0.572902 * safezoneW + safezoneX; + y = 0.5 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t53: horde_RscStructuredText + { + idc = 1226; + x = 0.618466 * safezoneW + safezoneX; + y = 0.5 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t54: horde_RscStructuredText + { + idc = 1227; + x = 0.66403 * safezoneW + safezoneX; + y = 0.5 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t55: horde_RscStructuredText + { + idc = 1228; + x = 0.709594 * safezoneW + safezoneX; + y = 0.5 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t61: horde_RscStructuredText + { + idc = 1229; + x = 0.527338 * safezoneW + safezoneX; + y = 0.569991 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t62: horde_RscStructuredText + { + idc = 1230; + x = 0.572902 * safezoneW + safezoneX; + y = 0.569991 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t63: horde_RscStructuredText + { + idc = 1231; + x = 0.618466 * safezoneW + safezoneX; + y = 0.569991 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t64: horde_RscStructuredText + { + idc = 1232; + x = 0.66403 * safezoneW + safezoneX; + y = 0.569991 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t65: horde_RscStructuredText + { + idc = 1233; + x = 0.709594 * safezoneW + safezoneX; + y = 0.569991 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t71: horde_RscStructuredText + { + idc = 1234; + x = 0.527338 * safezoneW + safezoneX; + y = 0.639981 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t72: horde_RscStructuredText + { + idc = 1235; + x = 0.572902 * safezoneW + safezoneX; + y = 0.639981 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t73: horde_RscStructuredText + { + idc = 1236; + x = 0.618466 * safezoneW + safezoneX; + y = 0.639981 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t74: horde_RscStructuredText + { + idc = 1237; + x = 0.66403 * safezoneW + safezoneX; + y = 0.639981 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t75: horde_RscStructuredText + { + idc = 1238; + x = 0.709594 * safezoneW + safezoneX; + y = 0.639981 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class add_kills: horde_RscStructuredText + { + idc = 1239; + x = 0.536451 * safezoneW + safezoneX; + y = 0.709972 * safezoneH + safezoneY; + w = 0.218707 * safezoneW; + h = 0.0699905 * safezoneH; + }; + + /********************************************************************************************************************/ + // Buttons + //********************************************************************************************************************/ + + class click_for_prev_page: horde_RscButton + { + idc = 1900; + x = 0.217398 * safezoneW + safezoneX; + y = 0.167485 * safezoneH + safezoneY; + w = 0.282602 * safezoneW; + h = 0.665029 * safezoneH; + // soundPush[] = {"sounds\close",1,1}; + action = "playSound 'horde_sound_turning_page'; closeDialog 0; createDialog 'horde_journal_pages_zombies';"; + }; + class click_for_next_page: horde_RscButton + { + idc = 1901; + x = 0.5 * safezoneW + safezoneX; + y = 0.167485 * safezoneH + safezoneY; + w = 0.282602 * safezoneW; + h = 0.665029 * safezoneH; + // soundPush[] = {"sounds\page",0.7,1}; + action = "playSound 'horde_sound_turning_page'; closeDialog 0; createDialog 'horde_journal_pages_bandits';"; + }; + class click_here_to_close_book_1: horde_RscButton + { + idc = 1902; + x = -0.00139144 * safezoneW + safezoneX; + y = -0.00752226 * safezoneH + safezoneY; + w = 1.03925 * safezoneW; + h = 0.175008 * safezoneH; + // soundPush[] = {"sounds\close",1,1}; + action = "playSound 'horde_sound_close_book'; closeDialog 0;"; + }; + class click_here_to_close_book_2: horde_RscButton + { + idc = 1903; + x = 0.791719 * safezoneW + safezoneX; + y = 0.167485 * safezoneH + safezoneY; + w = 0.209673 * safezoneW; + h = 0.68253 * safezoneH; + // soundPush[] = {"sounds\close",1,1}; + action = "playSound 'horde_sound_close_book'; closeDialog 0;"; + }; + class click_here_to_close_book_3: horde_RscButton + { + idc = 1904; + x = -0.00139144 * safezoneW + safezoneX; + y = 0.832515 * safezoneH + safezoneY; + w = 1.0119 * safezoneW; + h = 0.175008 * safezoneH; + // soundPush[] = {"sounds\close",1,1}; + action = "playSound 'horde_sound_close_book'; closeDialog 0;"; + }; + class click_here_to_close_book_4: horde_RscButton + { + idc = 1905; + x = -0.00139144 * safezoneW + safezoneX; + y = 0.167485 * safezoneH + safezoneY; + w = 0.209673 * safezoneW; + h = 0.68253 * safezoneH; + // soundPush[] = {"sounds\close",1,1}; + action = "playSound 'horde_sound_close_book'; closeDialog 0;"; + }; +}; diff --git a/SQF/dayz_code/Configs/CfgPlayerStats/p_humanity_art.hpp b/SQF/dayz_code/Configs/CfgPlayerStats/p_humanity_art.hpp new file mode 100644 index 000000000..98fee7204 --- /dev/null +++ b/SQF/dayz_code/Configs/CfgPlayerStats/p_humanity_art.hpp @@ -0,0 +1,148 @@ +/********************************************************************************************************************/ +// Config file for [DayZ] +// Created by: [Horde/Das Attorney] +//********************************************************************************************************************/ + +/********************************************************************************************************************/ +// Set up dialog +/********************************************************************************************************************/ + +class horde_journal_pages_humanity_art +{ + idd = -1; + movingEnable = false; + onLoad = "uiNamespace setVariable ['horde_myDisplay', (_this select 0)]; [] call horde_epeen_setText_humanity_fnc;"; + enableSimulation = true; + controlsBackground[] = {}; + objects[] = {}; + controls[] = + { + "book_page_image", + "left_page_middle", + "left_page_bottom", + "left_page_top", + "right_page_picture", + "click_for_prev_page", + "click_for_next_page", + "click_here_to_close_book_1", + "click_here_to_close_book_2", + "click_here_to_close_book_3", + "click_here_to_close_book_4" + }; + + // background + + class book_page_image: horde_RscPicture + { + idc = 1200; + text = "\z\addons\dayz_communityassets\pictures\playerstats\book\pages_2.paa"; + x = 0.199165 * safezoneW + safezoneX; + y = -0.00752226 * safezoneH + safezoneY; + w = 0.601429 * safezoneW; + h = 1.01491 * safezoneH; + }; + + //left page + + class left_page_middle: horde_RscPicture + { + idc = 1201; + text = "\z\addons\dayz_communityassets\pictures\playerstats\humanity\humanity_bandit_middle_1.paa"; + x = 0.209053 * safezoneW + safezoneX; + y = 0.27261 * safezoneH + safezoneY; + w = 0.282496 * safezoneW; + h = 0.419943 * safezoneH; + }; + class left_page_bottom: horde_RscPicture + { + idc = 1202; + text = "\z\addons\dayz_communityassets\pictures\playerstats\humanity\humanity_bandit_bottom_1.paa"; + x = 0.203156 * safezoneW + safezoneX; + y = 0.468726 * safezoneH + safezoneY; + w = 0.291609 * safezoneW; + h = 0.419943 * safezoneH; + }; + class left_page_top: horde_RscPicture + { + idc = 1203; + text = "\z\addons\dayz_communityassets\pictures\playerstats\humanity\humanity_bandit_top_1.paa"; + x = 0.209111 * safezoneW + safezoneX; + y = 0.0901794 * safezoneH + safezoneY; + w = 0.291609 * safezoneW; + h = 0.419943 * safezoneH; + }; + + // right page + + class right_page_picture: horde_RscPicture + { + idc = 1204; + text = "\z\addons\dayz_communityassets\pictures\playerstats\humanity\humanity_bandit_3.paa"; + x = 0.43621 * safezoneW + safezoneX; + y = 0.167545 * safezoneH + safezoneY; + w = 0.419188 * safezoneW; + h = 0.647412 * safezoneH; + }; + + // buttons + + class click_for_prev_page: horde_RscButton + { + idc = 1900; + x = 0.217398 * safezoneW + safezoneX; + y = 0.167485 * safezoneH + safezoneY; + w = 0.282602 * safezoneW; + h = 0.665029 * safezoneH; + // soundPush[] = {"sounds\close",1,1}; + action = "playSound 'horde_sound_turning_page'; closeDialog 0; createDialog 'horde_journal_pages_journal_humanity';"; + }; + class click_for_next_page: horde_RscButton + { + idc = 1901; + x = 0.5 * safezoneW + safezoneX; + y = 0.167485 * safezoneH + safezoneY; + w = 0.282602 * safezoneW; + h = 0.665029 * safezoneH; + action = "playSound 'horde_sound_turning_page'; closeDialog 0; createDialog 'horde_journal_pages_zombies';"; + }; + class click_here_to_close_book_1: horde_RscButton + { + idc = 1902; + x = -0.00139144 * safezoneW + safezoneX; + y = -0.00752226 * safezoneH + safezoneY; + w = 1.03925 * safezoneW; + h = 0.175008 * safezoneH; + // soundPush[] = {"sounds\close",1,1}; + action = "playSound 'horde_sound_close_book'; closeDialog 0;"; + }; + class click_here_to_close_book_2: horde_RscButton + { + idc = 1903; + x = 0.791719 * safezoneW + safezoneX; + y = 0.167485 * safezoneH + safezoneY; + w = 0.209673 * safezoneW; + h = 0.68253 * safezoneH; + // soundPush[] = {"sounds\close",1,1}; + action = "playSound 'horde_sound_close_book'; closeDialog 0;"; + }; + class click_here_to_close_book_3: horde_RscButton + { + idc = 1904; + x = -0.00139144 * safezoneW + safezoneX; + y = 0.832515 * safezoneH + safezoneY; + w = 1.0119 * safezoneW; + h = 0.175008 * safezoneH; + // soundPush[] = {"sounds\close",1,1}; + action = "playSound 'horde_sound_close_book'; closeDialog 0;"; + }; + class click_here_to_close_book_4: horde_RscButton + { + idc = 1905; + x = -0.00139144 * safezoneW + safezoneX; + y = 0.167485 * safezoneH + safezoneY; + w = 0.209673 * safezoneW; + h = 0.68253 * safezoneH; + // soundPush[] = {"sounds\close",1,1}; + action = "playSound 'horde_sound_close_book'; closeDialog 0;"; + }; +}; diff --git a/SQF/dayz_code/Configs/CfgPlayerStats/p_journal_humanity.hpp b/SQF/dayz_code/Configs/CfgPlayerStats/p_journal_humanity.hpp new file mode 100644 index 000000000..12a12fa20 --- /dev/null +++ b/SQF/dayz_code/Configs/CfgPlayerStats/p_journal_humanity.hpp @@ -0,0 +1,249 @@ +/********************************************************************************************************************/ +// Config file for [DayZ] +// Created by: [Horde/Das Attorney] +//********************************************************************************************************************/ + +/********************************************************************************************************************/ +// Set up dialog +/********************************************************************************************************************/ + +class horde_journal_pages_journal_humanity +{ + idd = -1; + movingEnable = false; + onLoad = "uiNamespace setVariable ['horde_myDisplay', (_this select 0)]; [] call horde_epeen_setText_journal_fnc;"; + enableSimulation = true; + controlsBackground[] = {}; + objects[] = {}; + controls[] = + { + "book_page_image", + "journal_header", + "journal_text_on_left_hand_page", + "humanity_header", + "playing_card_blank", + "playing_card_face_down", + "playing_card_top_value", + "playing_card_bottom_value", + "playing_card_top_suit", + "playing_card_bottom_suit", + "playing_card_top_joker", + "playing_card_bottom_joker", + "playing_card_face_image", + "playing_card_player_name", + "playing_card_humanity_readout", + "click_to_go_back_to_cover", + "click_for_next_page", + "click_here_to_close_book_1", + "click_here_to_close_book_2", + "click_here_to_close_book_3", + "click_here_to_close_book_4", + "click_for_humanity" + }; + + // background + + class book_page_image: horde_RscPicture + { + idc = 1200; + text = "\z\addons\dayz_communityassets\pictures\playerstats\book\pages_2.paa"; + x = 0.199165 * safezoneW + safezoneX; + y = -0.00752226 * safezoneH + safezoneY; + w = 0.601429 * safezoneW; + h = 1.01491 * safezoneH; + }; + + //left page + + class journal_header: horde_RscPicture + { + idc = 1700; + text = "\z\addons\dayz_communityassets\pictures\playerstats\headers\journal.paa"; + x = 0.268972 * safezoneW + safezoneX; + y = 0.236464 * safezoneH + safezoneY; + w = 0.173462 * safezoneW; + h = 0.0648851 * safezoneH; + }; + class journal_text_on_left_hand_page: horde_RscStructuredText + { + idc = 1800; + x = 0.23563 * safezoneW + safezoneX; + y = 0.324992 * safezoneH + safezoneY; + w = 0.237021 * safezoneW; + h = 0.45502 * safezoneH; + }; + + //right page + + class humanity_header: horde_RscPicture + { + idc = 1701; + text = "\z\addons\dayz_communityassets\pictures\playerstats\headers\humanity.paa"; + x = 0.554697 * safezoneW + safezoneX; + y = 0.237488 * safezoneH + safezoneY; + w = 0.181084 * safezoneW; + h = 0.0731088 * safezoneH; + }; + class playing_card_blank: horde_RscPicture + { + idc = 1702; + text = "\z\addons\dayz_communityassets\pictures\playerstats\cards\card\face_up.paa"; + x = 0.51466 * safezoneW + safezoneX; + y = 0.324981 * safezoneH + safezoneY; + w = 0.26437 * safezoneW; + h = 0.45502 * safezoneH; + }; + class playing_card_face_down: horde_RscPicture + { + idc = 1906; + text = "\z\addons\dayz_communityassets\pictures\playerstats\cards\card\face_down.paa"; + x = 0.51466 * safezoneW + safezoneX; + y = 0.324981 * safezoneH + safezoneY; + w = 0.26437 * safezoneW; + h = 0.45502 * safezoneH; + }; + class playing_card_top_value: horde_RscStructuredText + { + idc = 1801; + x = 0.547127 * safezoneW + safezoneX; + y = 0.316785 * safezoneH + safezoneY; + w = 0.0546973 * safezoneW; + h = 0.0875038 * safezoneH; + }; + class playing_card_bottom_value: horde_RscStructuredText + { + idc = 1802; + x = 0.695821 * safezoneW + safezoneX; + y = 0.694556 * safezoneH + safezoneY; + w = 0.0546973 * safezoneW; + h = 0.0875038 * safezoneH; + }; + class playing_card_top_suit: horde_RscStructuredText + { + idc = 1803; + x = 0.556331 * safezoneW + safezoneX; + y = 0.382642 * safezoneH + safezoneY; + w = 0.0364649 * safezoneW; + h = 0.0525023 * safezoneH; + }; + class playing_card_bottom_suit: horde_RscStructuredText + { + idc = 1804; + x = 0.704365 * safezoneW + safezoneX; + y = 0.663569 * safezoneH + safezoneY; + w = 0.0364649 * safezoneW; + h = 0.0525023 * safezoneH; + }; + class playing_card_top_joker: horde_RscStructuredText + { + idc = 1805; + x = 0.56105 * safezoneW + safezoneX; + y = 0.329086 * safezoneH + safezoneY; + w = 0.0273486 * safezoneW; + h = 0.192508 * safezoneH; + }; + class playing_card_bottom_joker: horde_RscStructuredText + { + idc = 1806; + x = 0.707647 * safezoneW + safezoneX; + y = 0.584446 * safezoneH + safezoneY; + w = 0.0273486 * safezoneW; + h = 0.192508 * safezoneH; + }; + class playing_card_face_image: horde_RscStructuredText + { + idc = 1807; + x = 0.586685 * safezoneW + safezoneX; + y = 0.425475 * safezoneH + safezoneY; + w = 0.127627 * safezoneW; + h = 0.22751 * safezoneH; + }; + class playing_card_player_name: horde_RscStructuredText + { + idc = 1808; + x = 0.594 * safezoneW + safezoneX; // 0.591162 + y = 0.640006 * safezoneH + safezoneY; + w = 0.115412 * safezoneW; + h = 0.0360368 * safezoneH; + }; + class playing_card_humanity_readout: horde_RscStructuredText + { + idc = 1809; + x = 0.602 * safezoneW + safezoneX; // 0.598569 + y = 0.680074 * safezoneH + safezoneY; + w = 0.099588 * safezoneW; + h = 0.0360251 * safezoneH; + }; + + // buttons + + class click_to_go_back_to_cover: horde_RscButton + { + idc = 1900; + x = 0.217398 * safezoneW + safezoneX; + y = 0.167485 * safezoneH + safezoneY; + w = 0.282602 * safezoneW; + h = 0.665029 * safezoneH; + // soundPush[] = {"sounds\close",1,1}; + action = "playSound 'horde_sound_close_book'; closeDialog 0; createDialog 'horde_journal_front_cover';"; + }; + class click_for_next_page: horde_RscButton + { + idc = 1901; + x = 0.5 * safezoneW + safezoneX; + y = 0.167485 * safezoneH + safezoneY; + w = 0.282602 * safezoneW; + h = 0.665029 * safezoneH; + // soundPush[] = {"sounds\page",0.7,1}; + action = "playSound 'horde_sound_turning_page'; closeDialog 0; createDialog 'horde_journal_pages_humanity_art';"; + }; + class click_here_to_close_book_1: horde_RscButton + { + idc = 1902; + x = -0.00139144 * safezoneW + safezoneX; + y = -0.00752226 * safezoneH + safezoneY; + w = 1.03925 * safezoneW; + h = 0.175008 * safezoneH; + // soundPush[] = {"sounds\close",1,1}; + action = "playSound 'horde_sound_close_book'; closeDialog 0;"; + }; + class click_here_to_close_book_2: horde_RscButton + { + idc = 1903; + x = 0.791719 * safezoneW + safezoneX; + y = 0.167485 * safezoneH + safezoneY; + w = 0.209673 * safezoneW; + h = 0.68253 * safezoneH; + // soundPush[] = {"sounds\close",1,1}; + action = "playSound 'horde_sound_close_book'; closeDialog 0;"; + }; + class click_here_to_close_book_3: horde_RscButton + { + idc = 1904; + x = -0.00139144 * safezoneW + safezoneX; + y = 0.832515 * safezoneH + safezoneY; + w = 1.0119 * safezoneW; + h = 0.175008 * safezoneH; + // soundPush[] = {"sounds\close",1,1}; + action = "playSound 'horde_sound_close_book'; closeDialog 0;"; + }; + class click_here_to_close_book_4: horde_RscButton + { + idc = 1905; + x = -0.00139144 * safezoneW + safezoneX; + y = 0.167485 * safezoneH + safezoneY; + w = 0.209673 * safezoneW; + h = 0.68253 * safezoneH; + // soundPush[] = {"sounds\close",1,1}; + action = "playSound 'horde_sound_close_book'; closeDialog 0;"; + }; + class click_for_humanity: horde_RscButton + { + idc = 1907; + x = 0.554688 * safezoneW + safezoneX; + y = 0.325 * safezoneH + safezoneY; + w = 0.182292 * safezoneW; + h = 0.455 * safezoneH; + action = "playSound 'horde_sound_turning_page'; [] call horde_epeen_show_humanity_fnc;"; + }; +}; diff --git a/SQF/dayz_code/Configs/CfgPlayerStats/p_murders.hpp b/SQF/dayz_code/Configs/CfgPlayerStats/p_murders.hpp new file mode 100644 index 000000000..c3d118899 --- /dev/null +++ b/SQF/dayz_code/Configs/CfgPlayerStats/p_murders.hpp @@ -0,0 +1,439 @@ +/********************************************************************************************************************/ +// Config file for [DayZ] +// Created by: [Horde/Das Attorney] +//********************************************************************************************************************/ + +/********************************************************************************************************************/ +// Set up dialog +/********************************************************************************************************************/ + +class horde_journal_pages_murders +{ + idd = -1; + movingEnable = false; + onLoad = "uiNamespace setVariable ['horde_myDisplay', (_this select 0)]; [player getVariable['humanKills', 0]] call horde_epeen_setText_stats_fnc;"; + enableSimulation = true; + controlsBackground[] = {}; + objects[] = {}; + controls[] = + { + "book_page_image", + "header_one", + "main_image", + "t11", + "t12", + "t13", + "t14", + "t15", + "t21", + "t22", + "t23", + "t24", + "t25", + "t31", + "t32", + "t33", + "t34", + "t35", + "t41", + "t42", + "t43", + "t44", + "t45", + "t51", + "t52", + "t53", + "t54", + "t55", + "t61", + "t62", + "t63", + "t64", + "t65", + "t75", + "t71", + "t72", + "t73", + "t74", + "t75", + "add_kills", + "click_for_prev_page", + "click_here_to_close_book_1", + "click_here_to_close_book_2", + "click_here_to_close_book_3", + "click_here_to_close_book_4" + }; + + // picture of blank book pages + + class book_page_image: horde_RscPicture + { + idc = 1200; + text = "\z\addons\dayz_communityassets\pictures\playerstats\book\pages_2.paa"; + x = 0.199165 * safezoneW + safezoneX; + y = -0.00752226 * safezoneH + safezoneY; + w = 0.601429 * safezoneW; + h = 1.01491 * safezoneH; + }; + class header_one: horde_RscPicture + { + idc = 1700; + text = "\z\addons\dayz_communityassets\pictures\playerstats\headers\murders.paa"; + x = 0.244842 * safezoneW + safezoneX; + y = 0.237536 * safezoneH + safezoneY; + w = 0.218707 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class main_image: horde_RscPicture + { + idc = 1701; + text = "\z\addons\dayz_communityassets\pictures\playerstats\illus\murders.paa"; + x = 0.226616 * safezoneW + safezoneX; + y = 0.325024 * safezoneH + safezoneY; + w = 0.264271 * safezoneW; + h = 0.454938 * safezoneH; + }; + class t11: horde_RscStructuredText + { + idc = 1204; + x = 0.527338 * safezoneW + safezoneX; + y = 0.220038 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t12: horde_RscStructuredText + { + idc = 1205; + x = 0.572902 * safezoneW + safezoneX; + y = 0.220038 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t13: horde_RscStructuredText + { + idc = 1206; + x = 0.618466 * safezoneW + safezoneX; + y = 0.220038 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t14: horde_RscStructuredText + { + idc = 1207; + x = 0.66403 * safezoneW + safezoneX; + y = 0.220038 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t15: horde_RscStructuredText + { + idc = 1208; + x = 0.709594 * safezoneW + safezoneX; + y = 0.220038 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t21: horde_RscStructuredText + { + idc = 1209; + x = 0.527338 * safezoneW + safezoneX; + y = 0.290028 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t22: horde_RscStructuredText + { + idc = 1210; + x = 0.572902 * safezoneW + safezoneX; + y = 0.290028 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t23: horde_RscStructuredText + { + idc = 1211; + x = 0.618466 * safezoneW + safezoneX; + y = 0.290028 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t24: horde_RscStructuredText + { + idc = 1212; + x = 0.66403 * safezoneW + safezoneX; + y = 0.290028 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t25: horde_RscStructuredText + { + idc = 1213; + x = 0.709594 * safezoneW + safezoneX; + y = 0.290028 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t31: horde_RscStructuredText + { + idc = 1214; + x = 0.527338 * safezoneW + safezoneX; + y = 0.360019 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t32: horde_RscStructuredText + { + idc = 1215; + x = 0.572902 * safezoneW + safezoneX; + y = 0.360019 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t33: horde_RscStructuredText + { + idc = 1216; + x = 0.618466 * safezoneW + safezoneX; + y = 0.360019 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t34: horde_RscStructuredText + { + idc = 1217; + x = 0.66403 * safezoneW + safezoneX; + y = 0.360019 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t35: horde_RscStructuredText + { + idc = 1218; + x = 0.709594 * safezoneW + safezoneX; + y = 0.360019 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t41: horde_RscStructuredText + { + idc = 1219; + x = 0.527338 * safezoneW + safezoneX; + y = 0.43001 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t42: horde_RscStructuredText + { + idc = 1220; + x = 0.572902 * safezoneW + safezoneX; + y = 0.43001 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t43: horde_RscStructuredText + { + idc = 1221; + x = 0.618466 * safezoneW + safezoneX; + y = 0.43001 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t44: horde_RscStructuredText + { + idc = 1222; + x = 0.66403 * safezoneW + safezoneX; + y = 0.43001 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t45: horde_RscStructuredText + { + idc = 1223; + x = 0.709594 * safezoneW + safezoneX; + y = 0.43001 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t51: horde_RscStructuredText + { + idc = 1224; + x = 0.527338 * safezoneW + safezoneX; + y = 0.5 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t52: horde_RscStructuredText + { + idc = 1225; + x = 0.572902 * safezoneW + safezoneX; + y = 0.5 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t53: horde_RscStructuredText + { + idc = 1226; + x = 0.618466 * safezoneW + safezoneX; + y = 0.5 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t54: horde_RscStructuredText + { + idc = 1227; + x = 0.66403 * safezoneW + safezoneX; + y = 0.5 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t55: horde_RscStructuredText + { + idc = 1228; + x = 0.709594 * safezoneW + safezoneX; + y = 0.5 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t61: horde_RscStructuredText + { + idc = 1229; + x = 0.527338 * safezoneW + safezoneX; + y = 0.569991 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t62: horde_RscStructuredText + { + idc = 1230; + x = 0.572902 * safezoneW + safezoneX; + y = 0.569991 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t63: horde_RscStructuredText + { + idc = 1231; + x = 0.618466 * safezoneW + safezoneX; + y = 0.569991 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t64: horde_RscStructuredText + { + idc = 1232; + x = 0.66403 * safezoneW + safezoneX; + y = 0.569991 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t65: horde_RscStructuredText + { + idc = 1233; + x = 0.709594 * safezoneW + safezoneX; + y = 0.569991 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t71: horde_RscStructuredText + { + idc = 1234; + x = 0.527338 * safezoneW + safezoneX; + y = 0.639981 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t72: horde_RscStructuredText + { + idc = 1235; + x = 0.572902 * safezoneW + safezoneX; + y = 0.639981 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t73: horde_RscStructuredText + { + idc = 1236; + x = 0.618466 * safezoneW + safezoneX; + y = 0.639981 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t74: horde_RscStructuredText + { + idc = 1237; + x = 0.66403 * safezoneW + safezoneX; + y = 0.639981 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t75: horde_RscStructuredText + { + idc = 1238; + x = 0.709594 * safezoneW + safezoneX; + y = 0.639981 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class add_kills: horde_RscStructuredText + { + idc = 1239; + x = 0.536451 * safezoneW + safezoneX; + y = 0.709972 * safezoneH + safezoneY; + w = 0.218707 * safezoneW; + h = 0.0699905 * safezoneH; + }; + + /********************************************************************************************************************/ + // Buttons + //********************************************************************************************************************/ + + class click_for_prev_page: horde_RscButton + { + idc = 1900; + x = 0.217398 * safezoneW + safezoneX; + y = 0.167485 * safezoneH + safezoneY; + w = 0.282602 * safezoneW; + h = 0.665029 * safezoneH; + // soundPush[] = {"sounds\close",1,1}; + action = "playSound 'horde_sound_turning_page'; closeDialog 0; createDialog 'horde_journal_pages_bandits';"; + }; + class click_here_to_close_book_1: horde_RscButton + { + idc = 1901; + x = -0.00139144 * safezoneW + safezoneX; + y = -0.00752226 * safezoneH + safezoneY; + w = 1.03925 * safezoneW; + h = 0.175008 * safezoneH; + // soundPush[] = {"sounds\close",1,1}; + action = "playSound 'horde_sound_close_book'; closeDialog 0;"; + }; + class click_here_to_close_book_2: horde_RscButton + { + idc = 1902; + x = 0.791719 * safezoneW + safezoneX; + y = 0.167485 * safezoneH + safezoneY; + w = 0.209673 * safezoneW; + h = 0.68253 * safezoneH; + // soundPush[] = {"sounds\close",1,1}; + action = "playSound 'horde_sound_close_book'; closeDialog 0;"; + }; + class click_here_to_close_book_3: horde_RscButton + { + idc = 1903; + x = -0.00139144 * safezoneW + safezoneX; + y = 0.832515 * safezoneH + safezoneY; + w = 1.0119 * safezoneW; + h = 0.175008 * safezoneH; + // soundPush[] = {"sounds\close",1,1}; + action = "playSound 'horde_sound_close_book'; closeDialog 0;"; + }; + class click_here_to_close_book_4: horde_RscButton + { + idc = 1904; + x = -0.00139144 * safezoneW + safezoneX; + y = 0.167485 * safezoneH + safezoneY; + w = 0.209673 * safezoneW; + h = 0.68253 * safezoneH; + // soundPush[] = {"sounds\close",1,1}; + action = "playSound 'horde_sound_close_book'; closeDialog 0;"; + }; +}; \ No newline at end of file diff --git a/SQF/dayz_code/Configs/CfgPlayerStats/p_zombies_killed.hpp b/SQF/dayz_code/Configs/CfgPlayerStats/p_zombies_killed.hpp new file mode 100644 index 000000000..d77c64f53 --- /dev/null +++ b/SQF/dayz_code/Configs/CfgPlayerStats/p_zombies_killed.hpp @@ -0,0 +1,461 @@ +/********************************************************************************************************************/ +// Config file for [DayZ] +// Created by: [Horde/Das Attorney] +//********************************************************************************************************************/ + +/********************************************************************************************************************/ +// Set up dialog +/********************************************************************************************************************/ + +class horde_journal_pages_zombies +{ + idd = -1; + movingEnable = false; + onLoad = "uiNamespace setVariable ['horde_myDisplay', (_this select 0)]; [player getVariable['zombieKills', 0]] call horde_epeen_setText_stats_fnc;"; + enableSimulation = true; + controlsBackground[] = {}; + objects[] = {}; + controls[] = + { + "book_page_image", + "header_one", + "header_two", + "main_image", + "t11", + "t12", + "t13", + "t14", + "t15", + "t21", + "t22", + "t23", + "t24", + "t25", + "t31", + "t32", + "t33", + "t34", + "t35", + "t41", + "t42", + "t43", + "t44", + "t45", + "t51", + "t52", + "t53", + "t54", + "t55", + "t61", + "t62", + "t63", + "t64", + "t65", + "t75", + "t71", + "t72", + "t73", + "t74", + "t75", + "add_kills", + "click_for_prev_page", + "click_for_next_page", + "click_here_to_close_book_1", + "click_here_to_close_book_2", + "click_here_to_close_book_3", + "click_here_to_close_book_4" + }; + + // picture of blank book pages + + // classhorde_RscStructuredText; + class book_page_image: horde_RscPicture + { + idc = 1200; + text = "\z\addons\dayz_communityassets\pictures\playerstats\book\pages_2.paa"; + x = 0.199165 * safezoneW + safezoneX; + y = -0.00752226 * safezoneH + safezoneY; + w = 0.601429 * safezoneW; + h = 1.01491 * safezoneH; + }; + class header_one: horde_RscPicture + { + idc = 1700; + text = "\z\addons\dayz_communityassets\pictures\playerstats\headers\zombie.paa"; + x = 0.253926 * safezoneW + safezoneX; + y = 0.219948 * safezoneH + safezoneY; + w = 0.200505 * safezoneW; + h = 0.0700129 * safezoneH; + }; + class header_two: horde_RscPicture + { + idc = 1701; + text = "\z\addons\dayz_communityassets\pictures\playerstats\headers\killed.paa"; + x = 0.244842 * safezoneW + safezoneX; + y = 0.290028 * safezoneH + safezoneY; + w = 0.218707 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class main_image: horde_RscPicture + { + idc = 1702; + text = "\z\addons\dayz_communityassets\pictures\playerstats\illus\zombie.paa"; + x = 0.281293 * safezoneW + safezoneX; + y = 0.360019 * safezoneH + safezoneY; + w = 0.136692 * safezoneW; + h = 0.437441 * safezoneH; + }; + class t11: horde_RscStructuredText + { + idc = 1204; + x = 0.527338 * safezoneW + safezoneX; + y = 0.220038 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t12: horde_RscStructuredText + { + idc = 1205; + x = 0.572902 * safezoneW + safezoneX; + y = 0.220038 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t13: horde_RscStructuredText + { + idc = 1206; + x = 0.618466 * safezoneW + safezoneX; + y = 0.220038 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t14: horde_RscStructuredText + { + idc = 1207; + x = 0.66403 * safezoneW + safezoneX; + y = 0.220038 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t15: horde_RscStructuredText + { + idc = 1208; + x = 0.709594 * safezoneW + safezoneX; + y = 0.220038 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t21: horde_RscStructuredText + { + idc = 1209; + x = 0.527338 * safezoneW + safezoneX; + y = 0.290028 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t22: horde_RscStructuredText + { + idc = 1210; + x = 0.572902 * safezoneW + safezoneX; + y = 0.290028 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t23: horde_RscStructuredText + { + idc = 1211; + x = 0.618466 * safezoneW + safezoneX; + y = 0.290028 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t24: horde_RscStructuredText + { + idc = 1212; + x = 0.66403 * safezoneW + safezoneX; + y = 0.290028 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t25: horde_RscStructuredText + { + idc = 1213; + x = 0.709594 * safezoneW + safezoneX; + y = 0.290028 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t31: horde_RscStructuredText + { + idc = 1214; + x = 0.527338 * safezoneW + safezoneX; + y = 0.360019 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t32: horde_RscStructuredText + { + idc = 1215; + x = 0.572902 * safezoneW + safezoneX; + y = 0.360019 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t33: horde_RscStructuredText + { + idc = 1216; + x = 0.618466 * safezoneW + safezoneX; + y = 0.360019 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t34: horde_RscStructuredText + { + idc = 1217; + x = 0.66403 * safezoneW + safezoneX; + y = 0.360019 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t35: horde_RscStructuredText + { + idc = 1218; + x = 0.709594 * safezoneW + safezoneX; + y = 0.360019 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t41: horde_RscStructuredText + { + idc = 1219; + x = 0.527338 * safezoneW + safezoneX; + y = 0.43001 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t42: horde_RscStructuredText + { + idc = 1220; + x = 0.572902 * safezoneW + safezoneX; + y = 0.43001 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t43: horde_RscStructuredText + { + idc = 1221; + x = 0.618466 * safezoneW + safezoneX; + y = 0.43001 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t44: horde_RscStructuredText + { + idc = 1222; + x = 0.66403 * safezoneW + safezoneX; + y = 0.43001 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t45: horde_RscStructuredText + { + idc = 1223; + x = 0.709594 * safezoneW + safezoneX; + y = 0.43001 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t51: horde_RscStructuredText + { + idc = 1224; + x = 0.527338 * safezoneW + safezoneX; + y = 0.5 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t52: horde_RscStructuredText + { + idc = 1225; + x = 0.572902 * safezoneW + safezoneX; + y = 0.5 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t53: horde_RscStructuredText + { + idc = 1226; + x = 0.618466 * safezoneW + safezoneX; + y = 0.5 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t54: horde_RscStructuredText + { + idc = 1227; + x = 0.66403 * safezoneW + safezoneX; + y = 0.5 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t55: horde_RscStructuredText + { + idc = 1228; + x = 0.709594 * safezoneW + safezoneX; + y = 0.5 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t61: horde_RscStructuredText + { + idc = 1229; + x = 0.527338 * safezoneW + safezoneX; + y = 0.569991 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t62: horde_RscStructuredText + { + idc = 1230; + x = 0.572902 * safezoneW + safezoneX; + y = 0.569991 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t63: horde_RscStructuredText + { + idc = 1231; + x = 0.618466 * safezoneW + safezoneX; + y = 0.569991 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t64: horde_RscStructuredText + { + idc = 1232; + x = 0.66403 * safezoneW + safezoneX; + y = 0.569991 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t65: horde_RscStructuredText + { + idc = 1233; + x = 0.709594 * safezoneW + safezoneX; + y = 0.569991 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t71: horde_RscStructuredText + { + idc = 1234; + x = 0.527338 * safezoneW + safezoneX; + y = 0.639981 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t72: horde_RscStructuredText + { + idc = 1235; + x = 0.572902 * safezoneW + safezoneX; + y = 0.639981 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t73: horde_RscStructuredText + { + idc = 1236; + x = 0.618466 * safezoneW + safezoneX; + y = 0.639981 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t74: horde_RscStructuredText + { + idc = 1237; + x = 0.66403 * safezoneW + safezoneX; + y = 0.639981 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class t75: horde_RscStructuredText + { + idc = 1238; + x = 0.709594 * safezoneW + safezoneX; + y = 0.639981 * safezoneH + safezoneY; + w = 0.0546767 * safezoneW; + h = 0.0699905 * safezoneH; + }; + class add_kills: horde_RscStructuredText + { + idc = 1239; + x = 0.536451 * safezoneW + safezoneX; + y = 0.709972 * safezoneH + safezoneY; + w = 0.218707 * safezoneW; + h = 0.0699905 * safezoneH; + }; + + /********************************************************************************************************************/ + // Buttons + //********************************************************************************************************************/ + + class click_for_prev_page: horde_RscButton + { + idc = 1900; + x = 0.217398 * safezoneW + safezoneX; + y = 0.167485 * safezoneH + safezoneY; + w = 0.282602 * safezoneW; + h = 0.665029 * safezoneH; + // soundPush[] = {"sounds\close",1,1}; + action = "playSound 'horde_sound_turning_page'; closeDialog 0; createDialog 'horde_journal_pages_humanity_art';"; + }; + class click_for_next_page: horde_RscButton + { + idc = 1901; + x = 0.5 * safezoneW + safezoneX; + y = 0.167485 * safezoneH + safezoneY; + w = 0.282602 * safezoneW; + h = 0.665029 * safezoneH; + // soundPush[] = {"sounds\page",0.7,1}; + action = "playSound 'horde_sound_turning_page'; closeDialog 0; createDialog 'horde_journal_pages_headshots';"; + }; + class click_here_to_close_book_1: horde_RscButton + { + idc = 1902; + x = -0.00139144 * safezoneW + safezoneX; + y = -0.00752226 * safezoneH + safezoneY; + w = 1.03925 * safezoneW; + h = 0.175008 * safezoneH; + // soundPush[] = {"sounds\close",1,1}; + action = "playSound 'horde_sound_close_book'; closeDialog 0;"; + }; + class click_here_to_close_book_2: horde_RscButton + { + idc = 1903; + x = 0.791719 * safezoneW + safezoneX; + y = 0.167485 * safezoneH + safezoneY; + w = 0.209673 * safezoneW; + h = 0.68253 * safezoneH; + // soundPush[] = {"sounds\close",1,1}; + action = "playSound 'horde_sound_close_book'; closeDialog 0;"; + }; + class click_here_to_close_book_3: horde_RscButton + { + idc = 1904; + x = -0.00139144 * safezoneW + safezoneX; + y = 0.832515 * safezoneH + safezoneY; + w = 1.0119 * safezoneW; + h = 0.175008 * safezoneH; + // soundPush[] = {"sounds\close",1,1}; + action = "playSound 'horde_sound_close_book'; closeDialog 0;"; + }; + class click_here_to_close_book_4: horde_RscButton + { + idc = 1905; + x = -0.00139144 * safezoneW + safezoneX; + y = 0.167485 * safezoneH + safezoneY; + w = 0.209673 * safezoneW; + h = 0.68253 * safezoneH; + // soundPush[] = {"sounds\close",1,1}; + action = "playSound 'horde_sound_close_book'; closeDialog 0;"; + }; +}; diff --git a/SQF/dayz_code/Configs/CfgPlayerStats/sound.hpp b/SQF/dayz_code/Configs/CfgPlayerStats/sound.hpp new file mode 100644 index 000000000..0cc3c0cb5 --- /dev/null +++ b/SQF/dayz_code/Configs/CfgPlayerStats/sound.hpp @@ -0,0 +1,22 @@ +/********************************************************************************************************************/ +// Config file for [DayZ] +// Created by: [Horde/Das Attorney] +//********************************************************************************************************************/ + + +class CfgSounds +{ + class Vas_yessir; + class horde_sound_turning_page: Vas_yessir + { + name = "horde_sound_turning_page"; + sound[] = {"\z\addons\dayz_communityassets\sounds\page.wss", 0.5, 1}; + titles[] = {}; + }; + class horde_sound_close_book: Vas_yessir + { + name = "horde_sound_close_book"; + sound[] = {"\z\addons\dayz_communityassets\sounds\close.wss", 1, 1}; + titles[] = {}; + }; +}; \ No newline at end of file diff --git a/SQF/dayz_code/Configs/RscDisplay/RscDisplayCraftingMenu.hpp b/SQF/dayz_code/Configs/RscDisplay/RscDisplayCraftingMenu.hpp new file mode 100644 index 000000000..3fd0df758 --- /dev/null +++ b/SQF/dayz_code/Configs/RscDisplay/RscDisplayCraftingMenu.hpp @@ -0,0 +1,1110 @@ +class RscListNBox; + +class RscDisplayCraftingMenu { + idd = 6903; + enableDisplay = 1; + onLoad = "uiNamespace setVariable ['DAYZ_CraftingDialog', _this select 0]; ['init'] call fn_updateCraftUI;"; + onUnload = "['close'] call fn_updateCraftUI;"; + + class Controls + { + class craftingRecipeListContainer: RscControlsGroup { + x = 0.275 * safezoneW + safezoneX; + y = 0.2 * safezoneH + safezoneY; + w = 0.25 * safezoneW; + h = 0.58 * safezoneH; + + class ScrollBar + { + color[] = {1,1,1,0.6}; + colorActive[] = {1,1,1,1}; + colorDisabled[] = {1,1,1,0.3}; + thumb = "\ca\ui\data\igui_scrollbar_thumb_ca.paa"; + arrowFull = "\ca\ui\data\igui_arrow_top_active_ca.paa"; + arrowEmpty = "\ca\ui\data\igui_arrow_top_ca.paa"; + border = "\ca\ui\data\igui_border_scroll_ca.paa"; + }; + + class Controls { + class craftingRecipeList: RscStructuredText { + idc = 430; + text = ""; + x = 0; + y = 0; + w = 0.25 * safezoneW; + h = 0.58 * safezoneH; + shadow = 0; + + class Attributes { + //font = "Zeppelin33Italic"; + color = "#000000"; + align = "left"; + }; + }; + }; + }; + + class removeItem: RscGearShortcutButton { + idc = 431; + x = -2; + style = 2048; + text = "<"; + onButtonClick = "['remove'] call fn_updateCraftUI;"; + }; + + class gearList: RscListNBox { + idc = 432; + x = 0.543136 * safezoneW + safezoneX; + y = 0.201614 * safezoneH + safezoneY; + w = 0.1875 * safezoneW; + h = 0.22 * safezoneH; + columns[] = {0.07804,0.18412,0.3,0.81}; + idcLeft = 431; + idcRight = 433; + colorSelectBackground[] = {0.8784,0.8471,0.651,1}; + colorSelectBackground2[] = {0.8784,0.8471,0.651,1}; + + class ScrollBar + { + color[] = {1,1,1,0.6}; + colorActive[] = {1,1,1,1}; + colorDisabled[] = {1,1,1,0.3}; + thumb = "\ca\ui\data\igui_scrollbar_thumb_ca.paa"; + arrowFull = "\ca\ui\data\igui_arrow_top_active_ca.paa"; + arrowEmpty = "\ca\ui\data\igui_arrow_top_ca.paa"; + border = "\ca\ui\data\igui_border_scroll_ca.paa"; + }; + }; + + class addItem: removeItem { + idc = 433; + x = -2; + text = ">"; + onButtonClick = "['add'] call fn_updateCraftUI;"; + }; + + class craftButton: RscIGUIShortcutButton { + idc = 430; + x = 0.601 * safezoneW + safezoneX; + y = 0.744 * safezoneH + safezoneY; + text = $STR_UI_START_CRAFTING; + action = "['craft'] call fn_updateCraftUI;"; + }; + + class craftingslot01: RscPicture + { + idc = 201; + style = 48; + text = ""; + x = 0.55 * safezoneW + safezoneX; + y = 0.44 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot02: RscPicture + { + idc = 202; + style = 48; + text = ""; + x = 0.575 * safezoneW + safezoneX; + y = 0.44 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot03: RscPicture + { + idc = 203; + style = 48; + text = ""; + x = 0.6 * safezoneW + safezoneX; + y = 0.44 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot04: RscPicture + { + idc = 204; + style = 48; + text = ""; + x = 0.625 * safezoneW + safezoneX; + y = 0.44 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot05: RscPicture + { + idc = 205; + style = 48; + text = ""; + x = 0.65 * safezoneW + safezoneX; + y = 0.44 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot06: RscPicture + { + idc = 206; + style = 48; + text = ""; + x = 0.675 * safezoneW + safezoneX; + y = 0.44 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot07: RscPicture + { + idc = 207; + style = 48; + text = ""; + x = 0.7 * safezoneW + safezoneX; + y = 0.44 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot08: RscPicture + { + idc = 208; + style = 48; + text = ""; + x = 0.55 * safezoneW + safezoneX; + y = 0.48 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot09: RscPicture + { + idc = 209; + style = 48; + text = ""; + x = 0.575 * safezoneW + safezoneX; + y = 0.48 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot10: RscPicture + { + idc = 210; + style = 48; + text = ""; + x = 0.6 * safezoneW + safezoneX; + y = 0.48 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot11: RscPicture + { + idc = 211; + style = 48; + text = ""; + x = 0.625 * safezoneW + safezoneX; + y = 0.48 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot12: RscPicture + { + idc = 212; + style = 48; + text = ""; + x = 0.65 * safezoneW + safezoneX; + y = 0.48 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot13: RscPicture + { + idc = 213; + style = 48; + text = ""; + x = 0.675 * safezoneW + safezoneX; + y = 0.48 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot14: RscPicture + { + idc = 214; + style = 48; + text = ""; + x = 0.7 * safezoneW + safezoneX; + y = 0.48 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot15: RscPicture + { + idc = 215; + style = 48; + text = ""; + x = 0.55 * safezoneW + safezoneX; + y = 0.52 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot16: RscPicture + { + idc = 216; + style = 48; + text = ""; + x = 0.575 * safezoneW + safezoneX; + y = 0.52 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot17: RscPicture + { + idc = 217; + style = 48; + text = ""; + x = 0.6 * safezoneW + safezoneX; + y = 0.52 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot18: RscPicture + { + idc = 218; + style = 48; + text = ""; + x = 0.625 * safezoneW + safezoneX; + y = 0.52 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot19: RscPicture + { + idc = 219; + style = 48; + text = ""; + x = 0.65 * safezoneW + safezoneX; + y = 0.52 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot20: RscPicture + { + idc = 220; + style = 48; + text = ""; + x = 0.675 * safezoneW + safezoneX; + y = 0.52 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot21: RscPicture + { + idc = 221; + style = 48; + text = ""; + x = 0.7 * safezoneW + safezoneX; + y = 0.52 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot22: RscPicture + { + idc = 222; + style = 48; + text = ""; + x = 0.55 * safezoneW + safezoneX; + y = 0.56 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot23: RscPicture + { + idc = 223; + style = 48; + text = ""; + x = 0.575 * safezoneW + safezoneX; + y = 0.56 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot24: RscPicture + { + idc = 224; + style = 48; + text = ""; + x = 0.6 * safezoneW + safezoneX; + y = 0.56 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot25: RscPicture + { + idc = 225; + style = 48; + text = ""; + x = 0.625 * safezoneW + safezoneX; + y = 0.56 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot26: RscPicture + { + idc = 226; + style = 48; + text = ""; + x = 0.65 * safezoneW + safezoneX; + y = 0.56 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot27: RscPicture + { + idc = 227; + style = 48; + text = ""; + x = 0.675 * safezoneW + safezoneX; + y = 0.56 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot28: RscPicture + { + idc = 228; + style = 48; + text = ""; + x = 0.7 * safezoneW + safezoneX; + y = 0.56 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot29: RscPicture + { + idc = 229; + style = 48; + text = ""; + x = 0.55 * safezoneW + safezoneX; + y = 0.6 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot30: RscPicture + { + idc = 230; + style = 48; + text = ""; + x = 0.575 * safezoneW + safezoneX; + y = 0.6 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot31: RscPicture + { + idc = 231; + style = 48; + text = ""; + x = 0.6 * safezoneW + safezoneX; + y = 0.6 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot32: RscPicture + { + idc = 232; + style = 48; + text = ""; + x = 0.625 * safezoneW + safezoneX; + y = 0.6 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot33: RscPicture + { + idc = 233; + style = 48; + text = ""; + x = 0.65 * safezoneW + safezoneX; + y = 0.6 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot34: RscPicture + { + idc = 234; + style = 48; + text = ""; + x = 0.675 * safezoneW + safezoneX; + y = 0.6 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot35: RscPicture + { + idc = 235; + style = 48; + text = ""; + x = 0.7 * safezoneW + safezoneX; + y = 0.6 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot36: RscPicture + { + idc = 236; + style = 48; + text = ""; + x = 0.55 * safezoneW + safezoneX; + y = 0.64 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot37: RscPicture + { + idc = 237; + style = 48; + text = ""; + x = 0.575 * safezoneW + safezoneX; + y = 0.64 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot38: RscPicture + { + idc = 238; + style = 48; + text = ""; + x = 0.6 * safezoneW + safezoneX; + y = 0.64 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot39: RscPicture + { + idc = 239; + style = 48; + text = ""; + x = 0.625 * safezoneW + safezoneX; + y = 0.64 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot40: RscPicture + { + idc = 240; + style = 48; + text = ""; + x = 0.65 * safezoneW + safezoneX; + y = 0.64 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot41: RscPicture + { + idc = 241; + style = 48; + text = ""; + x = 0.675 * safezoneW + safezoneX; + y = 0.64 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot42: RscPicture + { + idc = 242; + style = 48; + text = ""; + x = 0.7 * safezoneW + safezoneX; + y = 0.64 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot43: RscPicture + { + idc = 243; + style = 48; + text = ""; + x = 0.55 * safezoneW + safezoneX; + y = 0.68 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot44: RscPicture + { + idc = 244; + style = 48; + text = ""; + x = 0.575 * safezoneW + safezoneX; + y = 0.68 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot45: RscPicture + { + idc = 245; + style = 48; + text = ""; + x = 0.6 * safezoneW + safezoneX; + y = 0.68 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot46: RscPicture + { + idc = 246; + style = 48; + text = ""; + x = 0.625 * safezoneW + safezoneX; + y = 0.68 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot47: RscPicture + { + idc = 247; + style = 48; + text = ""; + x = 0.65 * safezoneW + safezoneX; + y = 0.68 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot48: RscPicture + { + idc = 248; + style = 48; + text = ""; + x = 0.675 * safezoneW + safezoneX; + y = 0.68 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot49: RscPicture + { + idc = 249; + style = 48; + text = ""; + x = 0.7 * safezoneW + safezoneX; + y = 0.68 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + }; + + class controlsBackground { + class Mainback : RscPicture + { + idc = -1; + style = 48; + text = "\z\addons\dayz_code\gui\crafting\craft_bg.paa"; + x = 0 * safezoneW + safezoneX; + y = 0.08 * safezoneH + safezoneY; + w = 1 * safezoneW; + h = 0.84 * safezoneH; + }; + + class gearbackground: RscPicture + { + idc = -1; + style = 48; + text = "#(argb,8,8,3)color(0,0,0,0.6)"; + x = 0.543136 * safezoneW + safezoneX; + y = 0.201614 * safezoneH + safezoneY; + w = 0.1875 * safezoneW; + h = 0.22 * safezoneH; + }; + class craftingbackground: RscPicture + { + idc = -1; + style = 48; + text = "#(argb,8,8,3)color(0,0,0,0.5)"; + x = 0.543136 * safezoneW + safezoneX; + y = 0.430318 * safezoneH + safezoneY; + w = 0.1875 * safezoneW; + h = 0.36 * safezoneH; + }; + class craftingslot01: RscPicture + { + idc = -1; + style = 48; + text = "\z\addons\dayz_code\gui\crafting\craft_box.paa"; + x = 0.55 * safezoneW + safezoneX; + y = 0.44 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot02: RscPicture + { + idc = -1; + style = 48; + text = "\z\addons\dayz_code\gui\crafting\craft_box.paa"; + x = 0.575 * safezoneW + safezoneX; + y = 0.44 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot03: RscPicture + { + idc = -1; + style = 48; + text = "\z\addons\dayz_code\gui\crafting\craft_box.paa"; + x = 0.6 * safezoneW + safezoneX; + y = 0.44 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot04: RscPicture + { + idc = -1; + style = 48; + text = "\z\addons\dayz_code\gui\crafting\craft_box.paa"; + x = 0.625 * safezoneW + safezoneX; + y = 0.44 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot05: RscPicture + { + idc = -1; + style = 48; + text = "\z\addons\dayz_code\gui\crafting\craft_box.paa"; + x = 0.65 * safezoneW + safezoneX; + y = 0.44 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot06: RscPicture + { + idc = -1; + style = 48; + text = "\z\addons\dayz_code\gui\crafting\craft_box.paa"; + x = 0.675 * safezoneW + safezoneX; + y = 0.44 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot07: RscPicture + { + idc = -1; + style = 48; + text = "\z\addons\dayz_code\gui\crafting\craft_box.paa"; + x = 0.7 * safezoneW + safezoneX; + y = 0.44 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot08: RscPicture + { + idc = -1; + style = 48; + text = "\z\addons\dayz_code\gui\crafting\craft_box.paa"; + x = 0.55 * safezoneW + safezoneX; + y = 0.48 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot09: RscPicture + { + idc = -1; + style = 48; + text = "\z\addons\dayz_code\gui\crafting\craft_box.paa"; + x = 0.575 * safezoneW + safezoneX; + y = 0.48 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot10: RscPicture + { + idc = -1; + style = 48; + text = "\z\addons\dayz_code\gui\crafting\craft_box.paa"; + x = 0.6 * safezoneW + safezoneX; + y = 0.48 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot11: RscPicture + { + idc = -1; + style = 48; + text = "\z\addons\dayz_code\gui\crafting\craft_box.paa"; + x = 0.625 * safezoneW + safezoneX; + y = 0.48 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot12: RscPicture + { + idc = -1; + style = 48; + text = "\z\addons\dayz_code\gui\crafting\craft_box.paa"; + x = 0.65 * safezoneW + safezoneX; + y = 0.48 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot13: RscPicture + { + idc = -1; + style = 48; + text = "\z\addons\dayz_code\gui\crafting\craft_box.paa"; + x = 0.675 * safezoneW + safezoneX; + y = 0.48 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot14: RscPicture + { + idc = -1; + style = 48; + text = "\z\addons\dayz_code\gui\crafting\craft_box.paa"; + x = 0.7 * safezoneW + safezoneX; + y = 0.48 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot15: RscPicture + { + idc = -1; + style = 48; + text = "\z\addons\dayz_code\gui\crafting\craft_box.paa"; + x = 0.55 * safezoneW + safezoneX; + y = 0.52 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot16: RscPicture + { + idc = -1; + style = 48; + text = "\z\addons\dayz_code\gui\crafting\craft_box.paa"; + x = 0.575 * safezoneW + safezoneX; + y = 0.52 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot17: RscPicture + { + idc = -1; + style = 48; + text = "\z\addons\dayz_code\gui\crafting\craft_box.paa"; + x = 0.6 * safezoneW + safezoneX; + y = 0.52 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot18: RscPicture + { + idc = -1; + style = 48; + text = "\z\addons\dayz_code\gui\crafting\craft_box.paa"; + x = 0.625 * safezoneW + safezoneX; + y = 0.52 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot19: RscPicture + { + idc = -1; + style = 48; + text = "\z\addons\dayz_code\gui\crafting\craft_box.paa"; + x = 0.65 * safezoneW + safezoneX; + y = 0.52 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot20: RscPicture + { + idc = -1; + style = 48; + text = "\z\addons\dayz_code\gui\crafting\craft_box.paa"; + x = 0.675 * safezoneW + safezoneX; + y = 0.52 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot21: RscPicture + { + idc = -1; + style = 48; + text = "\z\addons\dayz_code\gui\crafting\craft_box.paa"; + x = 0.7 * safezoneW + safezoneX; + y = 0.52 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot22: RscPicture + { + idc = -1; + style = 48; + text = "\z\addons\dayz_code\gui\crafting\craft_box.paa"; + x = 0.55 * safezoneW + safezoneX; + y = 0.56 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot23: RscPicture + { + idc = -1; + style = 48; + text = "\z\addons\dayz_code\gui\crafting\craft_box.paa"; + x = 0.575 * safezoneW + safezoneX; + y = 0.56 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot24: RscPicture + { + idc = -1; + style = 48; + text = "\z\addons\dayz_code\gui\crafting\craft_box.paa"; + x = 0.6 * safezoneW + safezoneX; + y = 0.56 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot25: RscPicture + { + idc = -1; + style = 48; + text = "\z\addons\dayz_code\gui\crafting\craft_box.paa"; + x = 0.625 * safezoneW + safezoneX; + y = 0.56 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot26: RscPicture + { + idc = -1; + style = 48; + text = "\z\addons\dayz_code\gui\crafting\craft_box.paa"; + x = 0.65 * safezoneW + safezoneX; + y = 0.56 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot27: RscPicture + { + idc = -1; + style = 48; + text = "\z\addons\dayz_code\gui\crafting\craft_box.paa"; + x = 0.675 * safezoneW + safezoneX; + y = 0.56 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot28: RscPicture + { + idc = -1; + style = 48; + text = "\z\addons\dayz_code\gui\crafting\craft_box.paa"; + x = 0.7 * safezoneW + safezoneX; + y = 0.56 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot29: RscPicture + { + idc = -1; + style = 48; + text = "\z\addons\dayz_code\gui\crafting\craft_box.paa"; + x = 0.55 * safezoneW + safezoneX; + y = 0.6 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot30: RscPicture + { + idc = -1; + style = 48; + text = "\z\addons\dayz_code\gui\crafting\craft_box.paa"; + x = 0.575 * safezoneW + safezoneX; + y = 0.6 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot31: RscPicture + { + idc = -1; + style = 48; + text = "\z\addons\dayz_code\gui\crafting\craft_box.paa"; + x = 0.6 * safezoneW + safezoneX; + y = 0.6 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot32: RscPicture + { + idc = -1; + style = 48; + text = "\z\addons\dayz_code\gui\crafting\craft_box.paa"; + x = 0.625 * safezoneW + safezoneX; + y = 0.6 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot33: RscPicture + { + idc = -1; + style = 48; + text = "\z\addons\dayz_code\gui\crafting\craft_box.paa"; + x = 0.65 * safezoneW + safezoneX; + y = 0.6 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot34: RscPicture + { + idc = -1; + style = 48; + text = "\z\addons\dayz_code\gui\crafting\craft_box.paa"; + x = 0.675 * safezoneW + safezoneX; + y = 0.6 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot35: RscPicture + { + idc = -1; + style = 48; + text = "\z\addons\dayz_code\gui\crafting\craft_box.paa"; + x = 0.7 * safezoneW + safezoneX; + y = 0.6 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot36: RscPicture + { + idc = -1; + style = 48; + text = "\z\addons\dayz_code\gui\crafting\craft_box.paa"; + x = 0.55 * safezoneW + safezoneX; + y = 0.64 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot37: RscPicture + { + idc = -1; + style = 48; + text = "\z\addons\dayz_code\gui\crafting\craft_box.paa"; + x = 0.575 * safezoneW + safezoneX; + y = 0.64 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot38: RscPicture + { + idc = -1; + style = 48; + text = "\z\addons\dayz_code\gui\crafting\craft_box.paa"; + x = 0.6 * safezoneW + safezoneX; + y = 0.64 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot39: RscPicture + { + idc = -1; + style = 48; + text = "\z\addons\dayz_code\gui\crafting\craft_box.paa"; + x = 0.625 * safezoneW + safezoneX; + y = 0.64 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot40: RscPicture + { + idc = -1; + style = 48; + text = "\z\addons\dayz_code\gui\crafting\craft_box.paa"; + x = 0.65 * safezoneW + safezoneX; + y = 0.64 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot41: RscPicture + { + idc = -1; + style = 48; + text = "\z\addons\dayz_code\gui\crafting\craft_box.paa"; + x = 0.675 * safezoneW + safezoneX; + y = 0.64 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot42: RscPicture + { + idc = -1; + style = 48; + text = "\z\addons\dayz_code\gui\crafting\craft_box.paa"; + x = 0.7 * safezoneW + safezoneX; + y = 0.64 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot43: RscPicture + { + idc = -1; + style = 48; + text = "\z\addons\dayz_code\gui\crafting\craft_box.paa"; + x = 0.55 * safezoneW + safezoneX; + y = 0.68 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot44: RscPicture + { + idc = -1; + style = 48; + text = "\z\addons\dayz_code\gui\crafting\craft_box.paa"; + x = 0.575 * safezoneW + safezoneX; + y = 0.68 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot45: RscPicture + { + idc = -1; + style = 48; + text = "\z\addons\dayz_code\gui\crafting\craft_box.paa"; + x = 0.6 * safezoneW + safezoneX; + y = 0.68 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot46: RscPicture + { + idc = -1; + style = 48; + text = "\z\addons\dayz_code\gui\crafting\craft_box.paa"; + x = 0.625 * safezoneW + safezoneX; + y = 0.68 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot47: RscPicture + { + idc = -1; + style = 48; + text = "\z\addons\dayz_code\gui\crafting\craft_box.paa"; + x = 0.65 * safezoneW + safezoneX; + y = 0.68 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot48: RscPicture + { + idc = -1; + style = 48; + text = "\z\addons\dayz_code\gui\crafting\craft_box.paa"; + x = 0.675 * safezoneW + safezoneX; + y = 0.68 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + class craftingslot49: RscPicture + { + idc = -1; + style = 48; + text = "\z\addons\dayz_code\gui\crafting\craft_box.paa"; + x = 0.7 * safezoneW + safezoneX; + y = 0.68 * safezoneH + safezoneY; + w = 0.025 * safezoneW; + h = 0.04 * safezoneH; + }; + + }; +}; diff --git a/SQF/dayz_code/Configs/RscDisplay/RscDisplayGear.hpp b/SQF/dayz_code/Configs/RscDisplay/RscDisplayGear.hpp new file mode 100644 index 000000000..71c51d41b --- /dev/null +++ b/SQF/dayz_code/Configs/RscDisplay/RscDisplayGear.hpp @@ -0,0 +1,1016 @@ +class RscDisplayGear { + idd = 106; + enableDisplay = 1; + movingEnable = 0; + onLoad = "[] spawn object_monitorGear; {player removeMagazines _x} forEach MeleeMagazines; call gear_ui_init; call ui_gear_sound; if (isNil('IGUI_GEAR_activeFilter')) then { IGUI_GEAR_activeFilter = 0;}; private ['_dummy']; _dummy = [_this,'initDialog'] call compile preprocessFile '\z\addons\dayz_code\system\handleGear.sqf'; _dummy = [_this,'onLoad'] execVM '\z\addons\dayz_code\system\handleGear.sqf'; _dummy;"; + onUnload = "{player removeMagazines _x} forEach MeleeMagazines; call player_forceSave; call dayz_meleeMagazineCheck;"; + onMouseMoving = "[] call gear_ui_hide;"; + onMouseHolding = "[] call gear_ui_hide;"; + + emptyGun = ""; + emptySec = ""; + emptyEq = ""; + emptyMag = ""; + emptyMag2 = ""; + emptyHGun = ""; + emptyHGunMag = ""; + + + class Controls { + // Cannot be removed due to crash or something is dependend on it + class CA_Filter_Icon: RscPicture { + idc = 148; + style = "0x30 + 0x800"; + x = 0; + y = 0; + w = 0; + h = 0; + text = "\ca\ui\data\igui_gear_filter_1_ca.paa"; + }; + + // Cannot be removed due to crash or something is dependend on it + class CA_Filter_Left_Icon: RscPicture { + idc = 1301; + style = "0x30 + 0x800"; + x = 0; + y = 0; + w = 0; + h = 0; + text = "\ca\ui\data\arrow_left_ca.paa"; + }; + + // Cannot be removed due to crash or something is dependend on it + class CA_Filter_Right_Icon: RscPicture { + idc = 1302; + style = "0x30 + 0x800"; + x = 0; + y = 0; + w = 0; + h = 0; + text = "\ca\ui\data\arrow_right_ca.paa"; + }; + + // Cannot be removed due to crash or something is dependend on it + class CA_Filter_Arrow_Left: RscButton { + idc = 150; + 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}; + colorShadow[] = {1,1,1,0}; + colorFocused[] = {1,1,1,0}; + x = 0; + y = 0; + w = 0; + h = 0; + text = ""; + }; + + // Cannot be removed due to crash or something is dependend on it + class CA_Filter_Arrow_Right: RscButton { + idc = 151; + 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}; + colorShadow[] = {1,1,1,0}; + colorFocused[] = {1,1,1,0}; + x = 0; + y = 0; + w = 0; + h = 0; + text = ""; + }; + + // Cannot be removed due to crash or something is dependent on it + class CA_Filter_Icon1: RscButton { + idc = 149; + 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}; + colorShadow[] = {1,1,1,0}; + colorFocused[] = {1,1,1,0}; + x = 0; + y = 0; + w = 0; + h = 0; + text = ""; + }; + + class Gear_Title: RscText { + idc = 1001; + text = $STR_UI_SLOTS_LEFT; + x = -0.051; + y = 0.014; + w = 0.1525; + h = 0.035; + colorText[] = {0.06,0.05,0.03,1}; + shadow = 0; + }; + + // Cannot be removed due to crash or something is dependent on it + class Unit_Title: RscText { + idc = 101; + style = 2; + x = 0; + y = 0; + w = 0; + h = 0; + }; + + // Cannot be removed due to crash or something is dependent on it + class CA_Money: RscText { + idc = 1102; + style = 1; + show = 0; + x = 0; + y = 0; + w = 0; + h = 0; + text = "Money:"; + }; + + // Cannot be removed due to crash or something is dependent on it + class CA_Money_Value: RscText { + idc = 1103; + x = 0; + y = 0; + w = 0; + h = 0; + text = "0"; + }; + + class Weapon_slots_picture: RscPicture { + idc = 9001; + x = 0.084; + y = 0.01; + w = 0.028; + h = 0.042; + text = "\z\addons\dayz_code\gui\gear\gear_ui_slots_weapons.paa"; + }; + + + class Weapon_slots_value: RscText { + idc = 9002; + x = 0.104; + y = 0.014; + w = 0.122; + h = 0.035; + colorText[] = {0.46,0.04,0.05,1}; + shadow = 0; + text = "n/a"; + }; + + class Item_slots_picture: RscPicture { + idc = 9003; + x = 0.167; + y = 0.01; + w = 0.028; + h = 0.042; + text = "\z\addons\dayz_code\gui\gear\gear_ui_slots_items.paa"; + }; + + class Item_slots_value: RscText { + idc = 9004; + x = 0.187; + y = 0.014; + w = 0.122; + h = 0.035; + colorText[] = {0.46,0.04,0.05,1}; + shadow = 0; + text = "n/a"; + }; + + class Backpack_slots_picture: RscPicture { + idc = 9005; + x = 0.254; + y = 0.01; + w = 0.028; + h = 0.042; + text = "\z\addons\dayz_code\gui\gear\gear_ui_slots_backpacks.paa"; + }; + + + class Backpack_slots_value: RscText { + idc = 9006; + x = 0.274; + y = 0.014; + w = 0.122; + h = 0.035; + colorText[] = {0.46,0.04,0.05,1}; + shadow = 0; + text = "n/a"; + }; + + class Available_items_Text: RscText { + idc = 156; + x = -0.051; + y = 0.054; + w = 0.39; + h = 0.029; + colorText[] = {0.06,0.05,0.03,0.6}; + shadow = 0; + }; + + class CA_ItemName: RscText { + idc = 1101; + //x = -0.039; + x = -0.051; + //y = 0.627; + y = 0.668; + colorText[] = {0.32,0.24,0.09,1}; + shadow = 0; + text = "Gear of the unit:"; + }; + + class CA_CustomDescription: RscStructuredText { + idc = 1106; + //x = -0.039; + x = -0.051; + //y = 0.664; + y = 0.704; + w = 0.458; + h = 0.152; + colorText[] = {0.14,0.14,0.14,1}; + shadow = 0; + class Attributes { + font = "Zeppelin32"; + color = "#232323"; + align = "left"; + shadow = 0; + }; + }; + + class CA_Item_Picture: RscPicture { + idc = 1104; + style = "0x30 + 0x800"; + //x = 0.331; + x = 0.211; + //y = 0.786; + y = 0.901; + //w = 0.157; + w = 0.221; + //h = 0.105; + h = 0.155; + text = ""; + }; + + class ListboxArrows: RscControlsGroup { + x = -0.058; + y = 0.122; + w = 0.507; + //w = 0.556; + h = 0.523; + idc = 155; + + class VScrollbar { + autoScrollSpeed = -1; + autoScrollDelay = 5; + autoScrollRewind = 0; + color[] = {1,1,1,0}; + width = 0.001; + }; + + class HScrollbar { + color[] = {1,1,1,0}; + height = 0.001; + }; + + class Controls { + class CA_B_Add: RscGearShortcutButton { + idc = 146; + x = -2; + style = 2048; + onSetFocus = "private [""_dummy""]; _dummy = [_this,""onFocus""] execVM ""\z\addons\dayz_code\system\handleGear.sqf""; _dummy;"; + onButtonClick = "private [""_dummy""]; {player removeMagazines _x} forEach MeleeMagazines; _dummy = [_this,""onLBListSelChanged""] execVM ""\z\addons\dayz_code\system\handleGear.sqf""; _dummy;"; + text = "<"; + }; + + class Available_items: RscIGUIListNBox { + idc = 105; + columns[] = {0.07804,0.18412,0.81,0.67}; + drawSideArrows = 1; + idcRight = 147; + idcLeft = 146; + colorPlayerItem[] = {0.06,0.05,0.03,1}; + colorSelect[] = {0.06,0.05,0.03,1}; + colorSelect2[] = {0.06,0.05,0.03,1}; + colorSelectBackground[] = {0.28,0.25,0.18,0.4}; + colorSelectBackground2[] = {0.28,0.25,0.18,0.4}; + shadow = 0; + onKeyDown = "private [""_dummy""]; _dummy = [_this,""onKeyDown"",0,107,0,107] execVM ""\z\addons\dayz_code\system\handleGear.sqf""; _dummy;"; + onLBSelChanged = "private [""_dummy""]; _dummy = [_this,""onLBSelChanged""] execVM ""\z\addons\dayz_code\system\handleGear.sqf""; _dummy;"; + onLBListSelChanged = "private [""_dummy""]; _dummy = [_this,""onLBListSelChanged""] execVM ""\z\addons\dayz_code\system\handleGear.sqf""; _dummy;"; + onKillFocus = "private [""_dummy""]; _dummy = [_this,""onKillFocus""] execVM ""\z\addons\dayz_code\system\handleGear.sqf""; _dummy;"; + x = 0; + y = 0; + //w = 0.46; + w = 0.507; + //h = 0.449; + //h = 0.524; + h = 0.523; + canDrag = 1; + }; + + class CA_B_Remove: CA_B_Add { + idc = 147; + x = -2; + onSetFocus = "private [""_dummy""]; _dummy = [_this,""onFocus""] execVM ""\z\addons\dayz_code\system\handleGear.sqf""; _dummy;"; + onButtonClick = "private [""_dummy""]; {player removeMagazines _x} forEach MeleeMagazines; _dummy = [_this,""onLBListSelChanged""] execVM ""\z\addons\dayz_code\system\handleGear.sqf""; _dummy;"; + text = ">"; + }; + }; + }; + + class G_Interaction: RscControlsGroup { + idc = 6902; + x = 0.502; + y = 0.250 * safezoneH; + w = 0.145 * safezoneW; + h = 0; //0.250 * safezoneH; + onMouseMoving = "call gear_ui_offMenu;"; + + class VScrollbar { + autoScrollSpeed = -1; + autoScrollDelay = 5; + autoScrollRewind = 0; + color[] = {1,1,1,0}; + width = 0.001; + }; + + class HScrollbar { + color[] = {1,1,1,0}; + height = 0.001; + }; + + class Controls { + class RscButton_1600: RscButtonActionMenu { + idc = 1600; + text = ""; + x = 0; + y = 0 * safezoneH; + }; + + class RscButton_1601: RscButtonActionMenu { + idc = 1601; + text = ""; + x = 0; + y = 0.025 * safezoneH; + }; + + class RscButton_1602: RscButtonActionMenu { + idc = 1602; + text = ""; + x = 0; + y = 0.05 * safezoneH; + }; + + class RscButton_1603: RscButtonActionMenu { + idc = 1603; + text = ""; + x = 0; + y = 0.075 * safezoneH; + }; + + class RscButton_1604: RscButtonActionMenu { + idc = 1604; + text = ""; + x = 0; + y = 0.1 * safezoneH; + }; + + class RscButton_1605: RscButtonActionMenu { + idc = 1605; + text = ""; + x = 0; + y = 0.125 * safezoneH; + }; + + class RscButton_1606: RscButtonActionMenu { + idc = 1606; + text = ""; + x = 0; + y = 0.15 * safezoneH; + }; + + class RscButton_1607: RscButtonActionMenu { + idc = 1607; + text = ""; + x = 0; + y = 0.175 * safezoneH; + }; + + class RscButton_1608: RscButtonActionMenu { + idc = 1608; + text = ""; + x = 0; + y = 0.2 * safezoneH; + }; + + class RscButton_1609: RscButtonActionMenu { + idc = 1609; + text = ""; + x = 0; + y = 0.225 * safezoneH; + }; + }; + }; + + class G_GearItems: RscControlsGroup { + idc = 160; + x = 0.465; + y = 0.104; + w = 0.533; + h = 0.928; + + class VScrollbar { + autoScrollSpeed = -1; + autoScrollDelay = 5; + autoScrollRewind = 0; + color[] = {1,1,1,0}; + width = 0.001; + }; + + class HScrollbar { + color[] = {1,1,1,0}; + height = 0.001; + }; + + class Controls { + class CA_Gear_slot_primary: RscActiveText { + idc = 107; + x = 0.138; + y = 0.181; + w = 0.309; + h = 0.174; + style = "0x30 + 0x800"; + onMouseButtonDown = "_this call player_selectSlot;"; + soundDoubleClick[] = {"",0.1,1}; + color[] = {1,1,1,1}; + colorBackground[] = {0.84,0.8,0.72,0.2}; + colorBackgroundSelected[] = {0.84,0.8,0.72,0.8}; + colorFocused[] = {0,0,0,0}; + canDrag = 1; + }; + + class CA_Gear_slot_secondary: CA_Gear_slot_primary { + idc = 108; + x = 0.138; + y = 0; + w = 0.309; + h = 0.174; + colorBackground[] = {0.27,0.34,0.47,0.2}; + colorBackgroundSelected[] = {0.27,0.34,0.47,0.8}; + onMouseButtonDblClick = "if (!(ctrlShown ((findDisplay 106) displayCtrl 158)) && ((gearSlotData (_this select 0)) isKindOf 'Bag_Base_EP1')) then { [player,'open_backpack',0,false,5] call dayz_zombieSpeak; };"; + }; + + class CA_Gear_slot_carry: CA_Gear_slot_primary { + idc = 1209; + x = 0.138; + y = 0.364; + w = 0.309; + h = 0.174; + onMouseEnter = "if ((DayZ_onBack != """") && (dayz_onBack in MeleeWeapons)) then {mouseOverCarry = true;} else {mouseOverCarry = false;};"; + onMouseExit = "mouseOverCarry = false;"; + colorActive[] = {1,1,1,1}; + colorBackground[] = {0.74,0.74,0.74,0.2}; // has no effect + colorBackgroundSelected[] = {0.74,0.74,0.74,0.8}; // has no effect + }; + + class CA_Gear_slot_item1: CA_Gear_slot_primary { + idc = 109; + x = 0; + y = 0; + w = 0.064; + h = 0.085; + }; + + class CA_Gear_slot_item2: CA_Gear_slot_item1 { + idc = 110; + x = 0.069; + y = 0; + w = 0.064; + h = 0.085; + }; + + class CA_Gear_slot_item3: CA_Gear_slot_item1 { + idc = 111; + x = 0; + y = 0.091; + w = 0.064; + h = 0.085; + }; + + class CA_Gear_slot_item4: CA_Gear_slot_item1 { + idc = 112; + x = 0.069; + y = 0.091; + w = 0.064; + h = 0.085; + }; + + class CA_Gear_slot_item5: CA_Gear_slot_item1 { + idc = 113; + x = 0; + y = 0.181; + w = 0.064; + h = 0.085; + }; + + class CA_Gear_slot_item6: CA_Gear_slot_item1 { + idc = 114; + x = 0.069; + y = 0.181; + w = 0.064; + h = 0.085; + }; + + class CA_Gear_slot_item7: CA_Gear_slot_item1 { + idc = 115; + x = 0; + y = 0.272; + w = 0.064; + h = 0.085; + }; + + class CA_Gear_slot_item8: CA_Gear_slot_item1 { + idc = 116; + x = 0.069; + y = 0.272; + w = 0.064; + h = 0.085; + }; + + class CA_Gear_slot_item9: CA_Gear_slot_item1 { + idc = 117; + x = 0; + y = 0.364; + w = 0.064; + h = 0.085; + }; + + class CA_Gear_slot_item10: CA_Gear_slot_item1 { + idc = 118; + x = 0.069; + y = 0.364; + w = 0.064; + h = 0.085; + }; + + class CA_Gear_slot_item11: CA_Gear_slot_item1 { + idc = 119; + x = 0; + y = 0.457; + w = 0.064; + h = 0.085; + }; + + class CA_Gear_slot_item12: CA_Gear_slot_item1 { + idc = 120; + x = 0.069; + y = 0.457; + w = 0.064; + h = 0.085; + }; + + class CA_Gear_slot_handgun: CA_Gear_slot_primary { + idc = 121; + x = 0; + y = 0.559; + w = 0.133; + h = 0.177; + colorBackground[] = {0.5,0.58,0.38,0.2}; + colorBackgroundSelected[] = {0.5,0.58,0.38,0.8}; + }; + + class CA_Gear_slot_handgun_item1: CA_Gear_slot_item1 { + idc = 122; + x = 0.138; + y = 0.559; + w = 0.064; + h = 0.085; + colorBackground[] = {0.69,0.86,0.38,0.2}; + colorBackgroundSelected[] = {0.5,0.58,0.38,0.8}; + }; + + class CA_Gear_slot_handgun_item2: CA_Gear_slot_handgun_item1 { + idc = 123; + x = 0.207; + y = 0.559; + w = 0.064; + h = 0.085; + }; + + class CA_Gear_slot_handgun_item3: CA_Gear_slot_handgun_item1 { + idc = 124; + x = 0.275; + y = 0.559; + w = 0.064; + h = 0.085; + }; + + class CA_Gear_slot_handgun_item4: CA_Gear_slot_handgun_item1 { + idc = 125; + x = 0.345; + y = 0.559; + w = 0.064; + h = 0.085; + }; + + class CA_Gear_slot_handgun_item5: CA_Gear_slot_handgun_item1 { + idc = 126; + x = 0.138; + y = 0.65; + w = 0.064; + h = 0.085; + }; + + class CA_Gear_slot_handgun_item6: CA_Gear_slot_handgun_item1 { + idc = 127; + x = 0.207; + y = 0.65; + w = 0.064; + h = 0.085; + }; + + class CA_Gear_slot_handgun_item7: CA_Gear_slot_handgun_item1 { + idc = 128; + x = 0.275; + y = 0.65; + w = 0.064; + h = 0.085; + }; + + class CA_Gear_slot_handgun_item8: CA_Gear_slot_handgun_item1 { + idc = 129; + x = 0.345; + y = 0.65; + w = 0.064; + h = 0.085; + }; + + class CA_Gear_slot_inventory1: CA_Gear_slot_handgun_item1 { + idc = 134; + x = 0; + y = 0.752; + w = 0.064; + h = 0.085; + colorBackground[] = {0.88,0.8,0.66,0.2}; + colorBackgroundSelected[] = {0.49,0.43,0.29,0.8}; + }; + + class CA_Gear_slot_inventory2: CA_Gear_slot_inventory1 { + idc = 135; + x = 0.069; + y = 0.752; + w = 0.064; + h = 0.085; + }; + + class CA_Gear_slot_inventory3: CA_Gear_slot_inventory1 { + idc = 136; + x = 0.138; + y = 0.752; + w = 0.064; + h = 0.085; + }; + + class CA_Gear_slot_inventory4: CA_Gear_slot_inventory1 { + idc = 137; + x = 0.207; + y = 0.752; + w = 0.064; + h = 0.085; + }; + + class CA_Gear_slot_inventory5: CA_Gear_slot_inventory1 { + idc = 138; + x = 0.275; + y = 0.752; + w = 0.064; + h = 0.085; + }; + + class CA_Gear_slot_inventory6: CA_Gear_slot_inventory1 { + idc = 139; + x = 0.345; + y = 0.752; + w = 0.064; + h = 0.085; + }; + + class CA_Gear_slot_inventory7: CA_Gear_slot_inventory1 { + idc = 140; + x = 0; + y = 0.844; + w = 0.064; + h = 0.085; + }; + + class CA_Gear_slot_inventory8: CA_Gear_slot_inventory1 { + idc = 141; + x = 0.069; + y = 0.844; + w = 0.064; + h = 0.085; + }; + + class CA_Gear_slot_inventory9: CA_Gear_slot_inventory1 { + idc = 142; + x = 0.138; + y = 0.844; + w = 0.064; + h = 0.085; + }; + + class CA_Gear_slot_inventory10: CA_Gear_slot_inventory1 { + idc = 143; + x = 0.207; + y = 0.844; + w = 0.064; + h = 0.085; + }; + + class CA_Gear_slot_inventory11: CA_Gear_slot_inventory1 { + idc = 144; + x = 0.275; + y = 0.844; + w = 0.064; + h = 0.085; + }; + + class CA_Gear_slot_inventory12: CA_Gear_slot_inventory1 { + idc = 145; + x = 0.345; + y = 0.844; + w = 0.064; + h = 0.085; + }; + + class CA_Gear_slot_special1: CA_Gear_slot_handgun { + idc = 130; + x = 0.413; + y = 0.568; + w = 0.12; + h = 0.16; + colorBackground[] = {0.46,0.46,0.4,0.2}; + colorBackgroundSelected[] = {0.46,0.46,0.4,0.8}; + }; + + class CA_Gear_slot_special2: CA_Gear_slot_special1 { + idc = 131; + x = 0.413; + y = 0.757; + w = 0.12; + h = 0.16; + }; + + class ButtonRearm: RscActiveText { + idc = 132; + style = "0x30 + 0x800"; + text = "\z\addons\dayz_code\gui\gear\gear_ui_open.paa"; + //x = 0.916; + x = 0.455; + //y = 0.104; + y = 0.002; + w = 0.051; + h = 0.174; + color[] = {1,1,1,0.5}; + colorActive[] = {1,1,1,0.5}; + }; + + class ButtonOpenBag: RscActiveText { + idc = 157; + style = "0x30 + 0x800"; + text = "\z\addons\dayz_code\gui\gear\gear_ui_open.paa"; + //x = 0.916; + x = 0.455; + //y = 0.104; + y = 0.002; + w = 0.051; + h = 0.174; + color[] = {1,1,1,0.5}; + colorActive[] = {1,1,1,0.8}; + action = "[player,'open_backpack',0,false,5] call dayz_zombieSpeak;"; + }; + + class ButtonCloseBag: RscActiveText { + idc = 158; + style = "0x30 + 0x800"; + text = "\z\addons\dayz_code\gui\gear\gear_ui_open.paa"; + //x = 0.916; + x = 0.455; + //y = 0.104; + y = 0.002; + w = 0.051; + h = 0.174; + color[] = {1,1,1,0.5}; + colorActive[] = {1,1,1,0.8}; + action = "[player,'open_backpack',0,false,5] call dayz_zombieSpeak;"; + }; + + class Button1: RscActiveText { + idc = 1204; + style = "0x30 + 0x800"; + text = "\z\addons\dayz_code\gui\gear\gear_ui_carry.paa"; + //x = 0.916; + x = 0.455; + //y = 0.285; + y = 0.183; + w = 0.051; + h = 0.174; + color[] = {1,1,1,0.5}; + colorActive[] = {1,1,1,0.8}; + action = "[""gear""] call player_switchWeapon"; + }; + + class Button2: RscActiveText { + idc = 1208; + style = "0x30 + 0x800"; + text = "\z\addons\dayz_code\gui\gear\gear_ui_hold.paa"; + //x = 0.916; + x = 0.455; + //y = 0.468; + y = 0.364; + w = 0.051; + h = 0.174; + color[] = {1,1,1,0.5}; + colorActive[] = {1,1,1,0.8}; + action = "[""gear""] call player_switchWeapon"; + }; + }; + }; + + class BagItemsGroup: RscControlsGroup { + x = 0.465; + y = 0.104; + w = 0.533; + h = 0.928; + idc = 159; + magW = 0.052; + magH = 0.074; + weaponW = 0.22; + weaponH = 0.15; + gunW = 0.11; + gunH = 0.15; + spacing = 0.0047; + text = ""; + color[] = {1,1,1,1}; + colorBackground[] = {1,1,1,1}; + colorBackgroundSelected[] = {1,1,1,1}; + soundPush[] = {"",0.1,1}; + colorFocused[] = {1,1,1,1}; + soundClick[] = {"",0.1,1}; + soundDoubleClick[] = {"",0.1,1}; + + class VScrollbar { + autoScrollSpeed = -1; + autoScrollDelay = 5; + autoScrollRewind = 0; + color[] = {1,1,1,0}; + width = 0.001; + }; + + class HScrollbar { + color[] = {1,1,1,0}; + height = 0.001; + }; + + class ScrollBar { + color[] = {1,1,1,0.6}; + colorActive[] = {1,1,1,1}; + colorDisabled[] = {1,1,1,0.3}; + thumb = "\ca\ui\data\ui_scrollbar_thumb_ca.paa"; + arrowFull = "\ca\ui\data\ui_arrow_top_active_ca.paa"; + arrowEmpty = "\ca\ui\data\ui_arrow_top_ca.paa"; + border = "\ca\ui\data\ui_border_scroll_ca.paa"; + }; + + class Controls { + class ButtonCloseBagCustom: RscActiveText { + idc = 1203; + style = "0x30 + 0x800"; + text = "\z\addons\dayz_code\gui\gear\gear_ui_open.paa"; + //x = 0.916; + x = 0.455; + //y = 0.104; + y = 0; + w = 0.051; + h = 0.174; + color[] = {1,1,1,0.5}; + colorActive[] = {1,1,1,0.8}; + action = "[player,'open_backpack',0,false,5] call dayz_zombieSpeak; ctrlActivate ((findDisplay 106) displayCtrl 158);"; + }; + }; + }; + + // Cannot be removed due to crash or something is dependend on it + class ButtonFilters: RscIGUIShortcutButton { + idc = 148; + shortcuts[] = {"0x00050000 + 3"}; + x = 0; + y = 0; + text = "Filter"; + w = 0; + h = 0; + }; + + // Cannot be removed due to crash or something is dependend on it + class ButtonContinue: RscIGUIShortcutButton { + idc = 1; + shortcuts[] = {"0x00050000 + 0",28,57,156}; + x = 0; + y = 0; + default = 1; + w = 0; + h = 0; + }; + + class ButtonClose: RscActiveText { + idc = 2; + style = "0x30 + 0x800"; + text = "\z\addons\dayz_code\gui\gear\gear_ui_close.paa"; + x = 0.919; + y = 0.039; + w = 0.051; + h = 0.057; + color[] = {1,1,1,0.5}; + colorActive[] = {1,1,1,0.8}; + }; + + // Cannot be removed due to crash or something is dependend on it + class Break_7: RscLineBreak {}; + }; + + class ControlsBackground { + class Mainback: RscPicture { + idc = 1005; + x = -0.086; + y = -0.03; + w = 1.1; + h = 1.121; + moving = 0; + text = "\z\addons\dayz_code\gui\gear\gear_bg.paa"; + }; + + class CA_Gear_slot_primary_background: RscPicture { + idc = 1006; + x = 0.603; + y = 0.285; + w = 0.309; + h = 0.174; + text = "\z\addons\dayz_code\gui\gear\gear_ui_holding.paa"; + }; + + class CA_Gear_slot_secondary_background: RscPicture { + idc = 1007; + x = 0.603; + y = 0.104; + w = 0.309; + h = 0.174; + text = "\z\addons\dayz_code\gui\gear\gear_ui_back.paa"; + }; + + class CA_Gear_slot_carry_background: RscPicture { + idc = 1008; + x = 0.603; + y = 0.468; + w = 0.309; + h = 0.174; + text = "\z\addons\dayz_code\gui\gear\gear_ui_carrying.paa"; + }; + + class CA_Gear_slot_handgun_background: RscPicture { + idc = 1009; + x = 0.465; + y = 0.663; + w = 0.133; + h = 0.177; + text = "\z\addons\dayz_code\gui\gear\gear_ui_pistol.paa"; + }; + + class CA_Gear_slot_special1_background: RscPicture { + idc = 1010; + x = 0.878; + y = 0.671; + w = 0.12; + h = 0.16; + colorBackground[] = {0.6,0.54,0.64,0.2}; + colorBackgroundSelected[] = {0.6,0.54,0.64,0.8}; + text = "\z\addons\dayz_code\gui\gear\gear_ui_vision1.paa"; + }; + + class CA_Gear_slot_special2_background: RscPicture { + idc = 1011; + x = 0.878; + y = 0.861; + w = 0.12; + h = 0.16; + text = "\z\addons\dayz_code\gui\gear\gear_ui_vision2.paa"; + }; + }; +}; diff --git a/SQF/dayz_code/Configs/RscDisplay/RscDisplayGenderSelect.hpp b/SQF/dayz_code/Configs/RscDisplay/RscDisplayGenderSelect.hpp new file mode 100644 index 000000000..70246c14a --- /dev/null +++ b/SQF/dayz_code/Configs/RscDisplay/RscDisplayGenderSelect.hpp @@ -0,0 +1,54 @@ +class RscDisplayGenderSelect +{ + idd = 6902; + enableDisplay = 1; + class controls + { + class GenderPic_Man : RscActiveText + { + idc = -1; + style = 48; + text = "z\addons\dayz_code\gui\gender_menu_man.paa"; + x = 0.28 * safezoneW + safezoneX; + y = 0.24 * safezoneH + safezoneY; + w = 0.117188 * safezoneW; + h = 0.542373 * safezoneH; + color[] = { 0.5, 0.5, 0.5, 1 }; + colorActive[] = { 1, 1, 1, 1 }; + action = "closeDialog 0;dayz_selectGender = 'Survivor2_DZ';"; + }; + class GenderPic_Woman : RscActiveText + { + idc = -1; + style = 48; + text = "z\addons\dayz_code\gui\gender_menu_woman.paa"; + x = 0.6 * safezoneW + safezoneX; + y = 0.24 * safezoneH + safezoneY; + w = 0.117188 * safezoneW; + h = 0.542373 * safezoneH; + color[] = { 0.5, 0.5, 0.5, 1 }; + colorActive[] = { 1, 1, 1, 1 }; + action = "closeDialog 0;dayz_selectGender = 'SurvivorW2_DZ';"; + }; + class Gender_Title: RscStructuredText + { + idc = -1; + text = "$STR_UI_GENDER_TITLE"; + x = 0.4 * safezoneW + safezoneX; + y = 0.221864 * safezoneH + safezoneY; + w = 0.2 * safezoneW; + h = 0.05 * safezoneH; + colorBackground[] = {-1,-1,-1,0}; + }; + class Gender_Description: RscStructuredText + { + idc = -1; + text = "$STR_UI_GENDER_DESC"; + x = 0.4 * safezoneW + safezoneX; + y = 0.366134 * safezoneH + safezoneY; + w = 0.2 * safezoneW; + h = 0.3 * safezoneH; + colorBackground[] = {-1,-1,-1,0}; + }; + }; +}; diff --git a/SQF/dayz_code/Configs/RscDisplay/RscDisplaySpawnSelecter.hpp b/SQF/dayz_code/Configs/RscDisplay/RscDisplaySpawnSelecter.hpp index cc2135e65..f371f422e 100644 --- a/SQF/dayz_code/Configs/RscDisplay/RscDisplaySpawnSelecter.hpp +++ b/SQF/dayz_code/Configs/RscDisplay/RscDisplaySpawnSelecter.hpp @@ -2,9 +2,6 @@ class RscDisplaySpawnSelecter { idd = 6903; enableDisplay = 1; - onLoad = "DZE_DisplaySpawnSelector = true;"; - //onUnload = "DZE_DisplaySpawnSelector = false;"; - class controlsBackground { class Mainback : RscPicture { idc = -1; @@ -28,7 +25,7 @@ class RscDisplaySpawnSelecter { h = 0.3044 * safezoneH; color[] = { 0.5, 0.5, 0.5, 1 }; colorActive[] = { 1, 1, 1, 1 }; - action = "closeDialog 0;DZE_DisplaySpawnSelector = false;dayz_selectRegion = 1;"; + action = "closeDialog 0;dayz_selectRegion = 1;"; onMouseEnter = "ctrlSetFocus (_this select 0)"; }; class RscSelectedRegion2: RscActiveText @@ -42,7 +39,7 @@ class RscDisplaySpawnSelecter { h = 0.270356 * safezoneH; color[] = { 0.5, 0.5, 0.5, 1 }; colorActive[] = { 1, 1, 1, 1 }; - action = "closeDialog 0;DZE_DisplaySpawnSelector = false;dayz_selectRegion = 0;"; + action = "closeDialog 0;dayz_selectRegion = 0;"; onMouseEnter = "ctrlSetFocus (_this select 0)"; }; class RscSelectedRegion3: RscActiveText @@ -56,7 +53,7 @@ class RscDisplaySpawnSelecter { h = 0.275 * safezoneH; color[] = { 0.5, 0.5, 0.5, 1 }; colorActive[] = { 1, 1, 1, 1 }; - action = "closeDialog 0;DZE_DisplaySpawnSelector = false;dayz_selectRegion = 2;"; + action = "closeDialog 0;dayz_selectRegion = 2;"; onMouseEnter = "ctrlSetFocus (_this select 0)"; }; class RscSelectedRegion4: RscActiveText @@ -70,7 +67,7 @@ class RscDisplaySpawnSelecter { h = 0.274546 * safezoneH; color[] = { 0.5, 0.5, 0.5, 1 }; colorActive[] = { 1, 1, 1, 1 }; - action = "closeDialog 0;DZE_DisplaySpawnSelector = false;dayz_selectRegion = 3;"; + action = "closeDialog 0;dayz_selectRegion = 3;"; onMouseEnter = "ctrlSetFocus (_this select 0)"; }; class RscSelectedRegion5: RscActiveText @@ -84,7 +81,7 @@ class RscDisplaySpawnSelecter { h = 0.275001 * safezoneH; color[] = { 0.5, 0.5, 0.5, 1 }; colorActive[] = { 1, 1, 1, 1 }; - action = "closeDialog 0;DZE_DisplaySpawnSelector = false;dayz_selectRegion = 4;"; + action = "closeDialog 0;dayz_selectRegion = 4;"; onMouseEnter = "ctrlSetFocus (_this select 0)"; }; class RscSelectedRegion6: RscActiveText @@ -98,7 +95,7 @@ class RscDisplaySpawnSelecter { h = 0.275 * safezoneH; color[] = { 0.5, 0.5, 0.5, 1 }; colorActive[] = { 1, 1, 1, 1 }; - action = "closeDialog 0;DZE_DisplaySpawnSelector = false;dayz_selectRegion = 5;"; + action = "closeDialog 0;dayz_selectRegion = 5;"; onMouseEnter = "ctrlSetFocus (_this select 0)"; }; class RscSelectedRegionRandom: RscActiveText @@ -112,7 +109,7 @@ class RscDisplaySpawnSelecter { h = 0.331135035 * safezoneH; color[] = { 0.5, 0.5, 0.5, 1 }; colorActive[] = { 1, 1, 1, 1 }; - action = "closeDialog 0;DZE_DisplaySpawnSelector = false;dayz_selectRegion = 9;"; + action = "closeDialog 0;dayz_selectRegion = 9;"; onMouseEnter = "ctrlSetFocus (_this select 0)"; }; diff --git a/SQF/dayz_code/Configs/RscDisplay/RscPlayerUI.hpp b/SQF/dayz_code/Configs/RscDisplay/RscPlayerUI.hpp new file mode 100644 index 000000000..18ea3b154 --- /dev/null +++ b/SQF/dayz_code/Configs/RscDisplay/RscPlayerUI.hpp @@ -0,0 +1,300 @@ +class RscTitles +{ + class Default + { + idd = -1; + movingEnable = 0; + duration = 4; + }; + titles[] = {"DeathScreen_DZ","RscTitleStructuredText"}; + class DeathScreen_DZ { + idd = -1; + movingEnable = "false"; + duration = 120; + fadein = 0; + name = "DeathScreen"; + controls[] = {"DeathScreen"}; + class DeathScreen: RscPicture { + x = 0 * safezoneW + safezoneX; + y = 0 * safezoneH + safezoneY; + w = 1 * safezoneW; + h = 1 * safezoneH; + text = "\z\addons\dayz_code\gui\deathscreen.paa"; + }; + }; + class playerKillScore { + idd = 6902; + movingEnable = 0; + duration = 5; + name = "playerKillScore"; + onLoad = "uiNamespace setVariable ['DAYZ_GUI_kills', _this select 0];"; + class ControlsBackground { + class RscPicture_1201: RscPictureGUI + { + idc = 1400; + text = "\z\addons\dayz_code\gui\stats_kills_human_ca.paa"; + x = 0.044687 * safezoneW + safezoneX; + y = 0.934779 * safezoneH + safezoneY; + w = 0.06; + h = 0.08; + }; + class RscPicture_1200: RscPictureGUI + { + idc = 1401; + text = "\z\addons\dayz_code\gui\stats_kills_zombie_ca.paa"; + x = 0.044687 * safezoneW + safezoneX; + y = 0.876025 * safezoneH + safezoneY; + w = 0.06; + h = 0.08; + }; + }; + class Controls{ + class RscText1: RscStructuredTextGUI + { + idc = 1410; + text = "10"; + x = (0.044687 * safezoneW + safezoneX) - 0.01; + y = 0.934779 * safezoneH + safezoneY; + w = 0.08; + h = 0.08; + }; + class RscText2: RscStructuredTextGUI + { + idc = 1411; + text = "1000"; + x = (0.044687 * safezoneW + safezoneX) - 0.01; + y = 0.876025 * safezoneH + safezoneY; + w = 0.08; + h = 0.08; + }; + }; + }; + + class playerStatusWaiting { + idd = 6901; + movingEnable = 0; + duration = 100000; + name = "playerStatusWaiting"; + onLoad = "uiNamespace setVariable ['DAYZ_GUI_waiting', _this select 0];"; + class ControlsBackground { + class RscText_1402: RscPictureGUI + { + idc = 1402; + text = "#(argb,8,8,3)color(1,1,1,1)"; + x = 0.473572 * safezoneW + safezoneX; + y = 0.418158 * safezoneH + safezoneY; + w = 0.0634286 * safezoneW; + h = 0.136829 * safezoneH; + colorText[] = {1,1,1,1}; + }; + class RscText_1400: RscPictureGUI + { + idc = 1400; + text = "#(argb,8,8,3)color(1,1,1,1)"; + x = 0.473572 * safezoneW + safezoneX; + y = 0.418158 * safezoneH + safezoneY; + w = 0.0634286 * safezoneW; + h = 0; //0.136829 * safezoneH; + colorText[] = {0,0,0,1}; + }; + }; + class Controls { + class RscPicture_1401: RscPictureGUI + { + idc = 1401; + text = "\z\addons\dayz_code\gui\status\status_waiting_ca.paa"; + x = 0.434999 * safezoneW + safezoneX; + y = 0.392207 * safezoneH + safezoneY; + w = 0.141 * safezoneW; + h = 0.188013 * safezoneH; + colorText[] = {0.38,0.63,0.26,1}; + }; + }; + }; + + class playerStatusGUI { + idd = 6900; + movingEnable = 0; + duration = 100000; + name = "statusBorder"; + onLoad = "uiNamespace setVariable ['DAYZ_GUI_display', _this select 0];"; + class ControlsBackground { + class RscPicture_1901: RscPictureGUI + { + idc = 1901; + text = "\z\addons\dayz_code\gui\status\status_bg.paa"; + x = 0.955313 * safezoneW + safezoneX; + y = 0.86 * safezoneH + safezoneY;//2 + w = 0.075; + h = 0.10; + }; + class RscPicture_1201: RscPictureGUI + { + idc = 1201; + text = "\z\addons\dayz_code\gui\status\status_food_border_ca.paa"; + x = 0.955313 * safezoneW + safezoneX; + y = 0.86 * safezoneH + safezoneY;//2 + w = 0.075; + h = 0.10; + }; + class RscPicture_1900: RscPictureGUI + { + idc = 1900; + text = "\z\addons\dayz_code\gui\status\status_bg.paa"; + x = 0.955313 * safezoneW + safezoneX; + y = 0.79 * safezoneH + safezoneY; //3 + w = 0.075; + h = 0.10; + }; + class RscPicture_1200: RscPictureGUI + { + idc = 1200; + //text = "\z\addons\dayz_code\gui\status\status_blood_border_ca.paa"; + x = 0.955313 * safezoneW + safezoneX; + y = 0.79 * safezoneH + safezoneY; //3 + w = 0.075; + h = 0.10; + }; + class RscPicture_1902: RscPictureGUI + { + idc = 1902; + text = "\z\addons\dayz_code\gui\status\status_bg.paa"; + x = 0.955313 * safezoneW + safezoneX; + y = 0.93 * safezoneH + safezoneY; //1 + w = 0.075; + h = 0.10; + }; + class RscPicture_1202: RscPictureGUI + { + idc = 1202; + text = "\z\addons\dayz_code\gui\status\status_thirst_border_ca.paa"; + x = 0.955313 * safezoneW + safezoneX; + y = 0.93 * safezoneH + safezoneY; //1 + w = 0.075; + h = 0.10; + }; + class RscPicture_1908: RscPictureGUI + { + idc = 1908; + text = "\z\addons\dayz_code\gui\status\status_bg.paa"; + x = 0.955313 * safezoneW + safezoneX; + y = 0.72 * safezoneH + safezoneY; //3 + w = 0.075; + h = 0.10; + }; + class RscPicture_1208: RscPictureGUI + { + idc = 1208; + text = "\z\addons\dayz_code\gui\status\status_temp_outside_ca.paa"; + x = 0.955313 * safezoneW + safezoneX; + y = 0.72 * safezoneH + safezoneY; //3 + w = 0.075; + h = 0.10; + }; + class RscPicture_1203: RscPictureGUI + { + idc = 1203; + text = "\z\addons\dayz_code\gui\status\status_effect_brokenleg.paa"; + x = 0.955313 * safezoneW + safezoneX; + y = 0.58 * safezoneH + safezoneY; + w = 0.075; + h = 0.10; + colorText[] = {1,1,1,1}; + }; + class RscPicture_1204: RscPictureGUI + { + idc = 1204; + text = "\z\addons\dayz_code\gui\status\status_connection_ca.paa"; + x = 0.955313 * safezoneW + safezoneX; + y = 0.51 * safezoneH + safezoneY; + w = 0.075; + h = 0.10; + colorText[] = {1,1,1,1}; + }; + class RscPicture_1205: RscPictureGUI + { + idc = 1205; + text = "\z\addons\dayz_code\gui\status\status_bg.paa"; + x = 0.955313 * safezoneW + safezoneX; + y = 0.30 * safezoneH + safezoneY; + w = 0.075; + h = 0.10; + }; + class RscPicture_1206: RscPictureGUI + { + idc = 1206; + text = "\z\addons\dayz_code\gui\status\status_bg.paa"; + x = 0.955313 * safezoneW + safezoneX; + y = 0.37 * safezoneH + safezoneY; + w = 0.075; + h = 0.10; + }; + }; + class Controls { + class RscPicture_1301: RscPictureGUI + { + idc = 1301; + //text = "\z\addons\dayz_code\gui\status\status_food_inside_ca.paa"; + x = 0.955313 * safezoneW + safezoneX; + y = 0.86 * safezoneH + safezoneY; + w = 0.075; + h = 0.10; + }; + class RscPicture_1300: RscPictureGUI + { + idc = 1300; + //text = "\z\addons\dayz_code\gui\status\status_blood_inside_ca.paa"; + x = 0.955313 * safezoneW + safezoneX; + y = 0.79 * safezoneH + safezoneY; + w = 0.075; + h = 0.10; + }; + class RscPicture_1302: RscPictureGUI + { + idc = 1302; + //text = "\z\addons\dayz_code\gui\status\status_thirst_inside_ca.paa"; + x = 0.955313 * safezoneW + safezoneX; + y = 0.93 * safezoneH + safezoneY; + w = 0.075; + h = 0.10; + }; + class RscPicture_1306: RscPictureGUI + { + idc = 1306; + //text = "\z\addons\dayz_code\gui\status\status_temp_ca.paa"; + x = 0.955313 * safezoneW + safezoneX; + y = 0.72 * safezoneH + safezoneY; + w = 0.075; + h = 0.10; + }; + class RscPicture_1303: RscPictureGUI + { + idc = 1303; + text = "\z\addons\dayz_code\gui\status\status_bleeding_ca.paa"; + x = 0.955313 * safezoneW + safezoneX; + y = 0.79 * safezoneH + safezoneY; + w = 0.075; + h = 0.10; + colorText[] = {1,1,1,0.5}; + }; + class RscPicture_1304: RscPictureGUI + { + idc = 1304; + text = "\z\addons\dayz_code\gui\status\status_noise.paa"; + x = 0.955313 * safezoneW + safezoneX; + y = 0.30 * safezoneH + safezoneY; + w = 0.075; + h = 0.10; + }; + class RscPicture_1305: RscPictureGUI + { + idc = 1305; + text = "\z\addons\dayz_code\gui\status\status_visible.paa"; + x = 0.955313 * safezoneW + safezoneX; + y = 0.37 * safezoneH + safezoneY; + w = 0.075; + h = 0.10; + }; + }; + }; +}; diff --git a/SQF/dayz_code/Configs/RscDisplay/includes.hpp b/SQF/dayz_code/Configs/RscDisplay/includes.hpp new file mode 100644 index 000000000..1d7587bca --- /dev/null +++ b/SQF/dayz_code/Configs/RscDisplay/includes.hpp @@ -0,0 +1,6 @@ +#include "RscDisplayCraftingMenu.hpp" +//#include "RscDisplayGear.hpp" +#include "RscDisplayGenderSelect.hpp" +#include "RscDisplaySpawnSelecter.hpp" +#include "RscPlayerUI.hpp" +#include "RscMap.hpp" diff --git a/SQF/dayz_code/Configs/rscTitles.hpp b/SQF/dayz_code/Configs/rscTitles.hpp index d57eb1b53..a3a2afea0 100644 --- a/SQF/dayz_code/Configs/rscTitles.hpp +++ b/SQF/dayz_code/Configs/rscTitles.hpp @@ -10,56 +10,87 @@ class RscGearShortcutButton; class RscIGUIListNBox; class RscActiveText; -// class RscPictureGUI; -// class RscStructuredTextGUI; - class RscPictureKeepAspect; class RscStandardDisplay; class RscProgress; class RscProgressNotFreeze; class RscButtonTextOnly; - -class RscIGUIListBox; -class CA_Black_Back; -class RscMapControl; -class IGUIBack; -class RscHTML; class RscObject; -class RscDisplayGetReady; +class IGUIBack; class RscListBox; -class RscDisplayLoading -{ - class Variants - { - class LoadingOne - { - class controls - { - class LoadingPic : RscPictureKeepAspect - { - text = "z\addons\dayz_code\gui\dayz_logo_ca.paa"; +class RscIGUIListBox; +class RscHTML; + +#include "CfgPlayerStats\defines.hpp" +#include "CfgPlayerStats\p__cover.hpp" +#include "CfgPlayerStats\p_journal_humanity.hpp" +#include "CfgPlayerStats\p_humanity_art.hpp" +#include "CfgPlayerStats\p_zombies_killed.hpp" +#include "CfgPlayerStats\p_bandits_killed.hpp" +#include "CfgPlayerStats\p_headshots.hpp" +#include "CfgPlayerStats\p_murders.hpp" +#include "CfgPlayerStats\sound.hpp" + +class RscPictureGUI { + access = 0; + type = 0; + idc = -1; + colorBackground[] = {0,0,0,0}; + colorText[] = {0.38,0.63,0.26,0.75}; + font = "TahomaB"; + sizeEx = 0; + lineSpacing = 0; + text = ""; + style = "0x30 + 0x100"; + x = 0; + y = 0; + w = 0.2; + h = 0.15; +}; + +class RscStructuredText { + class Attributes; +}; +class RscStructuredTextGUI: RscStructuredText { + colorBackground[] = {0,0,0,0}; + colorText[] = {1,1,1,1}; + class Attributes: Attributes { + align = "center"; + valign = "middle"; + }; +}; + +class RscDisplayLoading { + class Variants { + class LoadingOne { + class controls { + class LoadingPic : RscPictureKeepAspect { + text = "z\addons\dayz_code\gui\loadingscreen.paa"; }; }; }; }; }; -class RscDisplayStart -{ - class controls - { - class LoadingPic: RscPictureKeepAspect - { - text = "z\addons\dayz_code\gui\dayz_logo_ca.paa"; +class RscCompass : RscObject { + scale = 0.64; +}; + +class RscDisplayStart { + class controls { + class LoadingPic: RscPictureKeepAspect { + text = "z\addons\dayz_code\gui\loadingscreen.paa"; }; }; }; - -class RscDisplayDebriefing: RscStandardDisplay -{ +class RscDisplayGetReady; +class RscDisplayClientGetReady: RscDisplayGetReady { + // could probably add a check in the spawn but couldn't test with multiple players + onload = "private ['_dummy']; _dummy = [_this,'onload'] call compile preprocessfile '\ca\ui\scripts\server_interface.sqf'; _this spawn { while { !isNull (findDisplay 53) } do { ctrlActivate ((_this select 0) displayCtrl 1); sleep 0.1; }; };"; +}; +class RscDisplayDebriefing: RscStandardDisplay { onLoad = "ctrlActivate ((_this select 0) displayCtrl 2)"; - class controls - { + class controls { delete Debriefing_MissionTitle; delete CA_MissionTitle; delete CA_TextVotingTimeLeft; @@ -70,8 +101,7 @@ class RscDisplayDebriefing: RscStandardDisplay delete CA_DebriefingStatsGroup; delete ButtonStatistics; delete ButtonRetry; - class ButtonContinue: RscIGUIShortcutButton - { + class ButtonContinue: RscIGUIShortcutButton { idc = 2; shortcuts[] = {"0x00050000 + 0",28,57,156}; x = 0.4080875; @@ -79,17 +109,13 @@ class RscDisplayDebriefing: RscStandardDisplay text = $STR_UI_CONTINUE; }; }; - class ControlsBackground - { + class ControlsBackground { delete Mainback; }; }; - -class RscDisplayMissionFail: RscStandardDisplay -{ +class RscDisplayMissionFail: RscStandardDisplay { onLoad = "ctrlActivate ((_this select 0) displayCtrl 2)"; - class controls - { + class controls { delete Debriefing_MissionTitle; delete CA_MissionTitle; delete CA_TextVotingTimeLeft; @@ -99,8 +125,7 @@ class RscDisplayMissionFail: RscStandardDisplay delete CA_DebriefingObjectivesGroup; delete CA_DebriefingStatsGroup; delete BRetry; - class BAbort: RscIGUIShortcutButton - { + class BAbort: RscIGUIShortcutButton { idc = 2; shortcuts[] = {"0x00050000 + 0",28,57,156}; x = 0.4080875; @@ -108,44 +133,37 @@ class RscDisplayMissionFail: RscStandardDisplay text = $STR_UI_END; }; }; - class ControlsBackground - { + class ControlsBackground { delete Mainback; }; }; - class CA_TextLanguage; class RscXListBox; -class RscDisplayGameOptions -{ +class RscDisplayGameOptions { //onLoad = "((_this select 0) displayCtrl 140) lbAdd 'Default';((_this select 0) displayCtrl 140) lbAdd 'Debug';((_this select 0) displayCtrl 140) lbAdd 'None';((_this select 0) displayCtrl 140) lbSetCurSel (uiNamespace getVariable ['DZ_displayUI', 0]);"; onUnload = "call ui_changeDisplay;"; - class controls - { - class CA_TextUIDisplay: CA_TextLanguage - { + class controls { + class CA_TextUIDisplay: CA_TextLanguage { x = 0.159803; y = "(0.420549 + 4*0.069854)"; text = "DayZ UI:"; }; - class CA_ValueUIDisplay: RscXListBox - { + class CA_ValueUIDisplay: RscXListBox { idc = 140; x = 0.400534; y = "(0.420549 + 4*0.069854)"; w = 0.3; onLBSelChanged = "(uiNamespace setVariable ['DZ_displayUI', (_this select 1)]);"; - }; + }; }; }; class RscShortcutButton; class RscShortcutButtonMain; -class RscDisplayMain : RscStandardDisplay -{ - class controlsBackground - { + +class RscDisplayMain : RscStandardDisplay { + class controlsBackground { class Mainback : RscPicture { idc = 1104; x = "SafeZoneX + 0.04"; @@ -154,19 +172,16 @@ class RscDisplayMain : RscStandardDisplay h = 1.000000; text = "\ca\ui\data\ui_mainmenu_background_ca.paa"; }; - class CA_ARMA2 : RscPicture - { - text = "z\addons\dayz_code\gui\dayz_logo_ca.paa"; + class CA_ARMA2 : RscPicture { + text = "z\addons\dayz_code\gui\mod.paa"; }; }; - - class controls - { + + class controls { class CA_Version; - class DAYZ_Version : CA_Version - { + class DAYZ_Version : CA_Version { idc = -1; - text = "DayZ Epoch 1.0.5"; + text = "1.8.0.3"; y = "(SafeZoneH + SafeZoneY) - (1 - 0.95)"; }; delete CA_TitleMainMenu; @@ -175,7 +190,7 @@ class RscDisplayMain : RscStandardDisplay idc = 109; style = 256; colorbackground[] = {0.1, 0.1, 0.1, 0}; - x = "SafeZoneX + 0.15"; + x = "SafeZoneX + 0.05"; y = "SafeZoneY + 0.06"; w = 0.5; h = 0.05; @@ -186,7 +201,7 @@ class RscDisplayMain : RscStandardDisplay y = "SafeZoneY + 0.15"; toolTip = $STR_TOOLTIP_MAIN_MULTIPLAYER; text = $STR_CA_MAIN_MULTI; - + class KeyHints { class A { key = 0x00050000 + 0; @@ -213,174 +228,6 @@ class RscDisplayMain : RscStandardDisplay }; }; -class RscDisplayClientGetReady : RscDisplayGetReady { - onload = "private ['_dummy']; _dummy = [_this,'onload'] call compile preprocessfile '\ca\ui\scripts\server_interface.sqf'; _this spawn { while { !isNull (findDisplay 53) } do { ctrlActivate ((_this select 0) displayCtrl 1); sleep 0.1; }; };"; - color0[] = {0.4, 0.4, 0.4, 1}; - color1[] = {1, 0.6, 0, 1}; - color2[] = {0.1961, 0.1451, 0.0941, 1.0}; - - class controls { - class B_Cancel {}; - class B_Continue {}; - - class PlayersTitle : RscText { - x = -2; - y = -2; - }; - - class Players : RscListBox { - x = -2; - y = -2; - }; - - class CA_MainBackground : IGUIBack { - idc = 1020; - x = "SafeZoneX + 0.010 * SafeZoneW"; - y = "SafeZoneY + 0.031"; - w = "0.98*SafeZoneW"; - h = 0.082; - colorbackground[] = {0.1961, 0.1451, 0.0941, 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.1961, 0.1451, 0.0941, 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.1961, 0.1451, 0.0941, 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.1961, 0.1451, 0.0941, 0.85}; - }; - - delete CA_PlayerName; - delete CA_PlayerRank; - - class CA_MissionName : RscText { - idc = 112; - style = 1; - x = "0.02*SafeZoneW + SafeZoneX"; - y = "SafeZoneY + 0.033"; - w = "0.96 * SafeZoneW"; - h = 0.041; - sizeEx = 0.034; - colorText[] = {0.95, 0.95, 0.95, 1}; - text = $STR_DIARY_MISSION_NAME; - }; - - delete CA_CurrentTaskLabel; - delete CA_CurrentTask; - - 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; - }; - - 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; - }; - - class CA_DiaryGroup : RscControlsGroup { - idc = 1013; - x = "0.446*SafeZoneW + SafeZoneX"; - y = "SafeZoneY + 0.137"; - w = "0.534*SafeZoneW"; - h = 0.718; - - class VScrollbar { - autoScrollSpeed = -1; - autoScrollDelay = 5; - autoScrollRewind = 0; - color[] = {1, 1, 1, 1}; - width = 0.01; - }; - - class HScrollbar { - color[] = {1, 1, 1, 0}; - height = 0.001; - }; - - class Controls { - class CA_Diary : RscHTML { - idc = 1003; - cycleLinks = 0; - cycleAllLinks = 0; - default = 0; - x = "0.01*SafeZoneW"; - y = 0.0; - w = "0.514*SafeZoneW"; - h = 1.807; - colorText[] = {0.95, 0.95, 0.95, 1}; - - class H1 { - font = "Zeppelin32"; - fontBold = "Zeppelin32"; - sizeEx = 0.034; - }; - - class P { - font = "Zeppelin32"; - fontBold = "Zeppelin32"; - sizeEx = 0.034; - }; - }; - }; - }; - - class CA_ButtonsBackground : IGUIBack { - idc = 1026; - x = "0.010*SafeZoneW + SafeZoneX"; - y = "(SafeZoneH + SafeZoneY) - (1 - 0.887)"; - w = "SafeZoneW * 0.98"; - h = 0.082; - colorbackground[] = {0.1961, 0.1451, 0.0941, 0.85}; - }; - - class ButtonCancel : RscIGUIShortcutButton { - idc = 2; - shortcuts[] = {0x00050000 + 1}; - x = "0.031 + SafeZoneX"; - y = "(SafeZoneH + SafeZoneY) - (1 - 0.908)"; - text = $STR_DISP_CANCEL; - }; - - class ButtonContinue : ButtonCancel { - idc = 1; - shortcuts[] = {0x00050000 + 8}; - x = "((SafeZoneW + SafeZoneX) - (1 - 0.788))"; - text = $STR_DISP_CONTINUE; - }; - }; -}; - //Remove Diary class RscDisplayDiary { idd = 129; @@ -394,86 +241,29 @@ class RscDisplayDiary { delete DiaryPage; delete DiaryTitle; delete DiaryBackground; - delete CA_PlayerName; - delete CA_CurrentTaskLabel; - delete CA_CurrentTask; }; }; -class RscButtonActionMenu: RscButton -{ +class RscButtonActionMenu: RscButton { SizeEx = 0.02674; - colorBackground[] = {0.44,0.7,0.44,1}; - colorBackgroundActive[] = {0.24,0.5,0.24,1}; + colorText[] = {1,1,1,1}; + colorBackground[] = {0,0,0,0.8}; + colorBackgroundActive[] = {0.63,0.02,0.02,0.8}; colorBackgroundDisabled[] = {1,1,1,0}; - colorFocused[] = {0.2,0.5,0.2,1}; + colorFocused[] = {0,0,0,0.8}; colorShadow[] = {1,1,1,0}; borderSize = 0; w = 0.095 * safezoneW; h = 0.025 * safezoneH; }; -class RscDisplayGenderSelect -{ - idd = 6902; - enableDisplay = 1; - class controls - { - class GenderPic_Man : RscActiveText - { - idc = -1; - style = 48; - text = "z\addons\dayz_code\gui\gender_menu_man.paa"; - x = 0.28 * safezoneW + safezoneX; - y = 0.24 * safezoneH + safezoneY; - w = 0.117188 * safezoneW; - h = 0.542373 * safezoneH; - color[] = { 0.5, 0.5, 0.5, 1 }; - colorActive[] = { 1, 1, 1, 1 }; - action = "closeDialog 0;dayz_selectGender = 'Survivor2_DZ';"; - }; - class GenderPic_Woman : RscActiveText - { - idc = -1; - style = 48; - text = "z\addons\dayz_code\gui\gender_menu_woman.paa"; - x = 0.6 * safezoneW + safezoneX; - y = 0.24 * safezoneH + safezoneY; - w = 0.117188 * safezoneW; - h = 0.542373 * safezoneH; - color[] = { 0.5, 0.5, 0.5, 1 }; - colorActive[] = { 1, 1, 1, 1 }; - action = "closeDialog 0;dayz_selectGender = 'SurvivorW2_DZ';"; - }; - class Gender_Title: RscStructuredText - { - idc = -1; - text = $STR_UI_GENDER_TITLE; - x = 0.4 * safezoneW + safezoneX; - y = 0.221864 * safezoneH + safezoneY; - w = 0.2 * safezoneW; - h = 0.05 * safezoneH; - colorBackground[] = {-1,-1,-1,0}; - }; - class Gender_Description: RscStructuredText - { - idc = -1; - text = $STR_UI_GENDER_DESC; - x = 0.4 * safezoneW + safezoneX; - y = 0.366134 * safezoneH + safezoneY; - w = 0.2 * safezoneW; - h = 0.3 * safezoneH; - colorBackground[] = {-1,-1,-1,0}; - }; - }; -}; class RscDisplayMPInterrupt : RscStandardDisplay { movingEnable = 0; enableSimulation = 1; - //onLoad = "_dummy = ['Init', _this] execVM '\ca\ui\scripts\pauseLoadinit.sqf'; [(_this select 0)] execVM '\z\addons\dayz_code\compile\player_onPause.sqf';"; _respawn = (_this select 0) displayCtrl 1010); _respawn ctrlEnable false; _abort = (_this select 0) displayCtrl 104); _abort ctrlEnable false; + //onLoad = "_dummy = ['Init', _this] execVM '\ca\ui\scripts\pauseLoadinit.sqf'; [(_this select 0)] execVM '\z\addons\dayz_code\compile\player_onPause.sqf';"; _respawn = (_this select 0) displayCtrl 1010); _respawn ctrlEnable false; _abort = (_this select 0) displayCtrl 104); _abort ctrlEnable false; onLoad = "[] execVM '\z\addons\dayz_code\compile\player_onPause.sqf'; _dummy = ['Init', _this] execVM '\ca\ui\scripts\pauseLoadinit.sqf';"; onUnload = "private ['_dummy']; _dummy = ['Unload', _this] execVM '\ca\ui\scripts\pauseOnUnload.sqf';"; - + class controlsBackground { class Mainback : RscPicture { idc = 1104; @@ -484,7 +274,7 @@ class RscDisplayMPInterrupt : RscStandardDisplay { text = "\ca\ui\data\ui_background_mp_pause_ca.paa"; }; }; - + class controls { /* class Title {}; @@ -496,29 +286,29 @@ class RscDisplayMPInterrupt : RscStandardDisplay { class B_Save {}; class B_Continue {}; class B_Diary {}; - */ - + */ + class MissionTitle : RscText { idc = 120; x = 0.05; y = 0.818; text = ""; }; - + class DifficultyTitle : RscText { idc = 121; x = 0.05; y = 0.772; text = ""; }; - + class Paused_Title : CA_Title { idc = 523; x = 0.087; y = 0.192; text = $STR_DISP_MAIN_MULTI; }; - + class CA_B_SAVE : RscShortcutButtonMain { idc = 103; y = 0.2537 + 0.101903 * 0; @@ -526,19 +316,19 @@ class RscDisplayMPInterrupt : RscStandardDisplay { text = $STR_DISP_INT_SAVE; default = 0; }; - + class CA_B_Skip : CA_B_SAVE { idc = 1002; text = $STR_DISP_INT_SKIP; }; - + class CA_B_REVERT : CA_B_SAVE { idc = 119; y = 0.2537 + 0.101903 * 1; text = $str_disp_revert; default = 0; }; - + class CA_B_Respawn : CA_B_SAVE { idc = 1010; //onButtonClick = "hint str (_this select 0);"; @@ -547,22 +337,22 @@ class RscDisplayMPInterrupt : RscStandardDisplay { text = $STR_DISP_INT_RESPAWN; default = 0; }; - + class CA_B_Options : CA_B_SAVE { idc = 101; y = 0.2537 + 0.101903 * 3; text = $STR_DISP_INT_OPTIONS; default = 0; }; - + class CA_B_Abort : CA_B_SAVE { idc = 104; y = 0.2537 + 0.101903 * 4; - onButtonClick = "call dayz_forceSave;"; + onButtonClick = "[] execVM '\z\addons\dayz_code\compile\player_onPause.sqf'; call player_forceSave;"; text = $STR_DISP_INT_ABORT; default = 0; }; - + class ButtonCancel : RscShortcutButton { idc = 2; shortcuts[] = {0x00050000 + 1, 0x00050000 + 8}; @@ -574,18 +364,15 @@ class RscDisplayMPInterrupt : RscStandardDisplay { }; }; -class RscDisplayGear -{ +class RscDisplayGear { idd = 106; enableDisplay = 1; // 177 based //onLoad = "_this call fn_gearMenuChecks;[] spawn object_monitorGear; {player removeMagazines _x} forEach MeleeMagazines; call gear_ui_init; if (isNil('IGUI_GEAR_activeFilter')) then { IGUI_GEAR_activeFilter = 0;}; private ['_dummy']; _dummy = [_this,'initDialog'] call compile preprocessFile '\z\addons\dayz_code\BIS_scripts\handleGear.sqf'; _dummy = [_this,'onLoad'] execVM '\z\addons\dayz_code\BIS_scripts\handleGear.sqf'; _dummy;"; onUnload = "call player_gearSync; call dayz_forceSave;"; - - class controls - { - class CA_Filter_Icon: RscPicture - { + + class controls { + class CA_Filter_Icon: RscPicture { idc = 148; style = "0x30 + 0x800"; x = 0.04; @@ -594,8 +381,7 @@ class RscDisplayGear h = 0.075; text = "\ca\ui\data\igui_gear_filter_1_ca.paa"; }; - class CA_Filter_Left_Icon: RscPicture - { + class CA_Filter_Left_Icon: RscPicture { idc = 1301; style = "0x30 + 0x800"; x = 0.05; @@ -604,8 +390,7 @@ class RscDisplayGear h = 0.075; text = "\ca\ui\data\arrow_left_ca.paa"; }; - class CA_Filter_Right_Icon: RscPicture - { + class CA_Filter_Right_Icon: RscPicture { idc = 1302; style = "0x30 + 0x800"; x = 0.453; @@ -614,8 +399,7 @@ class RscDisplayGear h = 0.075; text = "\ca\ui\data\arrow_right_ca.paa"; }; - class CA_Filter_Arrow_Left: RscButton - { + class CA_Filter_Arrow_Left: RscButton { idc = 150; colorText[] = {1,1,1,0}; colorDisabled[] = {1,1,1,0}; @@ -630,8 +414,7 @@ class RscDisplayGear h = 0.075; text = ""; }; - class CA_Filter_Arrow_Right: RscButton - { + class CA_Filter_Arrow_Right: RscButton { idc = 151; colorText[] = {1,1,1,0}; colorDisabled[] = {1,1,1,0}; @@ -646,8 +429,7 @@ class RscDisplayGear h = 0.075; text = ""; }; - class CA_Filter_Icon1: RscButton - { + class CA_Filter_Icon1: RscButton { idc = 149; colorText[] = {1,1,1,0}; colorDisabled[] = {1,1,1,0}; @@ -662,8 +444,7 @@ class RscDisplayGear h = 0.075; text = ""; }; - class Gear_Title: CA_IGUI_Title - { + class Gear_Title: CA_IGUI_Title { idc = 1001; x = 0.047634; y = -0.00102941; @@ -679,23 +460,20 @@ class RscDisplayGear text = ""; }; - class Available_items_Text: RscText - { + class Available_items_Text: RscText { idc = 156; x = 0.0433014; y = 0.0526966; w = 0.389709; h = 0.029412; }; - class CA_ItemName: Available_items_Text - { + class CA_ItemName: Available_items_Text { idc = 1101; x = 0.0416704; y = 0.627451; text = "Gear of the unit:"; }; - class CA_Money: RscText - { + class CA_Money: RscText { idc = 1102; style = 1; show = 0; @@ -704,38 +482,32 @@ class RscDisplayGear w = 0.228; text = "Money:"; }; - class CA_Money_Value: RscText - { + class CA_Money_Value: RscText { idc = 1103; x = -2.72794; y = -2.85784; w = 0.228; text = "0"; }; - class ListboxArrows: RscControlsGroup - { + class ListboxArrows: RscControlsGroup { x = 0.04; y = 0.0892447; w = 0.48; h = 0.449; idc = 155; - class VScrollbar - { + class VScrollbar { autoScrollSpeed = -1; autoScrollDelay = 5; autoScrollRewind = 0; color[] = {1,1,1,0}; width = 0.001; }; - class HScrollbar - { + class HScrollbar { color[] = {1,1,1,0}; height = 0.001; }; - class Controls - { - class CA_B_Add: RscGearShortcutButton - { + class Controls { + class CA_B_Add: RscGearShortcutButton { idc = 146; x = -2; style = 2048; @@ -743,8 +515,7 @@ class RscDisplayGear onButtonClick = "private [""_dummy""]; _dummy = [_this,""onLBListSelChanged""] execVM ""\z\addons\dayz_code\BIS_scripts\handleGear.sqf""; _dummy;"; text = "<"; }; - class Available_items: RscIGUIListNBox - { + class Available_items: RscIGUIListNBox { idc = 105; columns[] = {0.075,0.175,0.81,0.67}; drawSideArrows = 1; @@ -761,8 +532,7 @@ class RscDisplayGear h = 0.449; canDrag = 1; }; - class CA_B_Remove: CA_B_Add - { + class CA_B_Remove: CA_B_Add { idc = 147; x = -2; onSetFocus = "private [""_dummy""]; _dummy = [_this,""onFocus""] execVM ""\z\addons\dayz_code\BIS_scripts\handleGear.sqf""; _dummy;"; @@ -771,24 +541,21 @@ class RscDisplayGear }; }; }; - class CA_CustomDescription: RscStructuredText - { + class CA_CustomDescription: RscStructuredText { idc = 1106; x = 0.0414969; y = 0.663641; w = 0.458; h = 0.152; colorText[] = {0.95,0.95,0.95,1}; - class Attributes - { + class Attributes { font = "Zeppelin32"; color = "#F2F2F2"; align = "left"; shadow = 1; }; }; - class CA_Item_Picture: RscPicture - { + class CA_Item_Picture: RscPicture { idc = 1104; style = "0x30 + 0x800"; x = 0.330883; @@ -797,94 +564,80 @@ class RscDisplayGear h = 0.104575; text = ""; }; - class G_Interaction: RscControlsGroup - { + class G_Interaction: RscControlsGroup { idc = 6902; x = 0.502; y = 0.250 * safezoneH; w = 0.145 * safezoneW; h = 0; //0.250 * safezoneH; onMouseMoving = "_this call gear_ui_offMenu;"; - class VScrollbar - { + class VScrollbar { autoScrollSpeed = -1; autoScrollDelay = 5; autoScrollRewind = 0; color[] = {1,1,1,0}; width = 0.001; }; - class HScrollbar - { + class HScrollbar { color[] = {1,1,1,0}; height = 0.001; }; - class Controls - { - class RscButton_1600: RscButtonActionMenu - { + class Controls { + class RscButton_1600: RscButtonActionMenu { idc = 1600; text = ""; x = 0; y = 0 * safezoneH; }; - class RscButton_1601: RscButtonActionMenu - { + class RscButton_1601: RscButtonActionMenu { idc = 1601; text = ""; x = 0; y = 0.025 * safezoneH; }; - class RscButton_1602: RscButtonActionMenu - { + class RscButton_1602: RscButtonActionMenu { idc = 1602; text = ""; x = 0; y = 0.05 * safezoneH; }; - class RscButton_1603: RscButtonActionMenu - { + class RscButton_1603: RscButtonActionMenu { idc = 1603; text = ""; x = 0; y = 0.075 * safezoneH; }; - class RscButton_1604: RscButtonActionMenu - { + class RscButton_1604: RscButtonActionMenu { idc = 1604; text = ""; x = 0; y = 0.1 * safezoneH; }; - class RscButton_1605: RscButtonActionMenu - { + class RscButton_1605: RscButtonActionMenu { idc = 1605; text = ""; x = 0; y = 0.125 * safezoneH; }; - class RscButton_1606: RscButtonActionMenu - { + class RscButton_1606: RscButtonActionMenu { idc = 1606; text = ""; x = 0; y = 0.15 * safezoneH; }; - class RscButton_1607: RscButtonActionMenu - { + class RscButton_1607: RscButtonActionMenu { idc = 1607; text = ""; x = 0; y = 0.175 * safezoneH; }; - class RscButton_1608: RscButtonActionMenu - { + class RscButton_1608: RscButtonActionMenu { idc = 1608; text = ""; x = 0; y = 0.2 * safezoneH; }; - class RscButton_1609: RscButtonActionMenu - { + class RscButton_1609: RscButtonActionMenu { idc = 1609; text = ""; x = 0; @@ -892,30 +645,25 @@ class RscDisplayGear }; }; }; - class G_GearItems: RscControlsGroup - { + class G_GearItems: RscControlsGroup { idc = 160; x = 0.502; y = 0.09; w = 0.463; h = 0.776; - class VScrollbar - { + class VScrollbar { autoScrollSpeed = -1; autoScrollDelay = 5; autoScrollRewind = 0; color[] = {1,1,1,0}; width = 0.001; }; - class HScrollbar - { + class HScrollbar { color[] = {1,1,1,0}; height = 0.001; }; - class Controls - { - class CA_Gear_slot_primary: RscActiveText - { + class Controls { + class CA_Gear_slot_primary: RscActiveText { idc = 107; x = "0.502 - 0.502"; y = "0.244 - 0.09"; @@ -930,241 +678,203 @@ class RscDisplayGear colorFocused[] = {0,0,0,0}; canDrag = 1; }; - class CA_Gear_slot_secondary: CA_Gear_slot_primary - { + class CA_Gear_slot_secondary: CA_Gear_slot_primary { idc = 108; y = "0.398 -0.09"; }; - class CA_Gear_slot_item1: CA_Gear_slot_primary - { + class CA_Gear_slot_item1: CA_Gear_slot_primary { idc = 109; x = "0.790 - 0.502"; y = "0.244 - 0.09"; w = 0.055; h = 0.074; }; - class CA_Gear_slot_item2: CA_Gear_slot_item1 - { + class CA_Gear_slot_item2: CA_Gear_slot_item1 { idc = 110; x = "0.847 - 0.502"; y = "0.244 - 0.09"; }; - class CA_Gear_slot_item3: CA_Gear_slot_item1 - { + class CA_Gear_slot_item3: CA_Gear_slot_item1 { idc = 111; x = "0.904366 - 0.502"; y = "0.244 - 0.09"; }; - class CA_Gear_slot_item4: CA_Gear_slot_item1 - { + class CA_Gear_slot_item4: CA_Gear_slot_item1 { idc = 112; x = "0.790 - 0.502"; y = "0.321 - 0.09"; }; - class CA_Gear_slot_item5: CA_Gear_slot_item1 - { + class CA_Gear_slot_item5: CA_Gear_slot_item1 { idc = 113; x = "0.847 - 0.502"; y = "0.321 - 0.09"; }; - class CA_Gear_slot_item6: CA_Gear_slot_item1 - { + class CA_Gear_slot_item6: CA_Gear_slot_item1 { idc = 114; x = "0.904366 - 0.502"; y = "0.321 - 0.09"; }; - class CA_Gear_slot_item7: CA_Gear_slot_item1 - { + class CA_Gear_slot_item7: CA_Gear_slot_item1 { idc = 115; x = "0.790 - 0.502"; y = "0.398 - 0.09"; }; - class CA_Gear_slot_item8: CA_Gear_slot_item7 - { + class CA_Gear_slot_item8: CA_Gear_slot_item7 { idc = 116; x = "0.847 - 0.502"; y = "0.398 - 0.09"; }; - class CA_Gear_slot_item9: CA_Gear_slot_item7 - { + class CA_Gear_slot_item9: CA_Gear_slot_item7 { idc = 117; x = "0.904366 - 0.502"; y = "0.398 - 0.09"; }; - class CA_Gear_slot_item10: CA_Gear_slot_item7 - { + class CA_Gear_slot_item10: CA_Gear_slot_item7 { idc = 118; x = "0.790 - 0.502"; y = "0.474 - 0.09"; }; - class CA_Gear_slot_item11: CA_Gear_slot_item7 - { + class CA_Gear_slot_item11: CA_Gear_slot_item7 { idc = 119; x = "0.847 - 0.502"; y = "0.474 - 0.09"; }; - class CA_Gear_slot_item12: CA_Gear_slot_item7 - { + class CA_Gear_slot_item12: CA_Gear_slot_item7 { idc = 120; x = "0.904366 - 0.502"; y = "0.474 - 0.09"; }; - class CA_Gear_slot_handgun: CA_Gear_slot_primary - { + class CA_Gear_slot_handgun: CA_Gear_slot_primary { idc = 121; x = "0.560 - 0.502"; y = "0.551 - 0.09"; w = 0.113; h = 0.15; }; - class CA_Gear_slot_handgun_item1: CA_Gear_slot_item1 - { + class CA_Gear_slot_handgun_item1: CA_Gear_slot_item1 { idc = 122; x = "0.674 - 0.502"; y = "0.551 - 0.09"; w = 0.055; h = 0.074; }; - class CA_Gear_slot_handgun_item2: CA_Gear_slot_handgun_item1 - { + class CA_Gear_slot_handgun_item2: CA_Gear_slot_handgun_item1 { idc = 123; x = "0.733 - 0.502"; y = "0.551 - 0.09"; }; - class CA_Gear_slot_handgun_item3: CA_Gear_slot_handgun_item1 - { + class CA_Gear_slot_handgun_item3: CA_Gear_slot_handgun_item1 { idc = 124; x = "0.790 - 0.502"; }; - class CA_Gear_slot_handgun_item4: CA_Gear_slot_handgun_item1 - { + class CA_Gear_slot_handgun_item4: CA_Gear_slot_handgun_item1 { idc = 125; x = "0.847 - 0.502"; }; - class CA_Gear_slot_handgun_item5: CA_Gear_slot_handgun_item1 - { + class CA_Gear_slot_handgun_item5: CA_Gear_slot_handgun_item1 { idc = 126; x = "0.674 - 0.502"; y = "0.628 - 0.09"; }; - class CA_Gear_slot_handgun_item6: CA_Gear_slot_handgun_item5 - { + class CA_Gear_slot_handgun_item6: CA_Gear_slot_handgun_item5 { idc = 127; x = "0.733 - 0.502"; y = "0.628 - 0.09"; }; - class CA_Gear_slot_handgun_item7: CA_Gear_slot_handgun_item5 - { + class CA_Gear_slot_handgun_item7: CA_Gear_slot_handgun_item5 { idc = 128; x = "0.790 - 0.502"; y = "0.628 - 0.09"; }; - class CA_Gear_slot_handgun_item8: CA_Gear_slot_handgun_item5 - { + class CA_Gear_slot_handgun_item8: CA_Gear_slot_handgun_item5 { idc = 129; x = "0.847 - 0.502"; y = "0.628 - 0.09"; }; - class CA_Gear_slot_special1: CA_Gear_slot_item1 - { + class CA_Gear_slot_special1: CA_Gear_slot_item1 { idc = 130; x = "0.502 - 0.502"; y = "0.09 - 0.09"; w = 0.113; h = 0.15; }; - class CA_Gear_slot_special2: CA_Gear_slot_special1 - { + class CA_Gear_slot_special2: CA_Gear_slot_special1 { idc = 131; x = "0.847 - 0.502"; y = "0.09 - 0.09"; w = 0.113; h = 0.15; }; - class CA_Gear_slot_inventory1: CA_Gear_slot_special1 - { + class CA_Gear_slot_inventory1: CA_Gear_slot_special1 { idc = 134; x = "0.560 - 0.502"; y = "0.705 - 0.09"; w = 0.055; h = 0.074; }; - class CA_Gear_slot_inventory2: CA_Gear_slot_inventory1 - { + class CA_Gear_slot_inventory2: CA_Gear_slot_inventory1 { idc = 135; x = "0.617 - 0.502"; y = "0.705 - 0.09"; }; - class CA_Gear_slot_inventory3: CA_Gear_slot_inventory1 - { + class CA_Gear_slot_inventory3: CA_Gear_slot_inventory1 { idc = 136; x = "0.674 - 0.502"; y = "0.705 - 0.09"; }; - class CA_Gear_slot_inventory4: CA_Gear_slot_inventory1 - { + class CA_Gear_slot_inventory4: CA_Gear_slot_inventory1 { idc = 137; x = "0.733 - 0.502"; y = "0.705 - 0.09"; }; - class CA_Gear_slot_inventory5: CA_Gear_slot_inventory1 - { + class CA_Gear_slot_inventory5: CA_Gear_slot_inventory1 { idc = 138; x = "0.790 - 0.502"; y = "0.705 - 0.09"; }; - class CA_Gear_slot_inventory6: CA_Gear_slot_inventory1 - { + class CA_Gear_slot_inventory6: CA_Gear_slot_inventory1 { idc = 139; x = "0.847 - 0.502"; y = "0.705 - 0.09"; }; - class CA_Gear_slot_inventory7: CA_Gear_slot_inventory1 - { + class CA_Gear_slot_inventory7: CA_Gear_slot_inventory1 { idc = 140; x = "0.560 - 0.502"; y = "0.782 - 0.09"; }; - class CA_Gear_slot_inventory8: CA_Gear_slot_inventory7 - { + class CA_Gear_slot_inventory8: CA_Gear_slot_inventory7 { idc = 141; x = "0.617 - 0.502"; y = "0.782 - 0.09"; }; - class CA_Gear_slot_inventory9: CA_Gear_slot_inventory7 - { + class CA_Gear_slot_inventory9: CA_Gear_slot_inventory7 { idc = 142; x = "0.674 - 0.502"; y = "0.782 - 0.09"; }; - class CA_Gear_slot_inventory10: CA_Gear_slot_inventory7 - { + class CA_Gear_slot_inventory10: CA_Gear_slot_inventory7 { idc = 143; x = "0.733 - 0.502"; y = "0.782 - 0.09"; }; - class CA_Gear_slot_inventory11: CA_Gear_slot_inventory7 - { + class CA_Gear_slot_inventory11: CA_Gear_slot_inventory7 { idc = 144; x = "0.790 - 0.502"; y = "0.782 - 0.09"; }; - class CA_Gear_slot_inventory12: CA_Gear_slot_inventory7 - { + class CA_Gear_slot_inventory12: CA_Gear_slot_inventory7 { idc = 145; x = "0.847 - 0.502"; y = "0.782 - 0.09"; }; - class CA_Gear_slot_inventory13: CA_Gear_slot_inventory7 - { + class CA_Gear_slot_inventory13: CA_Gear_slot_inventory7 { idc = 1122; x = 10.1; y = 10.1; }; }; }; - class BagItemsGroup: RscControlsGroup - { + class BagItemsGroup: RscControlsGroup { x = 0.502; y = 0.09; w = 0.463; @@ -1185,21 +895,18 @@ class RscDisplayGear soundPush[] = {"",0.1,1}; soundClick[] = {"",0.1,1}; soundDoubleClick[] = {"",0.1,1}; - class VScrollbar - { + class VScrollbar { autoScrollSpeed = -1; autoScrollDelay = 5; autoScrollRewind = 0; color[] = {1,1,1,0}; width = 0.001; }; - class HScrollbar - { + class HScrollbar { color[] = {1,1,1,0}; height = 0.001; }; - class ScrollBar - { + class ScrollBar { color[] = {1,1,1,0.6}; colorActive[] = {1,1,1,1}; colorDisabled[] = {1,1,1,0.3}; @@ -1208,55 +915,47 @@ class RscDisplayGear arrowEmpty = "\ca\ui\data\ui_arrow_top_ca.paa"; border = "\ca\ui\data\ui_border_scroll_ca.paa"; }; - class Controls - { + class Controls { }; }; - class Break_7: RscLineBreak - { + class Break_7: RscLineBreak { }; - class ButtonFilters: RscIGUIShortcutButton - { + class ButtonFilters: RscIGUIShortcutButton { idc = 148; shortcuts[] = {"0x00050000 + 3"}; x = 0.333336; y = 0.897067; text = $STR_EPOCH_PLAYER_279; }; - class ButtonRearm: RscIGUIShortcutButton - { + class ButtonRearm: RscIGUIShortcutButton { idc = 132; shortcuts[] = {"0x00050000 + 2"}; x = 0.554743; y = 0.897067; text = $STR_EPOCH_PLAYER_280; }; - class ButtonOpenBag: RscIGUIShortcutButton - { + class ButtonOpenBag: RscIGUIShortcutButton { idc = 157; shortcuts[] = {"0x00050000 + 2"}; x = 0.554743; y = 0.897067; text = $STR_EPOCH_PLAYER_281; }; - class ButtonCloseBag: RscIGUIShortcutButton - { + class ButtonCloseBag: RscIGUIShortcutButton { idc = 158; shortcuts[] = {"0x00050000 + 2"}; x = 0.554743; y = 0.897067; text = $STR_EPOCH_PLAYER_282; }; - class ButtonContinue: RscIGUIShortcutButton - { + class ButtonContinue: RscIGUIShortcutButton { idc = 1; shortcuts[] = {"0x00050000 + 0",28,57,156}; x = 0.77615; y = 0.897066; default = 1; }; - class ButtonClose: RscIGUIShortcutButton - { + class ButtonClose: RscIGUIShortcutButton { idc = 2; shortcuts[] = {"0x00050000 + 1"}; x = 0.0392216; @@ -1264,34 +963,28 @@ class RscDisplayGear text = $STR_EPOCH_PLAYER_283; }; }; - class Filters - { - class All - { + class Filters { + class All { name = $STR_EPOCH_PLAYER_284; mask = -1; image = "\ca\ui\data\igui_gear_filter_1_ca.paa"; }; - class Primary - { + class Primary { name = $STR_EPOCH_PLAYER_285; mask = 769; image = "\ca\ui\data\igui_gear_filter_2_ca.paa"; }; - class Secondary - { + class Secondary { name = $STR_EPOCH_PLAYER_286; mask = 516; image = "\ca\ui\data\igui_gear_filter_3_ca.paa"; }; - class HandGun - { + class HandGun { name = $STR_EPOCH_PLAYER_287; mask = 18; image = "\ca\ui\data\igui_gear_filter_4_ca.paa"; }; - class Items - { + class Items { name = $STR_EPOCH_PLAYER_288; mask = 135168; image = "\ca\ui\data\igui_gear_filter_5_ca.paa"; @@ -1306,10 +999,8 @@ class RscDisplayGear emptyHGun = "\ca\ui\data\ui_gear_hgun_gs.paa"; emptyHGunMag = "\ca\ui\data\ui_gear_hgunmag_gs.paa"; onLoad = "_this call fn_gearMenuChecks;[] spawn object_monitorGear; call gear_ui_init; call ui_gear_sound;if (isNil('IGUI_GEAR_activeFilter')) then { IGUI_GEAR_activeFilter = 0;}; private ['_dummy']; _dummy = [_this,'initDialog'] call compile preprocessFile '\z\addons\dayz_code\BIS_scripts\handleGear.sqf'; _dummy = [_this,'onLoad'] execVM '\z\addons\dayz_code\BIS_scripts\handleGear.sqf'; _dummy;"; - class ControlsBackground - { - class Mainback: RscPicture - { + class ControlsBackground { + class Mainback: RscPicture { idc = 1005; x = 0.04; y = 0.01; @@ -1323,22 +1014,16 @@ class RscDisplayGear class DZ_ItemInteraction { idd = 6901; movingEnable = 0; - class controlsBackground { + class controlsBackground { // define controls here }; - class objects { + class objects { // define controls here }; - class controls { + class controls { // define controls here }; }; -#include "RscDisplay\RscDisplaySpawnSelecter.hpp" -#include "RscDisplay\RscMap.hpp" -#ifdef NewPlayerUI - #include "RscDisplay\RscNewPlayerUI.hpp" -#else - #include "RscDisplay\RscOldPlayerUI.hpp" -#endif +#include "RscDisplay\includes.hpp" \ No newline at end of file diff --git a/SQF/dayz_code/config.cpp b/SQF/dayz_code/config.cpp index 8b1b25270..557ad77d0 100644 --- a/SQF/dayz_code/config.cpp +++ b/SQF/dayz_code/config.cpp @@ -79,37 +79,6 @@ class CfgAddons }; }; -class RscPictureGUI -{ - access = 0; - type = 0; - idc = -1; - colorBackground[] = {0,0,0,0}; - colorText[] = {0.38,0.63,0.26,0.75}; - font = "TahomaB"; - sizeEx = 0; - lineSpacing = 0; - text = ""; - style = "0x30 + 0x100"; - x = 0; - y = 0; - w = 0.2; - h = 0.15; -}; - -class RscStructuredText { - class Attributes; -}; -class RscStructuredTextGUI: RscStructuredText -{ - colorBackground[] = {0,0,0,0}; - colorText[] = {1,1,1,1}; - class Attributes: Attributes - { - align = "center"; - valign = "middle"; -}; -}; #include "Configs\cfgMoves.hpp" #include "Configs\rscTitles.hpp"