mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
a40b0d48f2
* HEMTT v10 Compatibility * Update addons/field_rations/CfgUIGrids.hpp Co-authored-by: PabstMirror <pabstmirror@gmail.com> * fix PabstMirror review * optionals * End empty macro definitions with semi-colon (HEMTT v0.10) * Adapt to HEMTT v0.10.0-a14 * Revert End empty macro definitions with semi-colon * Disable old HEMTT build step in CI * Add missing include and fix macro usage and include casings * End empty macro definitions with semi-colon (HEMTT v0.10) * Update addons/disarming/functions/fnc_showItemsInListbox.sqf Co-authored-by: PabstMirror <pabstmirror@gmail.com> * cleanup test code * arty - keep style same as before * fix fire screams * Update script_component.hpp * Keep old hemtt/workflow/sqfc * Update arma.yml * Update arma.yml * Update CfgUIGrids.hpp --------- Co-authored-by: PabstMirror <pabstmirror@gmail.com> Co-authored-by: jonpas <jonpas33@gmail.com>
86 lines
4.9 KiB
C++
86 lines
4.9 KiB
C++
#include "\z\ace\addons\common\define.hpp"
|
|
|
|
class GVAR(renameMenu) {
|
|
idd = 314615;
|
|
movingEnable = 0;
|
|
onLoad = QUOTE(uiNamespace setVariable [ARR_2(QUOTE(QGVAR(menuDisplay)),_this select 0)];);
|
|
onUnload = QUOTE(uiNamespace setVariable [ARR_2(QUOTE(QGVAR(menuDisplay)),nil)];);
|
|
class controlsBackground {
|
|
class HeaderBackground: ACE_gui_backgroundBase {
|
|
idc = -1;
|
|
SizeEx = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
|
|
x = "13 * (((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 = "13 * (((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 = "2.9 * ((((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 controls {
|
|
class HeaderName {
|
|
idc = 1;
|
|
type = CT_STATIC;
|
|
x = "13 * (((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 = "13 * (((safezoneW / safezoneH) min 1.2) / 40)";
|
|
h = "1 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
|
|
style = QUOTE(ST_LEFT + ST_SHADOW);
|
|
font = "RobotoCondensed";
|
|
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 = CSTRING(renameObjectUI);
|
|
};
|
|
class edit: ACE_gui_editBase {
|
|
onLoad = QUOTE((_this select 0) ctrlSetText (GVAR(interactionVehicle) getVariable [ARR_2(QUOTE(QGVAR(customName)), '')]));
|
|
idc = 100;
|
|
canModify = 1;
|
|
x = "13.1 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)";
|
|
y = "2.3 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + (safezoneY + (safezoneH - (((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
|
|
w = "12.8 * (((safezoneW / safezoneH) min 1.2) / 40)";
|
|
h = "1.5 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
|
|
SizeEx = "1.5 * (((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 0.7)";
|
|
};
|
|
class btnCancel: ACE_gui_buttonBase {
|
|
text = "$STR_DISP_CANCEL";
|
|
idc = 11;
|
|
x = "13.1 * (((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 = "5 * (((safezoneW / safezoneH) min 1.2) / 40)";
|
|
h = "1 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
|
|
size = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
|
|
SizeEx = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 0.7)";
|
|
animTextureNormal = "#(argb,8,8,3)color(0,0,0,0.9)";
|
|
animTextureDisabled = "#(argb,8,8,3)color(0,0,0,0.8)";
|
|
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[] = {1,1,1,1};
|
|
colorFocused[] = {0,0,0,1};
|
|
periodFocus = 1;
|
|
periodOver = 1;
|
|
action = QUOTE(closeDialog 0);
|
|
};
|
|
class btnSave: btnCancel {
|
|
text = ECSTRING(Common,Save);
|
|
idc = 12;
|
|
x = "20.9 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)";
|
|
action = QUOTE(closeDialog 1; call FUNC(renameObject));
|
|
};
|
|
};
|
|
};
|