mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Medical Rewrite - Remove dropDownTriageCard function (#6907)
* Remove dropDownTriageCard function * Delete fnc_updateTourniquets.sqf
This commit is contained in:
parent
ac1651c6db
commit
30b99fa20a
@ -1,26 +0,0 @@
|
||||
#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];
|
||||
};
|
@ -43,7 +43,6 @@ PREP(bodyCleanupLoop);
|
||||
PREP(calculateBlood);
|
||||
PREP(canAccessMedicalEquipment);
|
||||
PREP(canBandage);
|
||||
PREP(dropDownTriageCard);
|
||||
PREP(findMostEffectiveWound);
|
||||
PREP(getBandageTime);
|
||||
PREP(getTriageStatus);
|
||||
|
@ -1,33 +0,0 @@
|
||||
#include "script_component.hpp"
|
||||
/*
|
||||
* Author: Glowbal
|
||||
* Display triage card for a unit
|
||||
*
|
||||
* Arguments:
|
||||
* 0: Show <BOOL>
|
||||
*
|
||||
* Return Value:
|
||||
* None
|
||||
*
|
||||
* Example:
|
||||
* [true] call ace_medical_treatment_fnc_dropDownTriageCard
|
||||
*
|
||||
* Public: No
|
||||
*/
|
||||
|
||||
params ["_show"];
|
||||
|
||||
disableSerialization;
|
||||
private _display = uiNamespace getVariable QGVAR(triageCard);
|
||||
if (isNil "_display") exitWith {};
|
||||
|
||||
private _pos = [0,0,0,0];
|
||||
if (_show) then {
|
||||
_pos = ctrlPosition (_display displayCtrl 2001);
|
||||
};
|
||||
for "_idc" from 2002 to 2006 step 1 do {
|
||||
_pos set [1, (_pos select 1) + (_pos select 3)];
|
||||
private _ctrl = (_display displayCtrl _idc);
|
||||
_ctrl ctrlSetPosition _pos;
|
||||
_ctrl ctrlCommit 0;
|
||||
};
|
Loading…
Reference in New Issue
Block a user