From 876733e63b497180e2f3ab3c39347557e55ea6d0 Mon Sep 17 00:00:00 2001 From: MiszczuZPolski <71414303+MiszczuZPolski@users.noreply.github.com> Date: Tue, 10 Dec 2024 08:42:36 +0100 Subject: [PATCH] Zeus - Remove unnecessary zeus module (#652) **When merged this pull request will:** - ACE already has it and its done much better ### IMPORTANT - [Development Guidelines](https://ace3.acemod.org/wiki/development/) are read, understood and applied. - Title of this PR uses our standard template `Component - Add|Fix|Improve|Change|Make|Remove {changes}`. --- addons/zeus/CfgVehicles.hpp | 7 ---- addons/zeus/XEH_PREP.hpp | 1 - addons/zeus/config.cpp | 1 - addons/zeus/functions/fnc_openMedicalMenu.sqf | 36 ------------------- addons/zeus/stringtable.xml | 18 ---------- 5 files changed, 63 deletions(-) delete mode 100644 addons/zeus/functions/fnc_openMedicalMenu.sqf diff --git a/addons/zeus/CfgVehicles.hpp b/addons/zeus/CfgVehicles.hpp index 30fb14e5b..a6806a334 100644 --- a/addons/zeus/CfgVehicles.hpp +++ b/addons/zeus/CfgVehicles.hpp @@ -34,13 +34,6 @@ class CfgVehicles { icon = QACEPATHTOF(medical_gui,data\categories\advanced_treatment.paa); }; - class GVAR(checkmedical_module): GVAR(baseModule) { - curatorCanAttach = 1; - displayName = CSTRING(checkmedical_Module_displayname); - function = QFUNC(openMedicalMenu); - icon = QACEPATHTOF(medical_gui,data\categories\triage_card.paa); - }; - class GVAR(toggleAIDeath_module): GVAR(baseModule) { author = "Blue"; curatorCanAttach = 1; diff --git a/addons/zeus/XEH_PREP.hpp b/addons/zeus/XEH_PREP.hpp index 5ea337ef2..7184676f9 100644 --- a/addons/zeus/XEH_PREP.hpp +++ b/addons/zeus/XEH_PREP.hpp @@ -1,5 +1,4 @@ PREP(emptyFunction); -PREP(openMedicalMenu); PREP(showMessage); PREP(toggleAIDeathModule); PREP(ui_changeBloodType); diff --git a/addons/zeus/config.cpp b/addons/zeus/config.cpp index 5d49258db..ee24a8099 100644 --- a/addons/zeus/config.cpp +++ b/addons/zeus/config.cpp @@ -8,7 +8,6 @@ class CfgPatches { QGVAR(manageAirway_module), QGVAR(bloodType_module), QGVAR(cardiacState_module), - QGVAR(checkmedical_module), QGVAR(toggleAIDeath_module) }; weapons[] = {}; diff --git a/addons/zeus/functions/fnc_openMedicalMenu.sqf b/addons/zeus/functions/fnc_openMedicalMenu.sqf deleted file mode 100644 index 9aa005c37..000000000 --- a/addons/zeus/functions/fnc_openMedicalMenu.sqf +++ /dev/null @@ -1,36 +0,0 @@ -#include "..\script_component.hpp" -/* - * Author: DiGi - * Initalizes the "Open Unit medical menu" Zeus module. - * - * Arguments: - * 0: GVAR(checkmedical_module) zeus module - * - * Return Value: - * None - * - * Example: - * [logic] call kat_zeus_fnc_openMedicalMenu - * - * Public: No - */ - -params ["_logic"]; - -if !(local _logic) exitWith {}; - -private _mouseOver = GETMVAR(bis_fnc_curatorObjectPlaced_mouseOver,[""]); - -if ((_mouseOver select 0) != "OBJECT") then { - [ACELSTRING(zeus,NothingSelected)] call FUNC(showMessage); -} else { - private _unit = effectiveCommander (_mouseOver select 1); - - if !(_unit isKindOf "CAManBase") then { - [ACELSTRING(zeus,OnlyInfantry)] call FUNC(showMessage); - } else { - [_unit] call ACEFUNC(medical_gui,openMenu); - }; -}; - -deleteVehicle _logic; diff --git a/addons/zeus/stringtable.xml b/addons/zeus/stringtable.xml index 24f32d8bc..4e066ded3 100644 --- a/addons/zeus/stringtable.xml +++ b/addons/zeus/stringtable.xml @@ -207,24 +207,6 @@ Verander cardiale staat Cambia stato cardiaco - - Open unit medical menu - Medic Menü der Einheit öffnen - Otevřít zdravotnickou nabídku jednotky - Ouvrir menu médical - Otwórz menu medyczne - Abrir el menú médico de la unidad - 打开单位医疗菜单 - 유닛 의료 메뉴 열기 - Ünite tıbbi menüsünü aç - 医療メニューを開く - Медицинское меню открытого блока - Apri il menu medico - 打开单位医疗菜单 - Abra o menu médico da unidade - Avaa laitteen lääketieteellinen valikko - Open eenheids medisch menu - State: Wert: