Medical Rewrite - Remove dropDownTriageCard function (#6907)

* Remove dropDownTriageCard function

* Delete fnc_updateTourniquets.sqf
This commit is contained in:
mharis001 2019-03-30 17:06:36 -04:00 committed by PabstMirror
parent ac1651c6db
commit 30b99fa20a
3 changed files with 0 additions and 60 deletions

View File

@ -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];
};

View File

@ -43,7 +43,6 @@ PREP(bodyCleanupLoop);
PREP(calculateBlood);
PREP(canAccessMedicalEquipment);
PREP(canBandage);
PREP(dropDownTriageCard);
PREP(findMostEffectiveWound);
PREP(getBandageTime);
PREP(getTriageStatus);

View File

@ -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;
};