Medical GUI - Move target name to middle header (#9483)

* Switch "status" header to player name

* Set title to "Medical Menu"

* Remove unused STATUS strings

* Switch to existing MedicalMenu string

Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>

* Revert "Remove unused STATUS strings"

This reverts commit 62c1ced06a.

---------

Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
This commit is contained in:
amsteadrayle 2023-10-14 19:27:57 -04:00 committed by GitHub
parent f774eaf787
commit b54be029df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 4 deletions

View File

@ -26,8 +26,8 @@ if (EGVAR(interact_menu,menuBackground) == 2) then {0 cutRsc [QEGVAR(interact_me
[{setMousePosition _this}, _this] call CBA_fnc_execNextFrame;
}, getMousePosition] call CBA_fnc_execNextFrame;
// Set target name as title
private _ctrlTitle = _display displayCtrl IDC_TITLE;
// Set middle header as target name
private _ctrlTitle = _display displayCtrl IDC_NAME;
_ctrlTitle ctrlSetText ([GVAR(target)] call EFUNC(common,getName));
// Initially hide the triage select buttons

View File

@ -210,6 +210,7 @@ class ACE_Medical_Menu {
class controlsBackground {
class Title: RscText {
idc = IDC_TITLE;
text = CSTRING(MedicalMenu);
x = QUOTE(POS_X(1));
y = QUOTE(POS_Y(0));
w = QUOTE(POS_W(38));
@ -242,8 +243,8 @@ class ACE_Medical_Menu {
sizeEx = QUOTE(POS_H(1.2));
colorText[] = {1, 1, 1, 0.9};
};
class StatusHeader: TreatmentHeader {
text = CSTRING(STATUS);
class NameHeader: TreatmentHeader {
idc = IDC_NAME;
x = QUOTE(POS_X(13.83));
};
class OverviewHeader: TreatmentHeader {

View File

@ -37,6 +37,7 @@
#define IDD_MEDICAL_MENU 38580
#define IDC_TITLE 1200
#define IDC_NAME 1210
#define IDC_TRIAGE 1300
#define IDC_EXAMINE 1310
#define IDC_BANDAGE 1320