Advertisement
Guest User

Untitled

a guest
Feb 24th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.25 KB | None | 0 0
  1. #define ST_CENTER 0x02
  2. /*
  3. Author: Daniel Stuart
  4. Modified: itsmadhatter
  5.  
  6. File: hud_stats.hpp
  7. */
  8.  
  9. class playerHUD {
  10. idd = -1;
  11. duration = 10e10;
  12. movingEnable = 0;
  13. fadein = 0;
  14. fadeout = 0;
  15. name = "playerHUD";
  16. onLoad = "uiNamespace setVariable ['playerHUD',_this select 0]";
  17. objects[] = {};
  18. controls[] = {
  19. hunger_background,
  20. thirst_background,
  21. cash_background,
  22. hungericon,
  23. cashicon,
  24. thirsticon,
  25. hungertext,
  26. thirsttext,
  27. cashtext
  28. };
  29.  
  30. //Background
  31. class hunger_background : Life_RscBackground
  32. {
  33. colorBackground[] = {0.21, 0.21, 0.21, 1};
  34. x = SafeZoneX + (1692.5 / 1920) * SafeZoneW;
  35. y = SafeZoneY + (674.166666666667 / 1080) * SafeZoneH;
  36. w = (230.000000000001 / 1920) * SafeZoneW;
  37. h = (50.000000000001 / 1080) * SafeZoneH;
  38. };
  39. class thirst_background : Life_RscBackground
  40. {
  41. colorBackground[] = {0.21, 0.21, 0.21, 1};
  42. x = SafeZoneX + (1692.5 / 1920) * SafeZoneW;
  43. y = SafeZoneY + (674.166666666667 / 1080) * SafeZoneH;
  44. w = (230.000000000001 / 1920) * SafeZoneW;
  45. h = (50.000000000001 / 1080) * SafeZoneH;
  46. };
  47. class cash_background : Life_RscBackground
  48. {
  49. colorBackground[] = {0.21, 0.21, 0.21, 1};
  50. x = SafeZoneX + (1692.5 / 1920) * SafeZoneW;
  51. y = SafeZoneY + (810.833333333333 / 1080) * SafeZoneH;
  52. w = (230.000000000001 / 1920) * SafeZoneW;
  53. h = (50.000000000001 / 1080) * SafeZoneH;
  54. };
  55.  
  56. //Icon
  57. class hungericon : life_RscPicture
  58. {
  59. text = "icons\ico_donuts.paa";
  60. x = SafeZoneX + (1847.5 / 1920) * SafeZoneW;
  61. y = SafeZoneY + (682.166666666667 / 1080) * SafeZoneH;
  62. w = (60 / 1920) * SafeZoneW;
  63. h = (29.9999999999999 / 1080) * SafeZoneH;
  64. };
  65. class cashicon : life_RscPicture
  66. {
  67. text = "icons\ico_money.paa";
  68. x = SafeZoneX + (1847.5 / 1920) * SafeZoneW;
  69. y = SafeZoneY + (820.05 / 1080) * SafeZoneH;
  70. w = (60 / 1920) * SafeZoneW;
  71. h = (29.9999999999999 / 1080) * SafeZoneH;
  72. };
  73. class thirsticon : life_RscPicture
  74. {
  75. text = "icons\ico_waterBottle.paa";
  76. x = SafeZoneX + (1847.5 / 1920) * SafeZoneW;
  77. y = SafeZoneY + (752.96 / 1080) * SafeZoneH;
  78. w = (60 / 1920) * SafeZoneW;
  79. h = (29.9999999999999 / 1080) * SafeZoneH;
  80. };
  81.  
  82. //Text
  83. class hungertext : Life_RscText
  84. {
  85. idc = 2200;
  86. font = "PuristaSemiBold";
  87. x = SafeZoneX + (1747.5 / 1920) * SafeZoneW;
  88. y = SafeZoneY + (681.2 / 1080) * SafeZoneH;
  89. w = (63.9999999999999 / 1920) * SafeZoneW;
  90. h = (31 / 1080) * SafeZoneH;
  91. colorBackground[] = {0,0,0,0};
  92. colorText[] = {1,1,1,1};
  93. text = "";
  94. };
  95. class thirsttext : Life_RscText
  96. {
  97. idc = 2202;
  98. font = "PuristaSemiBold";
  99. x = SafeZoneX + (1749.5 / 1920) * SafeZoneW;
  100. y = SafeZoneY + (753.96 / 1080) * SafeZoneH;
  101. w = (63.9999999999999 / 1920) * SafeZoneW;
  102. h = (31 / 1080) * SafeZoneH;
  103. colorBackground[] = {0,0,0,0};
  104. colorText[] = {1,1,1,1};
  105. text = "";
  106. };
  107. class cashtext : Life_RscText
  108. {
  109. idc = 2201;
  110. font = "PuristaSemiBold";
  111. x = SafeZoneX + (1747.5 / 1920) * SafeZoneW;
  112. y = SafeZoneY + (817.96 / 1080) * SafeZoneH;
  113. w = (64 / 1920) * SafeZoneW;
  114. h = (31 / 1080) * SafeZoneH;
  115. colorBackground[] = {0,0,0,0};
  116. colorText[] = {1,1,1,1};
  117. text = "";
  118. };
  119. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement