Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- ExileHudStatsRenderedAt = diag_tickTime;
- _display = uiNamespace getVariable "RscExileHUD";
- _hunger = round (ExileClientPlayerAttributes select 2);
- _hungerValueControl = _display displayCtrl 1302;
- _hungerValueControl ctrlSetText format ["%1%2", _hunger, "%"];
- _hungerLabelControl = _display displayCtrl 1303;
- if ((_hunger > 25) && (_hunger < 80)) then
- {
- _hungerLabelControl ctrlSetTextColor [63/255, 212/255, 252/255, 1];
- _hungerValueControl ctrlSetTextColor [1, 1, 1, 1];
- };
- if ((_hunger > 80) && (_thirst > 80)) then
- {
- _hungerLabelControl ctrlSetTextColor [63/255, 212/255, 252/255, 1];
- _hungerValueControl ctrlSetTextColor [0, 1, 0, 1];
- };
- if (_hunger < 25) then
- {
- _hungerLabelControl ctrlSetTextColor [221/255, 38/255, 38/255, 1];
- _hungerValueControl ctrlSetTextColor [221/255, 38/255, 38/255, 1];
- };
- if ((_hunger > 80) && (_thirst < 80)) then
- {
- _hungerLabelControl ctrlSetTextColor [63/255, 212/255, 252/255, 1];
- _hungerValueControl ctrlSetTextColor [1, 1, 1, 1];
- };
- _thirst = round (ExileClientPlayerAttributes select 3);
- _thirstValueControl = _display displayCtrl 1304;
- _thirstValueControl ctrlSetText format ["%1%2", _thirst, "%"];
- _thirstLabelControl = _display displayCtrl 1305;
- if ((_thirst > 25) &&(_thirst < 80)) then
- {
- _thirstLabelControl ctrlSetTextColor [63/255, 212/255, 252/255, 1];
- _thirstValueControl ctrlSetTextColor [1, 1, 1, 1];
- };
- if ((_hunger > 80) && (_thirst > 80)) then
- {
- _thirstLabelControl ctrlSetTextColor [63/255, 212/255, 252/255, 1];
- _thirstValueControl ctrlSetTextColor [0, 1, 0, 1];
- };
- if (_thirst < 25) then
- {
- _thirstLabelControl ctrlSetTextColor [221/255, 38/255, 38/255, 1];
- _thirstValueControl ctrlSetTextColor [221/255, 38/255, 38/255, 1];
- };
- if ((_thirst > 80) && (_hunger <80)) then
- {
- _thirstLabelControl ctrlSetTextColor [63/255, 212/255, 252/255, 1];
- _thirstValueControl ctrlSetTextColor [1, 1, 1, 1];
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement