mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Medical menu port from CSE
This commit is contained in:
parent
07845d5a89
commit
4dfef8025b
1
addons/medical_menu/$PBOPREFIX$
Normal file
1
addons/medical_menu/$PBOPREFIX$
Normal file
@ -0,0 +1 @@
|
||||
z\ace\addons\medical_menu
|
11
addons/medical_menu/CfgEventHandlers.hpp
Normal file
11
addons/medical_menu/CfgEventHandlers.hpp
Normal file
@ -0,0 +1,11 @@
|
||||
class Extended_PreInit_EventHandlers {
|
||||
class ADDON {
|
||||
init = QUOTE(call COMPILE_FILE(XEH_preInit));
|
||||
};
|
||||
};
|
||||
|
||||
class Extended_PostInit_EventHandlers {
|
||||
class ADDON {
|
||||
init = QUOTE(call COMPILE_FILE(XEH_postInit));
|
||||
};
|
||||
};
|
10
addons/medical_menu/README.md
Normal file
10
addons/medical_menu/README.md
Normal file
@ -0,0 +1,10 @@
|
||||
ace_medical_menu
|
||||
===============
|
||||
|
||||
Provides the CSE medical menu for the advanced medical system.
|
||||
|
||||
## Maintainers
|
||||
|
||||
The people responsible for merging changes to this component or answering potential questions.
|
||||
|
||||
- [Glowbal](https://github.com/Glowbal)
|
2
addons/medical_menu/XEH_postInit.sqf
Normal file
2
addons/medical_menu/XEH_postInit.sqf
Normal file
@ -0,0 +1,2 @@
|
||||
#include "script_component.hpp"
|
||||
|
14
addons/medical_menu/XEH_preInit.sqf
Normal file
14
addons/medical_menu/XEH_preInit.sqf
Normal file
@ -0,0 +1,14 @@
|
||||
#include "script_component.hpp"
|
||||
|
||||
ADDON = false;
|
||||
|
||||
PREP(onMenuOpen);
|
||||
PREP(openMenu);
|
||||
|
||||
PREP(updateIcons);
|
||||
PREP(updateUIInfo);
|
||||
PREP(handleUI_DisplayOptions);
|
||||
PREP(handleUI_dropDownTriageCard);
|
||||
PREP(getTreatmentOptions);
|
||||
|
||||
ADDON = true;
|
24
addons/medical_menu/config.cpp
Normal file
24
addons/medical_menu/config.cpp
Normal file
@ -0,0 +1,24 @@
|
||||
#include "script_component.hpp"
|
||||
|
||||
class CfgPatches {
|
||||
class ADDON {
|
||||
units[] = {};
|
||||
weapons[] = {};
|
||||
requiredVersion = REQUIRED_VERSION;
|
||||
requiredAddons[] = {"ace_medical"};
|
||||
version = VERSION;
|
||||
author[] = {$STR_ACE_Common_ACETeam, "Glowbal"};
|
||||
authorUrl = "http://ace3mod.com";
|
||||
};
|
||||
};
|
||||
class CfgAddons {
|
||||
class PreloadAddons {
|
||||
class ADDON {
|
||||
list[] = {QUOTE(ADDON)};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
#include "CfgEventHandlers.hpp"
|
||||
#include "ui\define.hpp"
|
||||
#include "ui\menu.hpp"
|
BIN
addons/medical_menu/data/ACE_medical_module.paa
Normal file
BIN
addons/medical_menu/data/ACE_medical_module.paa
Normal file
Binary file not shown.
BIN
addons/medical_menu/data/background_img.paa
Normal file
BIN
addons/medical_menu/data/background_img.paa
Normal file
Binary file not shown.
BIN
addons/medical_menu/data/body_arm_left.paa
Normal file
BIN
addons/medical_menu/data/body_arm_left.paa
Normal file
Binary file not shown.
BIN
addons/medical_menu/data/body_arm_right.paa
Normal file
BIN
addons/medical_menu/data/body_arm_right.paa
Normal file
Binary file not shown.
BIN
addons/medical_menu/data/body_arms.paa
Normal file
BIN
addons/medical_menu/data/body_arms.paa
Normal file
Binary file not shown.
BIN
addons/medical_menu/data/body_background.paa
Normal file
BIN
addons/medical_menu/data/body_background.paa
Normal file
Binary file not shown.
BIN
addons/medical_menu/data/body_head.paa
Normal file
BIN
addons/medical_menu/data/body_head.paa
Normal file
Binary file not shown.
BIN
addons/medical_menu/data/body_img-arms.paa
Normal file
BIN
addons/medical_menu/data/body_img-arms.paa
Normal file
Binary file not shown.
BIN
addons/medical_menu/data/body_img-head.paa
Normal file
BIN
addons/medical_menu/data/body_img-head.paa
Normal file
Binary file not shown.
BIN
addons/medical_menu/data/body_img-legs.paa
Normal file
BIN
addons/medical_menu/data/body_img-legs.paa
Normal file
Binary file not shown.
BIN
addons/medical_menu/data/body_img-torso.paa
Normal file
BIN
addons/medical_menu/data/body_img-torso.paa
Normal file
Binary file not shown.
BIN
addons/medical_menu/data/body_leg_left.paa
Normal file
BIN
addons/medical_menu/data/body_leg_left.paa
Normal file
Binary file not shown.
BIN
addons/medical_menu/data/body_leg_right.paa
Normal file
BIN
addons/medical_menu/data/body_leg_right.paa
Normal file
Binary file not shown.
BIN
addons/medical_menu/data/body_legs.paa
Normal file
BIN
addons/medical_menu/data/body_legs.paa
Normal file
Binary file not shown.
BIN
addons/medical_menu/data/body_torso.paa
Normal file
BIN
addons/medical_menu/data/body_torso.paa
Normal file
Binary file not shown.
BIN
addons/medical_menu/data/border_arm_left.paa
Normal file
BIN
addons/medical_menu/data/border_arm_left.paa
Normal file
Binary file not shown.
BIN
addons/medical_menu/data/border_arm_right.paa
Normal file
BIN
addons/medical_menu/data/border_arm_right.paa
Normal file
Binary file not shown.
BIN
addons/medical_menu/data/border_head.paa
Normal file
BIN
addons/medical_menu/data/border_head.paa
Normal file
Binary file not shown.
BIN
addons/medical_menu/data/border_leg_left.paa
Normal file
BIN
addons/medical_menu/data/border_leg_left.paa
Normal file
Binary file not shown.
BIN
addons/medical_menu/data/border_leg_right.paa
Normal file
BIN
addons/medical_menu/data/border_leg_right.paa
Normal file
Binary file not shown.
BIN
addons/medical_menu/data/border_torso.paa
Normal file
BIN
addons/medical_menu/data/border_torso.paa
Normal file
Binary file not shown.
BIN
addons/medical_menu/data/buttonDisabled_gradient.paa
Normal file
BIN
addons/medical_menu/data/buttonDisabled_gradient.paa
Normal file
Binary file not shown.
BIN
addons/medical_menu/data/buttonNormal_gradient.paa
Normal file
BIN
addons/medical_menu/data/buttonNormal_gradient.paa
Normal file
Binary file not shown.
BIN
addons/medical_menu/data/buttonNormal_gradient2.paa
Normal file
BIN
addons/medical_menu/data/buttonNormal_gradient2.paa
Normal file
Binary file not shown.
BIN
addons/medical_menu/data/buttonNormal_gradient3.paa
Normal file
BIN
addons/medical_menu/data/buttonNormal_gradient3.paa
Normal file
Binary file not shown.
BIN
addons/medical_menu/data/buttonNormal_gradient_top.paa
Normal file
BIN
addons/medical_menu/data/buttonNormal_gradient_top.paa
Normal file
Binary file not shown.
BIN
addons/medical_menu/data/icons/advanced_treatment_small.paa
Normal file
BIN
addons/medical_menu/data/icons/advanced_treatment_small.paa
Normal file
Binary file not shown.
BIN
addons/medical_menu/data/icons/airway_management_small.paa
Normal file
BIN
addons/medical_menu/data/icons/airway_management_small.paa
Normal file
Binary file not shown.
BIN
addons/medical_menu/data/icons/bandage_fracture_small.paa
Normal file
BIN
addons/medical_menu/data/icons/bandage_fracture_small.paa
Normal file
Binary file not shown.
BIN
addons/medical_menu/data/icons/examine_patient_small.paa
Normal file
BIN
addons/medical_menu/data/icons/examine_patient_small.paa
Normal file
Binary file not shown.
BIN
addons/medical_menu/data/icons/icon_advanced_treatment.paa
Normal file
BIN
addons/medical_menu/data/icons/icon_advanced_treatment.paa
Normal file
Binary file not shown.
BIN
addons/medical_menu/data/icons/icon_airway_management.paa
Normal file
BIN
addons/medical_menu/data/icons/icon_airway_management.paa
Normal file
Binary file not shown.
BIN
addons/medical_menu/data/icons/icon_bandage_fracture.paa
Normal file
BIN
addons/medical_menu/data/icons/icon_bandage_fracture.paa
Normal file
Binary file not shown.
BIN
addons/medical_menu/data/icons/icon_bleeding.paa
Normal file
BIN
addons/medical_menu/data/icons/icon_bleeding.paa
Normal file
Binary file not shown.
BIN
addons/medical_menu/data/icons/icon_carry.paa
Normal file
BIN
addons/medical_menu/data/icons/icon_carry.paa
Normal file
Binary file not shown.
BIN
addons/medical_menu/data/icons/icon_examine_patient.paa
Normal file
BIN
addons/medical_menu/data/icons/icon_examine_patient.paa
Normal file
Binary file not shown.
BIN
addons/medical_menu/data/icons/icon_medication.paa
Normal file
BIN
addons/medical_menu/data/icons/icon_medication.paa
Normal file
Binary file not shown.
BIN
addons/medical_menu/data/icons/icon_toggle_self.paa
Normal file
BIN
addons/medical_menu/data/icons/icon_toggle_self.paa
Normal file
Binary file not shown.
BIN
addons/medical_menu/data/icons/icon_tourniquet.paa
Normal file
BIN
addons/medical_menu/data/icons/icon_tourniquet.paa
Normal file
Binary file not shown.
BIN
addons/medical_menu/data/icons/icon_tourniquet_small.paa
Normal file
BIN
addons/medical_menu/data/icons/icon_tourniquet_small.paa
Normal file
Binary file not shown.
BIN
addons/medical_menu/data/icons/icon_triage_card.paa
Normal file
BIN
addons/medical_menu/data/icons/icon_triage_card.paa
Normal file
Binary file not shown.
BIN
addons/medical_menu/data/icons/medication_small.paa
Normal file
BIN
addons/medical_menu/data/icons/medication_small.paa
Normal file
Binary file not shown.
BIN
addons/medical_menu/data/icons/toggle_self_small.paa
Normal file
BIN
addons/medical_menu/data/icons/toggle_self_small.paa
Normal file
Binary file not shown.
BIN
addons/medical_menu/data/icons/triage_card_small.paa
Normal file
BIN
addons/medical_menu/data/icons/triage_card_small.paa
Normal file
Binary file not shown.
BIN
addons/medical_menu/data/ui_background.paa
Normal file
BIN
addons/medical_menu/data/ui_background.paa
Normal file
Binary file not shown.
@ -0,0 +1 @@
|
||||
// TODO implement, grab/parse from config ?
|
@ -0,0 +1,85 @@
|
||||
/**
|
||||
* fn_displayOptions.sqf
|
||||
* @Descr: N/A
|
||||
* @Author: Glowbal
|
||||
*
|
||||
* @Arguments: []
|
||||
* @Return:
|
||||
* @PublicAPI: false
|
||||
*/
|
||||
|
||||
#include "script_component.hpp"
|
||||
|
||||
#define START_IDC 20
|
||||
#define END_IDC 27
|
||||
#define AMOUNT_OF_ENTRIES (count _entries)
|
||||
|
||||
private ["_name","_entries","_display","_newTarget","_counter","_card","_ctrl","_code"];
|
||||
_name = _this select 0;
|
||||
if (!hasInterface) exitwith{};
|
||||
|
||||
disableSerialization;
|
||||
_display = uiNamespace getVariable QGVAR(medicalMenu);
|
||||
if (isNil "_display") exitwith {}; // no valid dialog present
|
||||
|
||||
if ((_name == "toggle")) exitwith {
|
||||
|
||||
if (GVAR(INTERACTION_TARGET) != ACE_player) then {
|
||||
_newTarget = ACE_player;
|
||||
} else {
|
||||
_newTarget = GVAR(INTERACTION_TARGET_PREVIOUS);
|
||||
};
|
||||
|
||||
GVAR(INTERACTION_TARGET_PREVIOUS) = GVAR(INTERACTION_TARGET);
|
||||
[_newTarget] spawn {
|
||||
closeDialog 0;
|
||||
sleep 0.1;
|
||||
[_this select 0] call FUNC(openMenu);
|
||||
};
|
||||
};
|
||||
|
||||
// Clean the dropdown options list from all actions
|
||||
for [{_x=START_IDC},{_x <= END_IDC},{_x=_x+1}] do {
|
||||
_ctrl = (_display displayCtrl (_x));
|
||||
_ctrl ctrlSetText "";
|
||||
_ctrl ctrlShow false;
|
||||
_ctrl ctrlSetEventHandler ["ButtonClick",""];
|
||||
_ctrl ctrlSetTooltip "";
|
||||
_ctrl ctrlCommit 0;
|
||||
};
|
||||
|
||||
GVAR(LatestDisplayOptionMenu) = _name;
|
||||
|
||||
// The triage card has no options available
|
||||
lbClear 212;
|
||||
if (_name == "triage") exitwith {
|
||||
ctrlEnable[212,true];
|
||||
_card = ([GVAR(INTERACTION_TARGET)] call FUNC(getTriageList));
|
||||
{
|
||||
lbadd[212,format["%1 x%2", getText(configFile >> "CfgWeapons" >> (_x select 0) >> "displayName"), _x select 1]];
|
||||
}foreach _card;
|
||||
if (count _card == 0) then {
|
||||
lbadd[212,"No Entries"];
|
||||
};
|
||||
};
|
||||
|
||||
ctrlEnable[212,false];
|
||||
|
||||
_entries = [ACE_player, GVAR(INTERACTION_TARGET),_name] call FUNC(getTreatmentOptions);
|
||||
|
||||
{
|
||||
//player sidechat format["TRIGGERED: %1",_x];
|
||||
if (_foreachIndex > END_IDC) exitwith {};
|
||||
_ctrl = (_display displayCtrl (START_IDC + _foreachIndex));
|
||||
if (!(_foreachIndex > AMOUNT_OF_ENTRIES)) then {
|
||||
_ctrl ctrlSetText (_x select 0);
|
||||
_code = format["[ACE_player, ACE_medical_INTERACTION_TARGET] call %1;",(_x select 1)];
|
||||
_ctrl ctrlSetEventHandler ["ButtonClick", _code];
|
||||
_ctrl ctrlSetTooltip (_x select 2);
|
||||
_ctrl ctrlShow true;
|
||||
} else {
|
||||
_ctrl ctrlSetText "";
|
||||
_ctrl ctrlSetEventHandler ["ButtonClick",""];
|
||||
};
|
||||
_ctrl ctrlCommit 0;
|
||||
}foreach _entries;
|
@ -0,0 +1,28 @@
|
||||
/**
|
||||
* fn_handleUI_dropDownTriageCard.sqf
|
||||
* @Descr: N/A
|
||||
* @Author: Glowbal
|
||||
*
|
||||
* @Arguments: []
|
||||
* @Return:
|
||||
* @PublicAPI: false
|
||||
*/
|
||||
|
||||
#include "script_component.hpp"
|
||||
|
||||
private ["_display","_pos","_ctrl","_curPos","_idc"];
|
||||
disableSerialization;
|
||||
_display = uiNamespace getVariable QGVAR(medicalMenu);
|
||||
_pos = [ 0,0,0,0];
|
||||
_curPos = ctrlPosition (_display displayCtrl 2002);
|
||||
if ((_curPos select 0) == 0 && (_curPos select 1) == 0) then {
|
||||
_pos = ctrlPosition (_display displayCtrl 2001);
|
||||
};
|
||||
|
||||
for "_idc" from 2002 to 2006 step 1 do {
|
||||
_pos set [1, (_pos select 1) + (_pos select 3)];
|
||||
_ctrl = (_display displayCtrl _idc);
|
||||
_ctrl ctrlSetPosition _pos;
|
||||
_ctrl ctrlCommit 0;
|
||||
};
|
||||
|
76
addons/medical_menu/functions/fnc_onMenuOpen.sqf
Normal file
76
addons/medical_menu/functions/fnc_onMenuOpen.sqf
Normal file
@ -0,0 +1,76 @@
|
||||
/**
|
||||
* fn_onMenuOpen.sqf
|
||||
* @Descr: N/A
|
||||
* @Author: Glowbal
|
||||
*
|
||||
* @Arguments: []
|
||||
* @Return:
|
||||
* @PublicAPI: false
|
||||
*/
|
||||
|
||||
#include "script_component.hpp"
|
||||
|
||||
if (isnil QGVAR(LatestDisplayOptionMenu)) then {
|
||||
GVAR(LatestDisplayOptionMenu) = "triage";
|
||||
} else {
|
||||
if (GVAR(LatestDisplayOptionMenu) == "toggle") then {
|
||||
GVAR(LatestDisplayOptionMenu) = "triage";
|
||||
GVAR(INTERACTION_TARGET) = GVAR(INTERACTION_TARGET_PREVIOUS);
|
||||
};
|
||||
};
|
||||
|
||||
private ["_display","_target"];
|
||||
_target = GVAR(INTERACTION_TARGET);
|
||||
if (isnil QGVAR(INTERACTION_TARGET_PREVIOUS)) then {
|
||||
GVAR(INTERACTION_TARGET_PREVIOUS) = _target;
|
||||
};
|
||||
[GVAR(LatestDisplayOptionMenu)] call FUNC(handleUI_DisplayOptions);
|
||||
|
||||
[] call FUNC(updateActivityLog);
|
||||
[_target] call FUNC(updateUIInfo);
|
||||
|
||||
// 11 till 18
|
||||
disableSerialization;
|
||||
_display = _this select 0; //uiNamespace getVariable QGVAR(medicalMenu);
|
||||
if (isnil "_display") exitwith {
|
||||
|
||||
};
|
||||
|
||||
(_display displayCtrl 11) ctrlSetTooltip localize "STR_ACE_UI_VIEW_TRIAGE_CARD";
|
||||
(_display displayCtrl 12) ctrlSetTooltip localize "STR_ACE_UI_EXAMINE_PATIENT";
|
||||
(_display displayCtrl 13) ctrlSetTooltip localize "STR_ACE_UI_BANDAGE_FRACTURES";
|
||||
(_display displayCtrl 14) ctrlSetTooltip localize "STR_ACE_UI_MEDICATION";
|
||||
(_display displayCtrl 15) ctrlSetTooltip localize "STR_ACE_UI_AIRWAY_MANAGEMENT";
|
||||
(_display displayCtrl 16) ctrlSetTooltip localize "STR_ACE_UI_ADVANCED_TREATMENT";
|
||||
(_display displayCtrl 17) ctrlSetTooltip localize "STR_ACE_UI_DRAG_CARRY";
|
||||
(_display displayCtrl 18) ctrlSetTooltip localize "STR_ACE_UI_TOGGLE_SELF";
|
||||
|
||||
(_display displayCtrl 301) ctrlSetTooltip localize "STR_ACE_UI_SELECT_HEAD";
|
||||
(_display displayCtrl 302) ctrlSetTooltip localize "STR_ACE_UI_SELECT_TORSO";
|
||||
(_display displayCtrl 303) ctrlSetTooltip localize "STR_ACE_UI_SELECT_ARM_R";
|
||||
(_display displayCtrl 304) ctrlSetTooltip localize "STR_ACE_UI_SELECT_ARM_L";
|
||||
(_display displayCtrl 305) ctrlSetTooltip localize "STR_ACE_UI_SELECT_LEG_R";
|
||||
(_display displayCtrl 306) ctrlSetTooltip localize "STR_ACE_UI_SELECT_LEG_L";
|
||||
(_display displayCtrl 2001) ctrlSetTooltip localize "STR_ACE_UI_SELECT_TRIAGE_STATUS";
|
||||
|
||||
|
||||
(_display displayCtrl 1) ctrlSetText format["%1",[_target] call EFUNC(common,getName)];
|
||||
setMousePosition [ 0.4, 0.4];
|
||||
|
||||
[QGVAR(onMenuOpen), "onEachFrame", {
|
||||
if (isNull GVAR(INTERACTION_TARGET)) then {
|
||||
GVAR(INTERACTION_TARGET) = ACE_player;
|
||||
};
|
||||
[GVAR(INTERACTION_TARGET)] call FUNC(updateUIInfo);
|
||||
[GVAR(INTERACTION_TARGET)] call FUNC(updateIcons);
|
||||
[GVAR(LatestDisplayOptionMenu)] call FUNC(handleUI_DisplayOptions);
|
||||
|
||||
[] call FUNC(updateActivityLog);
|
||||
|
||||
_status = [GVAR(INTERACTION_TARGET)] call FUNC(getTriageStatus);
|
||||
((_this select 0) displayCtrl 2000) ctrlSetText (_status select 0);
|
||||
((_this select 0) displayCtrl 2000) ctrlSetBackgroundColor (_status select 2);
|
||||
|
||||
}, [_display]] call BIS_fnc_addStackedEventHandler;
|
||||
|
||||
["Medical_onMenuOpen", [ACE_player, _interactionTarget]] call ace_common_fnc_localEvent;
|
33
addons/medical_menu/functions/fnc_openMenu.sqf
Normal file
33
addons/medical_menu/functions/fnc_openMenu.sqf
Normal file
@ -0,0 +1,33 @@
|
||||
#include "script_component.hpp"
|
||||
|
||||
if (dialog) exitwith {
|
||||
disableSerialization;
|
||||
|
||||
private "_display";
|
||||
_display = uiNamespace getVariable QGVAR(medicalMenu);
|
||||
if (!isnil "_display") then {
|
||||
closeDialog 314412;
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
private ["_interactionTarget"];
|
||||
_interactionTarget = objNull;
|
||||
if (count _this > 0) then {
|
||||
_interactionTarget = _this select 0;
|
||||
|
||||
} else {
|
||||
_interactionTarget = cursortarget;
|
||||
if (isNull _interactionTarget) then {
|
||||
_interactionTarget = ACE_player;
|
||||
};
|
||||
if (_interactionTarget distance ACE_player > 5 || !(_interactionTarget isKindOf "CaManBase")) then {
|
||||
_interactionTarget = ACE_player;
|
||||
};
|
||||
};
|
||||
|
||||
if (isNull _interactionTarget) then {
|
||||
_interactionTarget = ACE_player;
|
||||
};
|
||||
GVAR(INTERACTION_TARGET) = _interactionTarget;
|
||||
createDialog QGVAR(medicalMenu);
|
27
addons/medical_menu/functions/fnc_updateIcons.sqf
Normal file
27
addons/medical_menu/functions/fnc_updateIcons.sqf
Normal file
@ -0,0 +1,27 @@
|
||||
/**
|
||||
* fn_updateIcons.sqf
|
||||
* @Descr: N/A
|
||||
* @Author: Glowbal
|
||||
*
|
||||
* @Arguments: []
|
||||
* @Return:
|
||||
* @PublicAPI: false
|
||||
*/
|
||||
|
||||
#include "script_component.hpp"
|
||||
|
||||
private ["_display","_startIDC","_idc","_options","_name","_amount"];
|
||||
disableSerialization;
|
||||
_display = uiNamespace getVariable QGVAR(medicalMenu);
|
||||
|
||||
_startIDC = 111;
|
||||
|
||||
_options = ["triage" , "examine", "bandage", "medication", "airway", "advanced", "drag", "toggle"];
|
||||
for "_idc" from _startIDC to 118 step 1 do {
|
||||
_amount = [ACE_player, GVAR(INTERACTION_TARGET), _options select (_idc - 111)] call FUNC(getTreatmentOptions);
|
||||
if ((count _amount) > 0 || _idc == 111 || _idc == 118) then {
|
||||
(_display displayCtrl _idc) ctrlSettextColor [1,1,1,1];
|
||||
} else {
|
||||
(_display displayCtrl _idc) ctrlSettextColor [0.4,0.4,0.4,1];
|
||||
};
|
||||
};
|
215
addons/medical_menu/functions/fnc_updateUIInfo.sqf
Normal file
215
addons/medical_menu/functions/fnc_updateUIInfo.sqf
Normal file
@ -0,0 +1,215 @@
|
||||
/**
|
||||
* fn_updateUIInfo.sqf
|
||||
* @Descr: N/A
|
||||
* @Author: Glowbal
|
||||
*
|
||||
* @Arguments: []
|
||||
* @Return:
|
||||
* @PublicAPI: false
|
||||
*/
|
||||
|
||||
#include "script_component.hpp"
|
||||
|
||||
private ["_targetObj","_bodyPartText","_bodyPartN","_openWounds","_bandagedWounds","_fractures","_listOfWounds","_listOfBandagedWounds","_listOfFractures","_counter","_nameEntry","_untreatedWounds" ,"_remainder", "_numberOf", "_airwayStatus", "_airwayTreated"];
|
||||
_targetObj = _this select 0;
|
||||
|
||||
_bodyPartText = (call FUNC(getSelectedBodyPart));
|
||||
_bodyPartN = [_bodyPartText] call FUNC(getBodyPartNumber);
|
||||
|
||||
if (_bodyPartN < 0 || _bodyPartN > 5) exitwith {};
|
||||
|
||||
_openWounds = [_targetObj,QGVAR(openWounds)] call EFUNC(common,getDefinedVariable);
|
||||
_bandagedWounds = [_targetObj,QGVAR(bandagedWounds)] call EFUNC(common,getDefinedVariable);
|
||||
_fractures = [_targetObj,QGVAR(fractures)] call EFUNC(common,getDefinedVariable);
|
||||
_airwayStatus = [_targetObj,QGVAR(airway)] call EFUNC(common,getDefinedVariable);
|
||||
|
||||
if (count _this > 1) then {
|
||||
switch (_this select 1) do {
|
||||
case QGVAR(openWounds): { _openWounds = _this select 2; };
|
||||
case QGVAR(bandagedWounds): { _bandagedWounds = _this select 2; };
|
||||
case QGVAR(fractures): { _fractures = _this select 2; };
|
||||
};
|
||||
};
|
||||
|
||||
[_openWounds,_bandagedWounds] call FUNC(updateBodyImg);
|
||||
_listOfWounds = _openWounds select _bodyPartN;
|
||||
_listOfBandagedWounds = _bandagedWounds select _bodyPartN;
|
||||
_listOfFractures = _fractures select _bodyPartN;
|
||||
|
||||
// TODO collect all information first, then clear the lb and fill in with details. Also; use ctrl instead of IDC.
|
||||
_numberOf = 0;
|
||||
lbClear 213;
|
||||
|
||||
_displayBodyPartText = switch (_bodyPartText) do {
|
||||
case "head": {
|
||||
localize "STR_ACE_UI_HEAD";
|
||||
};
|
||||
case "body": {
|
||||
localize "STR_ACE_UI_TORSO";
|
||||
};
|
||||
case "hand_r": {
|
||||
localize "STR_ACE_UI_ARM_R";
|
||||
};
|
||||
case "hand_l": {
|
||||
localize "STR_ACE_UI_ARM_L";
|
||||
};
|
||||
case "leg_r": {
|
||||
localize "STR_ACE_UI_LEG_R";
|
||||
};
|
||||
case "leg_l": {
|
||||
localize "STR_ACE_UI_LEG_L";
|
||||
};
|
||||
default {"-"};
|
||||
};
|
||||
|
||||
|
||||
lbadd[213,format[localize "STR_ACE_UI_SELECTED_BODY_PART",_displayBodyPartText]];
|
||||
lbSetData [213, _numberOf, ""];
|
||||
lbSetColor [213, _numberOf, [0.27, 0.40, 0.26, 1]];
|
||||
_numberOf = _numberOf + 1;
|
||||
|
||||
if (GVAR(setting_allowAirwayInjuries)) then {
|
||||
_airwayTreated = _targetObj getvariable [QGVAR(airwayTreated), false];
|
||||
|
||||
if (_airwayStatus > 0) then {
|
||||
_nameEntry = switch (_airwayStatus) do {
|
||||
case 0: {localize "STR_ACE_UI_NORMAL_BREATHING"};
|
||||
case 1: {localize "STR_ACE_UI_DIFFICULT_BREATHING"};
|
||||
case 2: {localize "STR_ACE_UI_ALMOST_NO_BREATHING"};
|
||||
default {localize "STR_ACE_UI_NO_BREATHING"};
|
||||
};
|
||||
|
||||
if (!(alive _targetObj) || (_targetObj getvariable [QEGVAR(common,isDead), false])) then {
|
||||
lbadd[213,format["%1",localize "STR_ACE_UI_NO_BREATHING"]];
|
||||
} else {
|
||||
lbadd[213,format["%1",_nameEntry]];
|
||||
};
|
||||
lbSetData [213, _numberOf, ""];
|
||||
_numberOf = _numberOf + 1;
|
||||
} else {
|
||||
if (!(alive _targetObj) || (_targetObj getvariable [QEGVAR(common,isDead), false])) then {
|
||||
lbadd[213,format["%1",localize "STR_ACE_UI_NO_BREATHING"]];
|
||||
lbSetData [213, _numberOf, ""];
|
||||
_numberOf = _numberOf + 1;
|
||||
};
|
||||
};
|
||||
|
||||
if (_airwayTreated) then {
|
||||
lbadd[213,localize "STR_ACE_UI_STATUS_NPA_APPLIED"];
|
||||
lbSetData [213, _numberOf, ""];
|
||||
lbSetColor [213, _numberOf, [0.5, 0.5, 0, 1]];
|
||||
_numberOf = _numberOf + 1;
|
||||
};
|
||||
};
|
||||
|
||||
if (([_targetObj,QGVAR(isBleeding)] call EFUNC(common,getDefinedVariable))) then {
|
||||
lbadd[213,localize "STR_ACE_UI_STATUS_BLEEDING"];
|
||||
lbSetData [213, _numberOf, ""];
|
||||
_numberOf = _numberOf + 1;
|
||||
};
|
||||
if (([_targetObj,QGVAR(hasLostBlood)] call EFUNC(common,getDefinedVariable))) then {
|
||||
lbadd[213,localize "STR_ACE_UI_STATUS_LOST_BLOOD"];
|
||||
lbSetData [213, _numberOf, ""];
|
||||
_numberOf = _numberOf + 1;
|
||||
};
|
||||
|
||||
if (([_targetObj,QGVAR(hasPain)] call EFUNC(common,getDefinedVariable))) then {
|
||||
lbadd[213,localize "STR_ACE_UI_STATUS_PAIN"];
|
||||
lbSetData [213, _numberOf, ""];
|
||||
_numberOf = _numberOf + 1;
|
||||
};
|
||||
if (([_targetObj, _bodyPartText] call FUNC(hasTourniquetAppliedTo))) then {
|
||||
lbadd[213,localize "STR_ACE_UI_STATUS_TOURNIQUET_APPLIED"];
|
||||
lbSetColor [213, _numberOf, [0.5, 0.5, 0, 1]];
|
||||
lbSetData [213, _numberOf, ""];
|
||||
_numberOf = _numberOf + 1;
|
||||
};
|
||||
|
||||
_counter = 0;
|
||||
{
|
||||
if (_x > 0) then {
|
||||
_untreatedWounds = floor _x;
|
||||
_remainder = _x - (floor _x);
|
||||
|
||||
_nameEntry = switch (_counter) do {
|
||||
case 0: {localize "STR_ACE_UI_SMALL"};
|
||||
case 1: {localize "STR_ACE_UI_MEDIUM"};
|
||||
case 2: {localize "STR_ACE_UI_LARGE"};
|
||||
default {localize "STR_ACE_UI_SMALL"};
|
||||
};
|
||||
|
||||
if (_untreatedWounds > 1) then {
|
||||
lbadd[213,format[localize "STR_ACE_UI_MULTIPLE_OPEN_WOUNDS",_nameEntry,_untreatedWounds]];
|
||||
lbSetData [213, _numberOf, format["open_wound_%1",_counter]];
|
||||
lbSetColor [213, _numberOf, [0.6, 0, 0, 1]];
|
||||
_numberOf = _numberOf + 1;
|
||||
} else {
|
||||
if (_untreatedWounds == 1) then {
|
||||
lbadd[213,format[localize "STR_ACE_UI_SINGLE_OPEN_WOUND",_nameEntry]];
|
||||
lbSetData [213, _numberOf, format["open_wound_%1",_counter]];
|
||||
lbSetColor [213, _numberOf, [0.6, 0, 0, 1]];
|
||||
_numberOf = _numberOf + 1;
|
||||
};
|
||||
};
|
||||
|
||||
if (_remainder > 0) then {
|
||||
lbadd[213,format[localize "STR_ACE_UI_PARTIAL_OPEN_WOUND",_nameEntry]];
|
||||
lbSetData [213, _numberOf, format["open_wound_%1",_counter]];
|
||||
lbSetColor [213, _numberOf, [0.6, 0, 0, 1]];
|
||||
_numberOf = _numberOf + 1;
|
||||
};
|
||||
};
|
||||
_counter = _counter + 1;
|
||||
}foreach _listOfWounds;
|
||||
|
||||
_counter = 0;
|
||||
{
|
||||
if (_x > 0) then {
|
||||
|
||||
_untreatedWounds = floor _x;
|
||||
_remainder = _x - (floor _x);
|
||||
|
||||
_nameEntry = switch (_counter) do {
|
||||
case 0: {localize "STR_ACE_UI_SMALL"};
|
||||
case 1: {localize "STR_ACE_UI_MEDIUM"};
|
||||
case 2: {localize "STR_ACE_UI_LARGE"};
|
||||
default {localize "STR_ACE_UI_SMALL"};
|
||||
};
|
||||
|
||||
if (_untreatedWounds > 1) then {
|
||||
lbadd[213,format[localize "STR_ACE_UI_MULTIPLE_BANDAGED_WOUNDS",_nameEntry,_untreatedWounds]];
|
||||
lbSetData [213, _numberOf, format["bandaged_wound_%1",_counter]];
|
||||
_numberOf = _numberOf + 1;
|
||||
} else {
|
||||
if (_untreatedWounds == 1) then {
|
||||
lbadd[213,format[localize "STR_ACE_UI_SINGLE_BANDAGED_WOUND",_nameEntry]];
|
||||
lbSetData [213, _numberOf, format["bandaged_wound_%1",_counter]];
|
||||
_numberOf = _numberOf + 1;
|
||||
};
|
||||
};
|
||||
|
||||
if (_remainder > 0) then {
|
||||
lbadd[213,format[localize "STR_ACE_UI_PARTIAL_BANDAGED_WOUND",_nameEntry]];
|
||||
lbSetData [213, _numberOf, format["bandaged_wound_%1",_counter]];
|
||||
_numberOf = _numberOf + 1;
|
||||
};
|
||||
};
|
||||
_counter = _counter + 1;
|
||||
}foreach _listOfBandagedWounds;
|
||||
|
||||
_counter = 0;
|
||||
{
|
||||
if (_x > 0) then {
|
||||
_nameEntry = switch (_counter) do {
|
||||
case 0: {localize "STR_ACE_UI_SMALL"};
|
||||
case 1: {localize "STR_ACE_UI_MEDIUM"};
|
||||
case 2: {localize "STR_ACE_UI_LARGE"};
|
||||
default {localize "STR_ACE_UI_SMALL"};
|
||||
};
|
||||
lbadd[213,format["%1 Fracture x%2",_nameEntry,_x]];
|
||||
lbSetData [213, _numberOf, ""];
|
||||
_numberOf = _numberOf + 1;
|
||||
};
|
||||
_counter = _counter + 1;
|
||||
}foreach _listOfFractures;
|
||||
|
1
addons/medical_menu/functions/script_component.hpp
Normal file
1
addons/medical_menu/functions/script_component.hpp
Normal file
@ -0,0 +1 @@
|
||||
#include "\z\ace\addons\medical\script_component.hpp"
|
12
addons/medical_menu/script_component.hpp
Normal file
12
addons/medical_menu/script_component.hpp
Normal file
@ -0,0 +1,12 @@
|
||||
#define COMPONENT medical_menu
|
||||
#include "\z\ace\addons\main\script_mod.hpp"
|
||||
|
||||
#ifdef DEBUG_ENABLED_MEDICAL_MENU
|
||||
#define DEBUG_MODE_FULL
|
||||
#endif
|
||||
|
||||
#ifdef DEBUG_SETTINGS_MEDICAL_MENU
|
||||
#define DEBUG_SETTINGS DEBUG_SETTINGS_MEDICAL_MENU
|
||||
#endif
|
||||
|
||||
#include "\z\ace\addons\main\script_macros.hpp"
|
361
addons/medical_menu/stringtable.xml
Normal file
361
addons/medical_menu/stringtable.xml
Normal file
@ -0,0 +1,361 @@
|
||||
<?xml version="1.0"encoding="UTF-8"?>
|
||||
<Project name="Combat Space Enhancement">
|
||||
<Package name="Combat Medical System">
|
||||
<Container name="UI">
|
||||
<Key ID="STR_ACE_UI_EXAMINE_TREATMENT">
|
||||
<Original>EXAMINE & TREATMENT</Original>
|
||||
<Russian>ОСМОТР И ЛЕЧЕНИЕ</Russian>
|
||||
<English>EXAMINE & TREATMENT</English>
|
||||
<Spanish>EXAMINAR & TRATAMIENTO</Spanish>
|
||||
<French>EXAMINER & TRAITEMENTS</French>
|
||||
<Polish>BADANIE & LECZENIE</Polish>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_UI_STATUS">
|
||||
<Original>STATUS</Original>
|
||||
<Russian>СОСТОЯНИЕ</Russian>
|
||||
<English>STATUS</English>
|
||||
<Spanish>ESTADO</Spanish>
|
||||
<French>ÉTATS</French>
|
||||
<Polish>STATUS</Polish>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_UI_OVERVIEW">
|
||||
<Original>OVERVIEW</Original>
|
||||
<Russian>ОБЩАЯ ИНФОРМАЦИЯ</Russian>
|
||||
<English>OVERVIEW</English>
|
||||
<Spanish>DESCRIPCIÓN</Spanish>
|
||||
<French>DESCRIPTION</French>
|
||||
<Polish>OPIS</Polish>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_UI_ACTIVITY_LOG">
|
||||
<Original>ACTIVITY LOG</Original>
|
||||
<Russian>ПРОВЕДЕННЫЕ МАНИПУЛЯЦИИ</Russian>
|
||||
<English>ACTIVITY LOG</English>
|
||||
<Spanish>REGISTRO DE ACTIVIDAD</Spanish>
|
||||
<French>REGISTRE DES SOINS</French>
|
||||
<Polish>LOGI AKTYWNOŚCI</Polish>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_UI_QUICK_VIEW">
|
||||
<Original>QUICK VIEW</Original>
|
||||
<Russian>БЫСТРЫЙ ОСМОТР</Russian>
|
||||
<English>QUICK VIEW</English>
|
||||
<Spanish>VISTA RÁPIDA</Spanish>
|
||||
<French>VUE RAPIDE</French>
|
||||
<Polish>SZYBKI PODGLĄD</Polish>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_UI_TRIAGE_NONE">
|
||||
<Original>None</Original>
|
||||
<Russian>Не ранен</Russian>
|
||||
<Spanish>Ninguno</Spanish>
|
||||
<French>Aucun</French>
|
||||
<Polish>Brak</Polish>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_UI_TRIAGE_MINOR">
|
||||
<Original>Minor</Original>
|
||||
<Russian>Несрочная помощь</Russian>
|
||||
<Spanish>Menor</Spanish>
|
||||
<French>Mineur</French>
|
||||
<Polish>Normalny</Polish>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_UI_TRIAGE_DELAYED">
|
||||
<Original>Delayed</Original>
|
||||
<Russian>Срочная помощь</Russian>
|
||||
<Spanish>Diferido</Spanish>
|
||||
<French>Urgent</French>
|
||||
<Polish>Opóźniony</Polish>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_UI_TRIAGE_IMMEDIATE">
|
||||
<Original>Immediate</Original>
|
||||
<Russian>Неотложная помощь</Russian>
|
||||
<Spanish>Inmediato</Spanish>
|
||||
<French>Immédiat</French>
|
||||
<Polish>Natychmiastowy</Polish>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_UI_TRIAGE_DECEASED">
|
||||
<Original>Deceased</Original>
|
||||
<Russian>Морг</Russian>
|
||||
<Spanish>Fallecido</Spanish>
|
||||
<French>Décédé</French>
|
||||
<Polish>Nie żyje</Polish>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_UI_VIEW_TRIAGE_CARD">
|
||||
<Original>View triage Card</Original>
|
||||
<Russian>Смотреть первичную карточку</Russian>
|
||||
<Spanish>Ver Triage</Spanish>
|
||||
<French>Voir Carte de Triage</French>
|
||||
<Polish>Pokaż kartę segregacyjną</Polish>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_UI_EXAMINE_PATIENT">
|
||||
<Original>Examine Patient</Original>
|
||||
<Russian>Осмотреть пациента</Russian>
|
||||
<Spanish>Examinar Paciente</Spanish>
|
||||
<French>Examiner Patient</French>
|
||||
<Polish>Zbadaj pacjenta</Polish>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_UI_BANDAGE_FRACTURES">
|
||||
<Original>Bandage / Fractures</Original>
|
||||
<Russian>Раны / переломы</Russian>
|
||||
<Spanish>Vendajes/Fracturas </Spanish>
|
||||
<French>Bandages / Fractures</French>
|
||||
<Polish>Bandaże / Złamania</Polish>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_UI_MEDICATION">
|
||||
<Original>Medication</Original>
|
||||
<Russian>Медикаменты</Russian>
|
||||
<Spanish>Medicación</Spanish>
|
||||
<French>Médications</French>
|
||||
<Polish>Leki</Polish>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_UI_AIRWAY_MANAGEMENT">
|
||||
<Original>Airway Management</Original>
|
||||
<Russian>Дыхательные пути</Russian>
|
||||
<Spanish>Vías Aéreas</Spanish>
|
||||
<French>Gestion Des Voie REspiratoire</French>
|
||||
<Polish>Drogi oddechowe</Polish>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_UI_ADVANCED_TREATMENT">
|
||||
<Original>Advanced Treatments</Original>
|
||||
<Russian>Специальная медпомощь</Russian>
|
||||
<Spanish>Tratamientos Avanzados</Spanish>
|
||||
<French>Traitement Avancé</French>
|
||||
<Polish>Zaawansowane zabiegi</Polish>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_UI_DRAG_CARRY">
|
||||
<Original>Drag/Carry</Original>
|
||||
<Russian>Тащить/нести</Russian>
|
||||
<Spanish>Arrastrar/Cargar</Spanish>
|
||||
<French>Glisser/Porter</French>
|
||||
<Polish>Ciągnij/Nieś</Polish>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_UI_TOGGLE_SELF">
|
||||
<Original>Toggle (Self)</Original>
|
||||
<Russian>Лечить себя/другого раненого</Russian>
|
||||
<French>Activer (sois)</French>
|
||||
<Polish>Przełącz (na siebie)</Polish>
|
||||
<Spanish>Alternar</Spanish>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_UI_SELECT_TRIAGE_STATUS">
|
||||
<Original>Select triage status</Original>
|
||||
<Russian>Сортировка</Russian>
|
||||
<Spanish>Seleccionar estado de Triage</Spanish>
|
||||
<French>Selectioner l'état de Triage</French>
|
||||
<Polish>Wybierz priorytet</Polish>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_UI_SELECT_HEAD">
|
||||
<Original>Select Head</Original>
|
||||
<Russian>Выбрать голову</Russian>
|
||||
<Spanish>Seleccionar Cabeza</Spanish>
|
||||
<French>Selectioner Tête</French>
|
||||
<Polish>Wybierz głowę</Polish>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_UI_SELECT_TORSO">
|
||||
<Original>Select Torso</Original>
|
||||
<Russian>Выбрать торс</Russian>
|
||||
<Spanish>Seleccionar Torso</Spanish>
|
||||
<French>Selectioner Torse</French>
|
||||
<Polish>Wybierz tors</Polish>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_UI_SELECT_ARM_L">
|
||||
<Original>Select Left Arm</Original>
|
||||
<Russian>Выбрать левую руку</Russian>
|
||||
<Spanish>Seleccionar Brazo Izquierdo</Spanish>
|
||||
<French>Selectioner Bras Gauche</French>
|
||||
<Polish>Wybierz lewą rękę</Polish>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_UI_SELECT_ARM_R">
|
||||
<Original>Select Right Arm</Original>
|
||||
<Russian>Выбрать правую руку</Russian>
|
||||
<Spanish>Seleccionar Brazo Derecho</Spanish>
|
||||
<French>Selectioner Bras Droit</French>
|
||||
<Polish>Wybierz prawą rękę</Polish>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_UI_SELECT_LEG_L">
|
||||
<Original>Select Left Leg</Original>
|
||||
<Russian>Выбрать левую ногу</Russian>
|
||||
<Spanish>Seleccionar Pierna Izquierda</Spanish>
|
||||
<French>Selectioner Jambe Gauche</French>
|
||||
<Polish>Wybierz lewą nogę</Polish>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_UI_SELECT_LEG_R">
|
||||
<Original>Select Right Leg</Original>
|
||||
<Russian>Выбрать правую ногу</Russian>
|
||||
<Spanish>Seleccionar Pierna Derecha</Spanish>
|
||||
<French>Selectioner Jambe Droite</French>
|
||||
<Polish>Wybierz prawą nogę</Polish>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_UI_HEAD">
|
||||
<Original>Head</Original>
|
||||
<Russian>Голова</Russian>
|
||||
<Spanish>Cabeza</Spanish>
|
||||
<French>Tête</French>
|
||||
<Polish>Głowa</Polish>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_UI_TORSO">
|
||||
<Original>Torso</Original>
|
||||
<Russian>Торс</Russian>
|
||||
<French>Torse</French>
|
||||
<Polish>Tors</Polish>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_UI_ARM_L">
|
||||
<Original>Left Arm</Original>
|
||||
<Russian>Левая рука</Russian>
|
||||
<Spanish>Brazo Izquierdo</Spanish>
|
||||
<French>Bras Gauche</French>
|
||||
<Polish>Lewa ręka</Polish>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_UI_ARM_R">
|
||||
<Original>Right Arm</Original>
|
||||
<Russian>Правая рука</Russian>
|
||||
<Spanish>Brazo Derecho</Spanish>
|
||||
<French>Bras Droit</French>
|
||||
<Polish>Prawa ręka</Polish>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_UI_LEG_L">
|
||||
<Original>Left Leg</Original>
|
||||
<Russian>Левая нога</Russian>
|
||||
<Spanish>Pierna Izquierda</Spanish>
|
||||
<French>Jambe Gauche</French>
|
||||
<Polish>Lewa noga</Polish>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_UI_LEG_R">
|
||||
<Original>Right Leg</Original>
|
||||
<Russian>Правая нога</Russian>
|
||||
<Spanish>Pierna Derecha</Spanish>
|
||||
<French>Jambe Droite</French>
|
||||
<Polish>Prawa noga</Polish>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_UI_SELECTED_BODY_PART">
|
||||
<Original>Body Part: %1</Original>
|
||||
<Russian>Часть тела: %1</Russian>
|
||||
<Spanish>Parte del cuerpo: %1</Spanish>
|
||||
<French>Partie du corps: %1</French>
|
||||
<Polish>Część ciała: %1</Polish>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_UI_SMALL">
|
||||
<Original>Small</Original>
|
||||
<Russian>малого размера</Russian>
|
||||
<Spanish>Pequeña</Spanish>
|
||||
<French>Petite</French>
|
||||
<Polish>małym</Polish>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_UI_MEDIUM">
|
||||
<Original>Medium</Original>
|
||||
<Russian>среднего размера</Russian>
|
||||
<Spanish>Mediana</Spanish>
|
||||
<French>moyenne</French>
|
||||
<Polish>średnim</Polish>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_UI_LARGE">
|
||||
<Original>Large</Original>
|
||||
<Russian>большого размера</Russian>
|
||||
<Spanish>Grande</Spanish>
|
||||
<French>Grande</French>
|
||||
<Polish>dużym</Polish>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_UI_MULTIPLE_OPEN_WOUNDS">
|
||||
<Original>There are %2 %1 Open Wounds</Original>
|
||||
<Russian>%2 открытые раны %1</Russian>
|
||||
<Spanish>Hay %2 Heridas Abiertas %1</Spanish>
|
||||
<French>Il y a %2 %1 Blessure Ouverte</French>
|
||||
<Polish>Widzisz otwarte rany w ilości %2 o %1 rozmiarze</Polish>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_UI_SINGLE_OPEN_WOUND">
|
||||
<Original>There is 1 %1 Open Wound</Original>
|
||||
<Russian>Открытая рана %1</Russian>
|
||||
<Spanish>Hay 1 Herida Abierta %1</Spanish>
|
||||
<French>Il y a 1 blessure ouverte %1</French>
|
||||
<Polish>Widzisz 1 otwartą ranę o %1 rozmiarze</Polish>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_UI_PARTIAL_OPEN_WOUND">
|
||||
<Original>There is a partial %1 Open wound</Original>
|
||||
<Russian>Частично открытая рана %1</Russian>
|
||||
<Spanish>Hay una herida parcial abierta %1</Spanish>
|
||||
<French>Il y a une Blessure Patiellement Ouverte %1</French>
|
||||
<Polish>Widzisz częściowo otwartą ranę o %1 rozmiarze</Polish>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_UI_MULTIPLE_BANDAGED_WOUNDS">
|
||||
<Original>There are %2 %1 Bandaged Wounds</Original>
|
||||
<Russian>%2 перевязанные раны %1</Russian>
|
||||
<Spanish>Hay %2 Heridas %1 Vendadas</Spanish>
|
||||
<French>Il y a %2 %1 Blessure Bandée</French>
|
||||
<Polish>Widzisz %2 zabandażowanych ran o %1 rozmiarze</Polish>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_UI_SINGLE_BANDAGED_WOUND">
|
||||
<Original>There is 1 %1 Bandaged Wound</Original>
|
||||
<Russian>1 перевязанная рана %1</Russian>
|
||||
<Spanish>Hay 1 Herida Vendada %1</Spanish>
|
||||
<French>Il y a 1 %1 Blessure Bandée</French>
|
||||
<Polish>Widzisz 1 zabandażowaną ranę o %1 rozmiarze</Polish>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_UI_PARTIAL_BANDAGED_WOUND">
|
||||
<Original>There is a partial %1 Bandaged wound</Original>
|
||||
<Russian>Частично перевязанная рана %1</Russian>
|
||||
<Spanish>Hay una Herida parcial %1 Vendada</Spanish>
|
||||
<French>Il y a %1 Blessure Partielment Bandée</French>
|
||||
<Polish>Widzisz 1 częściowo zabandażowaną ranę o %1 rozmiarze</Polish>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_UI_NORMAL_BREATHING">
|
||||
<Original>Normal breathing</Original>
|
||||
<Russian>Дыхание в норме</Russian>
|
||||
<Spanish>Respiración normal</Spanish>
|
||||
<French>Respiration Normale</French>
|
||||
<Polish>Normalny oddech</Polish>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_UI_NO_BREATHING">
|
||||
<Original>No breathing</Original>
|
||||
<Russian>Дыхания нет</Russian>
|
||||
<Spanish>No respira</Spanish>
|
||||
<French>Apnée</French>
|
||||
<Polish>Brak oddechu</Polish>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_UI_DIFFICULT_BREATHING">
|
||||
<Original>Difficult breathing</Original>
|
||||
<Russian>Дыхание затруднено</Russian>
|
||||
<Spanish>Dificultad para respirar</Spanish>
|
||||
<French>Difficultée Respiratoire</French>
|
||||
<Polish>Trudności z oddychaniem</Polish>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_UI_ALMOST_NO_BREATHING">
|
||||
<Original>Almost no breathing</Original>
|
||||
<Russian>Дыхания почти нет</Russian>
|
||||
<Spanish>Casi sin respirar</Spanish>
|
||||
<French>Respiration Faible</French>
|
||||
<Polish>Prawie brak oddechu</Polish>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_UI_STATUS_BLEEDING">
|
||||
<Original>Bleeding</Original>
|
||||
<Russian>Кровотечение</Russian>
|
||||
<Spanish>Sangrando</Spanish>
|
||||
<French>Seignement</French>
|
||||
<Polish>Krwawienie zewnętrzne</Polish>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_UI_STATUS_PAIN">
|
||||
<Original>in Pain</Original>
|
||||
<Russian>Испытывает боль</Russian>
|
||||
<Spanish>Con Dolor</Spanish>
|
||||
<French>A De La Douleur</French>
|
||||
<Polish>W bólu</Polish>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_UI_STATUS_LOST_BLOOD">
|
||||
<Original>Lost a lot of Blood</Original>
|
||||
<Russian>Большая кровопотеря</Russian>
|
||||
<Spanish>Mucha Sangre perdida</Spanish>
|
||||
<French>A Perdu Bcp de Sang</French>
|
||||
<Polish>Stracił dużo krwi</Polish>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_UI_STATUS_TOURNIQUET_APPLIED">
|
||||
<Original>Tourniquet [CAT]</Original>
|
||||
<Russian>Жгут</Russian>
|
||||
<Spanish>Torniquete [CAT]</Spanish>
|
||||
<French>Garot [CAT]</French>
|
||||
<Polish>Opaska uciskowa [CAT]</Polish>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_UI_STATUS_NPA_APPLIED">
|
||||
<Original>Nasopharyngeal Tube [NPA]</Original>
|
||||
<Russian>Назотрахеальная трубка</Russian>
|
||||
<Spanish>Torniquete [CAT]</Spanish>
|
||||
<French>Canule Naseaupharyngée [NPA]</French>
|
||||
<Polish>Rurka nosowo-gardłowa [NPA]</Polish>
|
||||
</Key>
|
||||
</Container>
|
||||
</Package>
|
||||
</Project>
|
570
addons/medical_menu/ui/menu.hpp
Normal file
570
addons/medical_menu/ui/menu.hpp
Normal file
@ -0,0 +1,570 @@
|
||||
#include "\z\ace\addons\main\define.hpp"
|
||||
|
||||
class GVAR(medicalMenu) {
|
||||
idd = 314412;
|
||||
movingEnable = true;
|
||||
onLoad = QUOTE(uiNamespace setVariable [ARR_2(QUOTE(QGVAR(medicalMenu)), _this select 0)]; [ARR_2(QUOTE(QGVAR(id)), true)] call EFUNC(common,blurScreen); [_this select 0] call FUNC(onMenuOpen););
|
||||
onUnload = QUOTE([ARR_2(QUOTE(QGVAR(id)), false)] call EFUNC(common,blurScreen); [ARR_2(QUOTE(QGVAR(onMenuOpen)), 'onEachFrame')] call BIS_fnc_removeStackedEventHandler;);
|
||||
class controlsBackground {
|
||||
class HeaderBackground: ACE_gui_backgroundBase{
|
||||
idc = -1;
|
||||
SizeEx = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
|
||||
x = "1 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)";
|
||||
y = "1 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + (safezoneY + (safezoneH - (((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
|
||||
w = "38 * (((safezoneW / safezoneH) min 1.2) / 40)";
|
||||
h = "1 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
|
||||
text = "#(argb,8,8,3)color(0,0,0,0)";
|
||||
};
|
||||
class CenterBackground: HeaderBackground {
|
||||
y = "2.1 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + (safezoneY + (safezoneH - (((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
|
||||
h = "16 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
|
||||
text = "#(argb,8,8,3)color(0,0,0,0.8)";
|
||||
colorText[] = {0, 0, 0, "(profilenamespace getvariable ['GUI_BCG_RGB_A',0.9])"};
|
||||
colorBackground[] = {0,0,0,"(profilenamespace getvariable ['GUI_BCG_RGB_A',0.9])"};
|
||||
};
|
||||
class BottomBackground: CenterBackground {
|
||||
y = "(18.6 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + (safezoneY + (safezoneH - (((safezoneW / safezoneH) min 1.2) / 1.2))/2))";
|
||||
h = "9 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
|
||||
};
|
||||
};
|
||||
|
||||
class controls {
|
||||
class HeaderName {
|
||||
idc = 1;
|
||||
type = CT_STATIC;
|
||||
x = "1 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)";
|
||||
y = "1 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + (safezoneY + (safezoneH - (((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
|
||||
w = "38 * (((safezoneW / safezoneH) min 1.2) / 40)";
|
||||
h = "1 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
|
||||
style = ST_LEFT + ST_SHADOW;
|
||||
font = "PuristaMedium";
|
||||
SizeEx = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
|
||||
colorText[] = {0.95, 0.95, 0.95, 0.75};
|
||||
colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.69])","(profilenamespace getvariable ['GUI_BCG_RGB_G',0.75])","(profilenamespace getvariable ['GUI_BCG_RGB_B',0.5])", "(profilenamespace getvariable ['GUI_BCG_RGB_A',0.9])"};
|
||||
text = "";
|
||||
};
|
||||
|
||||
class IconsBackGroundBar: ACE_gui_backgroundBase{
|
||||
idc = -1;
|
||||
SizeEx = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
|
||||
x = "1 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)";
|
||||
y = "2.1 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + (safezoneY + (safezoneH - (((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
|
||||
w = "38 * (((safezoneW / safezoneH) min 1.2) / 40)";
|
||||
h = "3.1 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
|
||||
text = QUOTE(PATHTOF(data\background_img.paa));
|
||||
colorText[] = {1, 1, 1, 0.0};
|
||||
};
|
||||
class CatagoryLeft: HeaderName {
|
||||
x = "1 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)";
|
||||
y = "2.5 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + (safezoneY + (safezoneH - (((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
|
||||
w = "12.33 * (((safezoneW / safezoneH) min 1.2) / 40)";
|
||||
h = "1 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
|
||||
style = ST_CENTER;
|
||||
colorText[] = {1, 1, 1.0, 0.9};
|
||||
colorBackground[] = {0,0,0,0};
|
||||
SizeEx = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1.2)";
|
||||
text = $STR_ACE_UI_EXAMINE_TREATMENT;
|
||||
};
|
||||
class CatagoryCenter: CatagoryLeft {
|
||||
x = "13.33 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)";
|
||||
text = $STR_ACE_UI_STATUS;
|
||||
};
|
||||
class CatagoryRight: CatagoryCenter{
|
||||
x = "25.66 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)";
|
||||
text = $STR_ACE_UI_OVERVIEW;
|
||||
};
|
||||
class Line: ACE_gui_backgroundBase {
|
||||
idc = -1;
|
||||
SizeEx = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
|
||||
x = "1.5 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)";
|
||||
y = "3.7 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + (safezoneY + (safezoneH - (((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
|
||||
w = "37 * (((safezoneW / safezoneH) min 1.2) / 40)";
|
||||
h = "0.03 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
|
||||
text = "#(argb,8,8,3)color(1,1,1,0.5)";
|
||||
};
|
||||
|
||||
class iconImg1: ACE_gui_backgroundBase {
|
||||
idc = 111;
|
||||
x = "1.5 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)";
|
||||
y = "3.73 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + (safezoneY + (safezoneH - (((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
|
||||
w = "1.5 * (((safezoneW / safezoneH) min 1.2) / 40)";
|
||||
h = "1.5 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
|
||||
size = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1.4)";
|
||||
SizeEx = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 0.1)";
|
||||
colorBackground[] = {0,0,0,1};
|
||||
colorPicture[] = {1,1,1,1};
|
||||
colorText[] = {1,1,1,1};
|
||||
text = QUOTE(PATHTOF(data\icons\triage_card_small.paa));
|
||||
};
|
||||
class iconImg2: iconImg1 {
|
||||
idc = 112;
|
||||
x = "3 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)";
|
||||
text = QUOTE(PATHTOF(data\icons\examine_patient_small.paa));
|
||||
};
|
||||
class iconImg3: iconImg1 {
|
||||
idc = 113;
|
||||
x = "4.5 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)";
|
||||
text = QUOTE(PATHTOF(data\icons\bandage_fracture_small.paa));
|
||||
};
|
||||
class iconImg4: iconImg1 {
|
||||
idc = 114;
|
||||
x = "6 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)";
|
||||
text = QUOTE(PATHTOF(data\icons\medication_small.paa));
|
||||
};
|
||||
class iconImg5: iconImg1 {
|
||||
idc = 115;
|
||||
x = "7.5 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)";
|
||||
text = QUOTE(PATHTOF(data\icons\airway_management_small.paa));
|
||||
};
|
||||
class iconImg6: iconImg1 {
|
||||
idc = 116;
|
||||
x = "9 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)";
|
||||
text = QUOTE(PATHTOF(data\icons\advanced_treatment_small.paa));
|
||||
};
|
||||
class iconImg7: iconImg1 {
|
||||
idc = 117;
|
||||
x = "10.5 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)";
|
||||
text = QUOTE(PATHTOF(data\icons\icon_carry.paa));
|
||||
};
|
||||
class iconImg8: iconImg1 {
|
||||
idc = 118;
|
||||
x = "12 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)";
|
||||
text = QUOTE(PATHTOF(data\icons\toggle_self_small.paa));
|
||||
};
|
||||
|
||||
|
||||
class BtnIconLeft1: ACE_gui_buttonBase {
|
||||
idc = 11;
|
||||
x = "1.5 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)";
|
||||
y = "3.73 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + (safezoneY + (safezoneH - (((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
|
||||
w = "1.5 * (((safezoneW / safezoneH) min 1.2) / 40)";
|
||||
h = "1.5 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
|
||||
size = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1.4)";
|
||||
SizeEx = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 0.1)";
|
||||
animTextureNormal = "#(argb,8,8,3)color(0,0,0,0.0)";
|
||||
animTextureDisabled = "#(argb,8,8,3)color(0,0,0,0.0)";
|
||||
animTextureOver = "#(argb,8,8,3)color(0,0,0,0.0)";
|
||||
animTextureFocused = "#(argb,8,8,3)color(0,0,0,0.0)";
|
||||
animTexturePressed = "#(argb,8,8,3)color(0,0,0,0.0)";
|
||||
animTextureDefault = "#(argb,8,8,3)color(0,0,0,0.0)";
|
||||
action = QUOTE(['triage'] call FUNC(handleUI_DisplayOptions););
|
||||
};
|
||||
class BtnIconLeft2: BtnIconLeft1 {
|
||||
idc = 12;
|
||||
x = "3 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)";
|
||||
action = QUOTE(['examine'] call FUNC(handleUI_DisplayOptions););
|
||||
};
|
||||
class BtnIconLeft3: BtnIconLeft1 {
|
||||
idc = 13;
|
||||
x = "4.5 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)";
|
||||
action = QUOTE(['bandage'] call FUNC(handleUI_DisplayOptions););
|
||||
};
|
||||
class BtnIconLeft4: BtnIconLeft1 {
|
||||
idc = 14;
|
||||
x = "6 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)";
|
||||
action = QUOTE(['medication'] call FUNC(handleUI_DisplayOptions););
|
||||
};
|
||||
class BtnIconLeft5: BtnIconLeft1 {
|
||||
idc = 15;
|
||||
x = "7.5 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)";
|
||||
action = QUOTE(['airway'] call FUNC(handleUI_DisplayOptions););
|
||||
};
|
||||
class BtnIconLeft6: BtnIconLeft1 {
|
||||
idc = 16;
|
||||
x = "9 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)";
|
||||
action = QUOTE(['advanced'] call FUNC(handleUI_DisplayOptions););
|
||||
};
|
||||
class BtnIconLeft7: BtnIconLeft1 {
|
||||
idc = 17;
|
||||
x = "10.5 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)";
|
||||
action = QUOTE(['drag'] call FUNC(handleUI_DisplayOptions););
|
||||
};
|
||||
class BtnIconLeft8: BtnIconLeft1 {
|
||||
idc = 18;
|
||||
x = "12 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)";
|
||||
action = QUOTE(['toggle'] call FUNC(handleUI_DisplayOptions););
|
||||
};
|
||||
|
||||
class TriageCardList: ACE_gui_listBoxBase {
|
||||
idc = 212;
|
||||
x = "1.5 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)";
|
||||
y = "5.4 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + (safezoneY + (safezoneH - (((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
|
||||
w = "12 * (((safezoneW / safezoneH) min 1.2) / 40)";
|
||||
h = "10 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
|
||||
SizeEx = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 0.7)";
|
||||
rowHeight = 0.03;
|
||||
colorBackground[] = {0, 0, 0, 0.2};
|
||||
colorText[] = {1,1, 1, 1.0};
|
||||
colorScrollbar[] = {0.95, 0.95, 0.95, 1};
|
||||
colorSelect[] = {0.95, 0.95, 0.95, 1};
|
||||
colorSelect2[] = {0.95, 0.95, 0.95, 1};
|
||||
colorSelectBackground[] = {0, 0, 0, 0.0};
|
||||
colorSelectBackground2[] = {0.0, 0.0, 0.0, 0.0};
|
||||
};
|
||||
|
||||
// Left side
|
||||
class BtnMenu1: BtnIconLeft1 {
|
||||
idc = 20;
|
||||
y = "5.4 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + (safezoneY + (safezoneH - (((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
|
||||
w = "12 * (((safezoneW / safezoneH) min 1.2) / 40)";
|
||||
h = "1 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
|
||||
text = "";
|
||||
size = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 0.9)";
|
||||
animTextureNormal = "#(argb,8,8,3)color(0,0,0,0.8)";
|
||||
animTextureDisabled = "#(argb,8,8,3)color(0,0,0,0.5)";
|
||||
animTextureOver = "#(argb,8,8,3)color(1,1,1,1)";
|
||||
animTextureFocused = "#(argb,8,8,3)color(1,1,1,1)";
|
||||
animTexturePressed = "#(argb,8,8,3)color(1,1,1,1)";
|
||||
animTextureDefault = "#(argb,8,8,3)color(1,1,1,1)";
|
||||
color[] = {1, 1, 1, 1};
|
||||
color2[] = {0,0,0, 1};
|
||||
colorBackgroundFocused[] = {1,1,1,1};
|
||||
colorBackground[] = {1,1,1,1};
|
||||
colorbackground2[] = {1,1,1,1};
|
||||
colorDisabled[] = {0.5,0.5,0.5,0.8};
|
||||
colorFocused[] = {0,0,0,1};
|
||||
periodFocus = 1;
|
||||
periodOver = 1;
|
||||
action = "";
|
||||
};
|
||||
class BtnMenu2: BtnMenu1 {
|
||||
idc = 21;
|
||||
y = "6.5 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + (safezoneY + (safezoneH - (((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
|
||||
text = "";
|
||||
};
|
||||
class BtnMenu3: BtnMenu1 {
|
||||
idc = 22;
|
||||
y = "7.6 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + (safezoneY + (safezoneH - (((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
|
||||
text = "";
|
||||
};
|
||||
class BtnMenu4: BtnMenu1 {
|
||||
idc = 23;
|
||||
y = "8.7 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + (safezoneY + (safezoneH - (((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
|
||||
text ="";
|
||||
};
|
||||
class BtnMenu5: BtnMenu1 {
|
||||
idc = 24;
|
||||
y = "9.8 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + (safezoneY + (safezoneH - (((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
|
||||
text = "";
|
||||
};
|
||||
class BtnMenu6: BtnMenu1 {
|
||||
idc = 25;
|
||||
y = "10.9 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + (safezoneY + (safezoneH - (((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
|
||||
text = "";
|
||||
};
|
||||
class BtnMenu7: BtnMenu1 {
|
||||
idc = 26;
|
||||
y = "12 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + (safezoneY + (safezoneH - (((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
|
||||
text = "";
|
||||
};
|
||||
class BtnMenu8: BtnMenu1 {
|
||||
idc = 27;
|
||||
y = "13.1 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + (safezoneY + (safezoneH - (((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
|
||||
text = "";
|
||||
};
|
||||
// center
|
||||
|
||||
class bodyImgBackground: ACE_gui_backgroundBase {
|
||||
idc = -1;
|
||||
x = "13.33 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)";
|
||||
y = "3.73 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + (safezoneY + (safezoneH - (((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
|
||||
w = "12.33 * (((safezoneW / safezoneH) min 1.2) / 40)";
|
||||
h = "12.33 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
|
||||
SizeEx = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1.4)";
|
||||
colorBackground[] = {1,1,1,1};
|
||||
colorPicture[] = {1,1,1,1};
|
||||
colorText[] = {1,1,1,1};
|
||||
text = QUOTE(PATHTOF(data\body_background.paa));
|
||||
};
|
||||
class bodyImgHead: bodyImgBackground {
|
||||
idc = 50;
|
||||
x = "13.33 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)";
|
||||
y = "3.73 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + (safezoneY + (safezoneH - (((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
|
||||
w = "12.33 * (((safezoneW / safezoneH) min 1.2) / 40)";
|
||||
h = "12.33 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
|
||||
SizeEx = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1.4)";
|
||||
colorBackground[] = {1,1,1,1};
|
||||
colorPicture[] = {1,1,1,1};
|
||||
colorText[] = {1,1,1,1};
|
||||
text = QUOTE(PATHTOF(data\body_head.paa));
|
||||
};
|
||||
|
||||
class bodyImgTorso: bodyImgHead {
|
||||
idc = 51;
|
||||
text = QUOTE(PATHTOF(data\body_torso.paa));
|
||||
};
|
||||
class bodyImgArms_l: bodyImgHead {
|
||||
idc = 52;
|
||||
text = QUOTE(PATHTOF(data\body_arm_left.paa));
|
||||
};
|
||||
class bodyImgArms_r: bodyImgHead {
|
||||
idc = 53;
|
||||
text = QUOTE(PATHTOF(data\body_arm_right.paa));
|
||||
};
|
||||
class bodyImgLegs_l: bodyImgHead {
|
||||
idc = 54;
|
||||
text = QUOTE(PATHTOF(data\body_leg_left.paa));
|
||||
};
|
||||
class bodyImgLegs_r: bodyImgHead {
|
||||
idc = 55;
|
||||
text = QUOTE(PATHTOF(data\body_leg_right.paa));
|
||||
};
|
||||
|
||||
|
||||
class selectHead: ACE_gui_buttonBase {
|
||||
idc = 301;
|
||||
x = "18.8 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)";
|
||||
y = "3.9 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + (safezoneY + (safezoneH - (((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
|
||||
w = "1.4 * (((safezoneW / safezoneH) min 1.2) / 40)";
|
||||
h = "1.5 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
|
||||
size = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1.4)";
|
||||
SizeEx = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 0.1)";
|
||||
animTextureNormal = "#(argb,8,8,3)color(0,0,0,0.0)";
|
||||
animTextureDisabled = "#(argb,8,8,3)color(0,0,0,0.0)";
|
||||
animTextureOver = "#(argb,8,8,3)color(0,0,0,0.0)";
|
||||
animTextureFocused = "#(argb,8,8,3)color(0,0,0,0.0)";
|
||||
animTexturePressed = "#(argb,8,8,3)color(0,0,0,0.0)";
|
||||
animTextureDefault = "#(argb,8,8,3)color(0,0,0,0.0)";
|
||||
action = QUOTE(GVAR(selectedBodyPart) = 'head'; [GVAR(INTERACTION_TARGET)] call FUNC(updateUIInfo););
|
||||
};
|
||||
class selectTorso : selectHead {
|
||||
idc = 302;
|
||||
x = "18.4 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)";
|
||||
y = "5.4 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + (safezoneY + (safezoneH - (((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
|
||||
w = "2.2 * (((safezoneW / safezoneH) min 1.2) / 40)";
|
||||
h = "4.1 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
|
||||
action = QUOTE(GVAR(selectedBodyPart) = 'body'; [GVAR(INTERACTION_TARGET)] call FUNC(updateUIInfo););
|
||||
};
|
||||
class selectLeftArm: selectHead{
|
||||
idc = 303;
|
||||
x = "17.4 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)";
|
||||
y = "5.9 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + (safezoneY + (safezoneH - (((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
|
||||
w = "1.1 * (((safezoneW / safezoneH) min 1.2) / 40)";
|
||||
h = "4.3 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
|
||||
action = QUOTE(GVAR(selectedBodyPart) = 'hand_r'; [GVAR(INTERACTION_TARGET)] call FUNC(updateUIInfo););
|
||||
};
|
||||
class selectRightArm: selectLeftArm{
|
||||
idc = 304;
|
||||
x = "20.6 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)";
|
||||
action = QUOTE(GVAR(selectedBodyPart) = 'hand_l'; [GVAR(INTERACTION_TARGET)] call FUNC(updateUIInfo););
|
||||
};
|
||||
class selectLeftLeg :selectHead {
|
||||
idc = 305;
|
||||
x = "18.5 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)";
|
||||
y = "9.5 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + (safezoneY + (safezoneH - (((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
|
||||
w = "1.1 * (((safezoneW / safezoneH) min 1.2) / 40)";
|
||||
h = "6 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
|
||||
action = QUOTE(GVAR(selectedBodyPart) = 'leg_r'; [GVAR(INTERACTION_TARGET)] call FUNC(updateUIInfo););
|
||||
};
|
||||
class selectRightLeg :selectLeftLeg {
|
||||
idc = 306;
|
||||
x = "19.6 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)";
|
||||
action = QUOTE(GVAR(selectedBodyPart) = 'leg_l'; [GVAR(INTERACTION_TARGET)] call FUNC(updateUIInfo););
|
||||
};
|
||||
|
||||
|
||||
class TriageTextBottom: HeaderName {
|
||||
idc = 2000;
|
||||
x = "13.33 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)";
|
||||
y = "16.5 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + (safezoneY + (safezoneH - (((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
|
||||
w = "12.33 * (((safezoneW / safezoneH) min 1.2) / 40)";
|
||||
h = "1.1 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
|
||||
style = ST_CENTER;
|
||||
colorText[] = {1, 1, 1.0, 1};
|
||||
colorBackground[] = {0,0.0,0.0,0.7};
|
||||
SizeEx = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
|
||||
text = "";
|
||||
};
|
||||
|
||||
// Right side
|
||||
class InjuryList: ACE_gui_listBoxBase {
|
||||
idc = 213;
|
||||
x = "25.66 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)";
|
||||
y = "5.5 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + (safezoneY + (safezoneH - (((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
|
||||
w = "12.33 * (((safezoneW / safezoneH) min 1.2) / 40)";
|
||||
h = "10 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
|
||||
SizeEx = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 0.7)";
|
||||
rowHeight = 0.03;
|
||||
colorBackground[] = {0, 0, 0, 0.2};
|
||||
colorText[] = {1,1, 1, 1.0};
|
||||
colorScrollbar[] = {0.95, 0.95, 0.95, 1};
|
||||
colorSelect[] = {0.95, 0.95, 0.95, 1};
|
||||
colorSelect2[] = {0.95, 0.95, 0.95, 1};
|
||||
colorSelectBackground[] = {0, 0, 0, 0.0};
|
||||
colorSelectBackground2[] = {0.0, 0.0, 0.0, 0.5};
|
||||
};
|
||||
// bottom
|
||||
|
||||
class ActivityLogHeader: CatagoryLeft {
|
||||
x = "1 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)";
|
||||
y = "18.6 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + (safezoneY + (safezoneH - (((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
|
||||
w = "18.5 * (((safezoneW / safezoneH) min 1.2) / 40)";
|
||||
h = "1 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
|
||||
style = ST_CENTER;
|
||||
colorText[] = {0.6, 0.7, 1.0, 1};
|
||||
colorBackground[] = {0,0,0,0};
|
||||
SizeEx = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
|
||||
text = $STR_ACE_UI_ACTIVITY_LOG;
|
||||
};
|
||||
class QuickViewHeader: ActivityLogHeader {
|
||||
x = "19.5 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)";
|
||||
text = $STR_ACE_UI_QUICK_VIEW;
|
||||
};
|
||||
class LineBottomHeaders: Line {
|
||||
y = "19.5 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + (safezoneY + (safezoneH - (((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
|
||||
};
|
||||
class ActivityLog: InjuryList {
|
||||
idc = 214;
|
||||
style = 16;
|
||||
type = 102;
|
||||
rows=1;
|
||||
colorBackground[] = {0, 0, 0, 1};
|
||||
x = "1.5 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)";
|
||||
y = "(19.5 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + (safezoneY + (safezoneH - (((safezoneW / safezoneH) min 1.2) / 1.2))/2))";
|
||||
w = "18.5 * (((safezoneW / safezoneH) min 1.2) / 40)";
|
||||
h = "6.5 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
|
||||
SizeEx = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 0.7)";
|
||||
colorSelectBackground[] = {0, 0, 0, 0.0};
|
||||
colorSelectBackground2[] = {0.0, 0.0, 0.0, 0.0};
|
||||
columns[] = {0.0, 0.08};
|
||||
canDrag=true;
|
||||
arrowEmpty = "#(argb,8,8,3)color(1,1,1,1)";
|
||||
arrowFull = "#(argb,8,8,3)color(1,1,1,1)";
|
||||
drawSideArrows = 0;
|
||||
idcLeft = -1;
|
||||
idcRight = -1;
|
||||
};
|
||||
|
||||
class QuikViewLog: InjuryList {
|
||||
idc = 215;
|
||||
style = 16;
|
||||
type = 102;
|
||||
rows=1;
|
||||
colorBackground[] = {0, 0, 0, 1};
|
||||
x = "21.5 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)";
|
||||
y = "(19.5 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + (safezoneY + (safezoneH - (((safezoneW / safezoneH) min 1.2) / 1.2))/2))";
|
||||
w = "18.5 * (((safezoneW / safezoneH) min 1.2) / 40)";
|
||||
h = "6.5 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
|
||||
SizeEx = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 0.7)";
|
||||
colorSelectBackground[] = {0, 0, 0, 0.0};
|
||||
colorSelectBackground2[] = {0.0, 0.0, 0.0, 0.0};
|
||||
|
||||
columns[] = {0.0, 0.08};
|
||||
canDrag=true;
|
||||
arrowEmpty = "#(argb,8,8,3)color(1,1,1,1)";
|
||||
arrowFull = "#(argb,8,8,3)color(1,1,1,1)";
|
||||
drawSideArrows = 0;
|
||||
idcLeft = -1;
|
||||
idcRight = -1;
|
||||
};
|
||||
|
||||
class selectTriageStatus: ACE_gui_buttonBase {
|
||||
idc = 2001;
|
||||
x = "13.33 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)";
|
||||
y = "16.5 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + (safezoneY + (safezoneH - (((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
|
||||
w = "12.33 * (((safezoneW / safezoneH) min 1.2) / 40)";
|
||||
h = "1.1 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
|
||||
style = ST_CENTER;
|
||||
size = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1.4)";
|
||||
SizeEx = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
|
||||
animTextureNormal = "#(argb,8,8,3)color(0,0,0,0.0)";
|
||||
animTextureDisabled = "#(argb,8,8,3)color(0,0,0,0.0)";
|
||||
animTextureOver = "#(argb,8,8,3)color(0,0,0,0.0)";
|
||||
animTextureFocused = "#(argb,8,8,3)color(0,0,0,0.0)";
|
||||
animTexturePressed = "#(argb,8,8,3)color(0,0,0,0.0)";
|
||||
animTextureDefault = "#(argb,8,8,3)color(0,0,0,0.0)";
|
||||
action = QUOTE([] call FUNC(handleUI_dropDownTriageCard););
|
||||
};
|
||||
class selectTriageStatusNone: selectTriageStatus {
|
||||
idc = 2002;
|
||||
x = 0;
|
||||
y = 0;
|
||||
w = 0;
|
||||
h = 0;
|
||||
text = $STR_ACE_UI_TRIAGE_NONE;
|
||||
style = ST_CENTER;
|
||||
size = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
|
||||
SizeEx = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
|
||||
animTextureNormal = "#(argb,8,8,3)color(0,0,0,0.9)";
|
||||
animTextureDisabled = "#(argb,8,8,3)color(0,0,0,0.9)";
|
||||
animTextureOver = "#(argb,8,8,3)color(0,0,0,0.9)";
|
||||
animTextureFocused = "#(argb,8,8,3)color(0,0,0,0.9)";
|
||||
animTexturePressed = "#(argb,8,8,3)color(0,0,0,0.9)";
|
||||
animTextureDefault = "#(argb,8,8,3)color(0,0,0,0.9)";
|
||||
action = QUOTE([] call FUNC(handleUI_dropDownTriageCard); [ARR_2(GVAR(INTERACTION_TARGET),0)] call FUNC(setTriageStatus););
|
||||
};
|
||||
|
||||
class selectTriageStatusMinor: selectTriageStatus {
|
||||
idc = 2003;
|
||||
x = 0;
|
||||
y = 0;
|
||||
w = 0;
|
||||
h = 0;
|
||||
text = $STR_ACE_UI_TRIAGE_MINOR;
|
||||
style = ST_CENTER;
|
||||
size = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
|
||||
SizeEx = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
|
||||
animTextureNormal = "#(argb,8,8,3)color(0,0.5,0,0.9)";
|
||||
animTextureDisabled = "#(argb,8,8,3)color(0,0.5,0,0.9)";
|
||||
animTextureOver = "#(argb,8,8,3)color(0,0.5,0,0.9)";
|
||||
animTextureFocused = "#(argb,8,8,3)color(0,0.5,0,0.9)";
|
||||
animTexturePressed = "#(argb,8,8,3)color(0,0.5,0,0.9)";
|
||||
animTextureDefault = "#(argb,8,8,3)color(0,0.5,0,0.9)";
|
||||
action = QUOTE([] call FUNC(handleUI_dropDownTriageCard); [ARR_2(GVAR(INTERACTION_TARGET),1)] call FUNC(setTriageStatus););
|
||||
};
|
||||
class selectTriageStatusDelayed: selectTriageStatus {
|
||||
idc = 2004;
|
||||
x = 0;
|
||||
y = 0;
|
||||
w = 0;
|
||||
h = 0;
|
||||
text = $STR_ACE_UI_TRIAGE_DELAYED;
|
||||
style = ST_CENTER;
|
||||
size = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
|
||||
SizeEx = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
|
||||
animTextureNormal = "#(argb,8,8,3)color(0.77,0.51,0.08,0.9)";
|
||||
animTextureDisabled = "#(argb,8,8,3)color(0.77,0.51,0.08,0.9)";
|
||||
animTextureOver = "#(argb,8,8,3)color(0.77,0.51,0.08,0.9)";
|
||||
animTextureFocused = "#(argb,8,8,3)color(0.77,0.51,0.08,0.9)";
|
||||
animTexturePressed = "#(argb,8,8,3)color(0.77,0.51,0.08,0.9)";
|
||||
animTextureDefault = "#(argb,8,8,3)color(0.77,0.51,0.08,0.9)";
|
||||
action = QUOTE([] call FUNC(handleUI_dropDownTriageCard); [ARR_2(GVAR(INTERACTION_TARGET),2)] call FUNC(setTriageStatus););
|
||||
};
|
||||
class selectTriageStatusImmediate: selectTriageStatus {
|
||||
idc = 2005;
|
||||
x = 0;
|
||||
y = 0;
|
||||
w = 0;
|
||||
h = 0;
|
||||
text = $STR_ACE_UI_TRIAGE_IMMEDIATE;
|
||||
style = ST_CENTER;
|
||||
size = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
|
||||
SizeEx = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
|
||||
animTextureNormal = "#(argb,8,8,3)color(1,0.2,0.2,0.9)";
|
||||
animTextureDisabled = "#(argb,8,8,3)color(1,0.2,0.2,0.9)";
|
||||
animTextureOver = "#(argb,8,8,3)color(1,0.2,0.2,0.9)";
|
||||
animTextureFocused = "#(argb,8,8,3)color(1,0.2,0.2,0.9)";
|
||||
animTexturePressed = "#(argb,8,8,3)color(1,0.2,0.2,0.9)";
|
||||
animTextureDefault = "#(argb,8,8,3)color(1,0.2,0.2,0.9)";
|
||||
action = QUOTE([] call FUNC(handleUI_dropDownTriageCard); [ARR_2(GVAR(INTERACTION_TARGET),3)] call FUNC(setTriageStatus););
|
||||
};
|
||||
class selectTriageStatusDeceased: selectTriageStatus {
|
||||
idc = 2006;
|
||||
x = 0;
|
||||
y = 0;
|
||||
w = 0;
|
||||
h = 0;
|
||||
text = $STR_ACE_UI_TRIAGE_DECEASED;
|
||||
style = ST_CENTER;
|
||||
size = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
|
||||
SizeEx = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
|
||||
animTextureNormal = "#(argb,8,8,3)color(0,0,0,0.9)";
|
||||
animTextureDisabled = "#(argb,8,8,3)color(0,0,0,0.9)";
|
||||
animTextureOver = "#(argb,8,8,3)color(0,0,0,0.9)";
|
||||
animTextureFocused = "#(argb,8,8,3)color(0,0,0,0.9)";
|
||||
animTexturePressed = "#(argb,8,8,3)color(0,0,0,0.9)";
|
||||
animTextureDefault = "#(argb,8,8,3)color(0,0,0,0.9)";
|
||||
action = QUOTE([] call FUNC(handleUI_dropDownTriageCard); [ARR_2(GVAR(INTERACTION_TARGET),4)] call FUNC(setTriageStatus););
|
||||
};
|
||||
};
|
||||
};
|
Loading…
Reference in New Issue
Block a user