ACE3/addons/medical/functions/fnc_updateTourniquets.sqf
diwako 88eb743485 Medical - Show tourniquets in Medical and Patient information (#6681)
* Show tourniquets in Medical and Patient information

* Ace styling

* Move tourniquet update function to medical
2018-12-06 13:41:23 -06:00

27 lines
597 B
Plaintext

#include "script_component.hpp"
/*
* Author: diwako
* Update tourniquets on the body image on the menu.
*
* Arguments:
* 0: Display <DISPLAY>
* 1: Tourniquets <ARRAY>
*
* Return Value:
* None
*
* Example:
* [some_display, [0,0,0,0,0,0]] call ace_medical_fnc_updateTourniquets
*
* Public: No
*/
params ["_display", "_tourniquets"];
// Handle tourniquets
private _availableSelections = [0, 0, 56, 57, 58, 59];
for "_i" from 2 to 5 do {
private _tourn = _tourniquets select _i;
(_display displayCtrl (_availableSelections select _i)) ctrlSetTextColor [0, 0, 0.8, _tourn];
};