Advertisement
Guest User

Untitled

a guest
Oct 10th, 2015
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.94 KB | None | 0 0
  1. {
  2. ExileHudStatsRenderedAt = diag_tickTime;
  3. _display = uiNamespace getVariable "RscExileHUD";
  4. _hunger = round (ExileClientPlayerAttributes select 2);
  5. _hungerValueControl = _display displayCtrl 1302;
  6. _hungerValueControl ctrlSetText format ["%1%2", _hunger, "%"];
  7. _hungerLabelControl = _display displayCtrl 1303;
  8. if ((_hunger > 25) && (_hunger < 80)) then
  9. {
  10. _hungerLabelControl ctrlSetTextColor [63/255, 212/255, 252/255, 1];
  11. _hungerValueControl ctrlSetTextColor [1, 1, 1, 1];
  12. };
  13.  
  14. if ((_hunger > 80) && (_thirst > 80)) then
  15. {
  16. _hungerLabelControl ctrlSetTextColor [63/255, 212/255, 252/255, 1];
  17. _hungerValueControl ctrlSetTextColor [0, 1, 0, 1];
  18. };
  19.  
  20. if (_hunger < 25) then
  21. {
  22. _hungerLabelControl ctrlSetTextColor [221/255, 38/255, 38/255, 1];
  23. _hungerValueControl ctrlSetTextColor [221/255, 38/255, 38/255, 1];
  24. };
  25. if ((_hunger > 80) && (_thirst < 80)) then
  26. {
  27. _hungerLabelControl ctrlSetTextColor [63/255, 212/255, 252/255, 1];
  28. _hungerValueControl ctrlSetTextColor [1, 1, 1, 1];
  29. };
  30. _thirst = round (ExileClientPlayerAttributes select 3);
  31. _thirstValueControl = _display displayCtrl 1304;
  32. _thirstValueControl ctrlSetText format ["%1%2", _thirst, "%"];
  33. _thirstLabelControl = _display displayCtrl 1305;
  34. if ((_thirst > 25) &&(_thirst < 80)) then
  35. {
  36. _thirstLabelControl ctrlSetTextColor [63/255, 212/255, 252/255, 1];
  37. _thirstValueControl ctrlSetTextColor [1, 1, 1, 1];
  38. };
  39. if ((_hunger > 80) && (_thirst > 80)) then
  40. {
  41. _thirstLabelControl ctrlSetTextColor [63/255, 212/255, 252/255, 1];
  42. _thirstValueControl ctrlSetTextColor [0, 1, 0, 1];
  43. };
  44. if (_thirst < 25) then
  45. {
  46. _thirstLabelControl ctrlSetTextColor [221/255, 38/255, 38/255, 1];
  47. _thirstValueControl ctrlSetTextColor [221/255, 38/255, 38/255, 1];
  48. };
  49. if ((_thirst > 80) && (_hunger <80)) then
  50. {
  51. _thirstLabelControl ctrlSetTextColor [63/255, 212/255, 252/255, 1];
  52. _thirstValueControl ctrlSetTextColor [1, 1, 1, 1];
  53. };
  54. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement