Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define ST_CENTER 0x02
- /*
- Author: Daniel Stuart
- Modified: itsmadhatter
- File: hud_stats.hpp
- */
- class playerHUD {
- idd = -1;
- duration = 10e10;
- movingEnable = 0;
- fadein = 0;
- fadeout = 0;
- name = "playerHUD";
- onLoad = "uiNamespace setVariable ['playerHUD',_this select 0]";
- objects[] = {};
- controls[] = {
- hunger_background,
- thirst_background,
- cash_background,
- hungericon,
- cashicon,
- thirsticon,
- hungertext,
- thirsttext,
- cashtext
- };
- //Background
- class hunger_background : Life_RscBackground
- {
- colorBackground[] = {0.21, 0.21, 0.21, 1};
- x = SafeZoneX + (1692.5 / 1920) * SafeZoneW;
- y = SafeZoneY + (674.166666666667 / 1080) * SafeZoneH;
- w = (230.000000000001 / 1920) * SafeZoneW;
- h = (50.000000000001 / 1080) * SafeZoneH;
- };
- class thirst_background : Life_RscBackground
- {
- colorBackground[] = {0.21, 0.21, 0.21, 1};
- x = SafeZoneX + (1692.5 / 1920) * SafeZoneW;
- y = SafeZoneY + (674.166666666667 / 1080) * SafeZoneH;
- w = (230.000000000001 / 1920) * SafeZoneW;
- h = (50.000000000001 / 1080) * SafeZoneH;
- };
- class cash_background : Life_RscBackground
- {
- colorBackground[] = {0.21, 0.21, 0.21, 1};
- x = SafeZoneX + (1692.5 / 1920) * SafeZoneW;
- y = SafeZoneY + (810.833333333333 / 1080) * SafeZoneH;
- w = (230.000000000001 / 1920) * SafeZoneW;
- h = (50.000000000001 / 1080) * SafeZoneH;
- };
- //Icon
- class hungericon : life_RscPicture
- {
- text = "icons\ico_donuts.paa";
- x = SafeZoneX + (1847.5 / 1920) * SafeZoneW;
- y = SafeZoneY + (682.166666666667 / 1080) * SafeZoneH;
- w = (60 / 1920) * SafeZoneW;
- h = (29.9999999999999 / 1080) * SafeZoneH;
- };
- class cashicon : life_RscPicture
- {
- text = "icons\ico_money.paa";
- x = SafeZoneX + (1847.5 / 1920) * SafeZoneW;
- y = SafeZoneY + (820.05 / 1080) * SafeZoneH;
- w = (60 / 1920) * SafeZoneW;
- h = (29.9999999999999 / 1080) * SafeZoneH;
- };
- class thirsticon : life_RscPicture
- {
- text = "icons\ico_waterBottle.paa";
- x = SafeZoneX + (1847.5 / 1920) * SafeZoneW;
- y = SafeZoneY + (752.96 / 1080) * SafeZoneH;
- w = (60 / 1920) * SafeZoneW;
- h = (29.9999999999999 / 1080) * SafeZoneH;
- };
- //Text
- class hungertext : Life_RscText
- {
- idc = 2200;
- font = "PuristaSemiBold";
- x = SafeZoneX + (1747.5 / 1920) * SafeZoneW;
- y = SafeZoneY + (681.2 / 1080) * SafeZoneH;
- w = (63.9999999999999 / 1920) * SafeZoneW;
- h = (31 / 1080) * SafeZoneH;
- colorBackground[] = {0,0,0,0};
- colorText[] = {1,1,1,1};
- text = "";
- };
- class thirsttext : Life_RscText
- {
- idc = 2202;
- font = "PuristaSemiBold";
- x = SafeZoneX + (1749.5 / 1920) * SafeZoneW;
- y = SafeZoneY + (753.96 / 1080) * SafeZoneH;
- w = (63.9999999999999 / 1920) * SafeZoneW;
- h = (31 / 1080) * SafeZoneH;
- colorBackground[] = {0,0,0,0};
- colorText[] = {1,1,1,1};
- text = "";
- };
- class cashtext : Life_RscText
- {
- idc = 2201;
- font = "PuristaSemiBold";
- x = SafeZoneX + (1747.5 / 1920) * SafeZoneW;
- y = SafeZoneY + (817.96 / 1080) * SafeZoneH;
- w = (64 / 1920) * SafeZoneW;
- h = (31 / 1080) * SafeZoneH;
- colorBackground[] = {0,0,0,0};
- colorText[] = {1,1,1,1};
- text = "";
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement