mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Interface tweaks
This commit is contained in:
parent
8d6f167d97
commit
935430ea59
@ -82,7 +82,7 @@ class GVAR(interface) {
|
|||||||
class toolbar: RscControlsGroupNoScrollbars {
|
class toolbar: RscControlsGroupNoScrollbars {
|
||||||
idc = IDC_TOOL;
|
idc = IDC_TOOL;
|
||||||
x = safeZoneX;
|
x = safeZoneX;
|
||||||
y = safeZoneY;
|
y = safeZoneY + safeZoneH - TOOL_H;
|
||||||
w = safeZoneW;
|
w = safeZoneW;
|
||||||
h = TOOL_H;
|
h = TOOL_H;
|
||||||
class controls {
|
class controls {
|
||||||
@ -144,43 +144,24 @@ class GVAR(interface) {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
class unitTools: RscControlsGroupNoScrollbars {
|
class unitTree: RscTree {
|
||||||
idc = IDC_UNIT;
|
idc = IDC_UNIT;
|
||||||
x = safeZoneX;
|
x = safeZoneX;
|
||||||
y = safeZoneY + TOOL_H * 2;
|
y = safeZoneY + TOOL_H * 2;
|
||||||
w = TOOL_W * 2;
|
w = TOOL_W * 2;
|
||||||
h = safeZoneH;
|
h = safeZoneH - TOOL_H * 4;
|
||||||
class controls {
|
sizeEx = H_PART(0.8);
|
||||||
class unitTree: RscTree {
|
borderSize = 1;
|
||||||
idc = IDC_UNIT_TREE;
|
colorBorder[] = {COL_FORE};
|
||||||
x = 0;
|
colorBackground[] = {COL_BACK};
|
||||||
y = 0;
|
colorSelect[] = {
|
||||||
w = TOOL_W * 2;
|
"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.77])",
|
||||||
h = safeZoneH - TOOL_H * 5;
|
"(profilenamespace getvariable ['GUI_BCG_RGB_G',0.51])",
|
||||||
sizeEx = H_PART(0.8);
|
"(profilenamespace getvariable ['GUI_BCG_RGB_B',0.08])",
|
||||||
borderSize = 1;
|
1
|
||||||
colorBorder[] = {COL_FORE};
|
|
||||||
colorBackground[] = {COL_BACK};
|
|
||||||
colorSelect[] = {
|
|
||||||
"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.77])",
|
|
||||||
"(profilenamespace getvariable ['GUI_BCG_RGB_G',0.51])",
|
|
||||||
"(profilenamespace getvariable ['GUI_BCG_RGB_B',0.08])",
|
|
||||||
1
|
|
||||||
};
|
|
||||||
multiselectEnabled = 0;
|
|
||||||
onTreeDblClick = QUOTE([ARR_2('onTreeDblClick',_this)] call FUNC(handleInterface));
|
|
||||||
};
|
|
||||||
class unitRandom: RscButtonMenu {
|
|
||||||
x = 0;
|
|
||||||
y = safeZoneH - TOOL_H * 5;
|
|
||||||
w = TOOL_W * 2;
|
|
||||||
h = TOOL_H;
|
|
||||||
sizeEx = TOOL_H;
|
|
||||||
colorBackground[] = {COL_FORE_D};
|
|
||||||
text = CSTRING(RandomUnit);
|
|
||||||
action = QUOTE([nil,objNull] call FUNC(updateCamera));
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
multiselectEnabled = 0;
|
||||||
|
onTreeDblClick = QUOTE([ARR_2('onTreeDblClick',_this)] call FUNC(handleInterface));
|
||||||
};
|
};
|
||||||
class mapOverlay: RscMapControl {
|
class mapOverlay: RscMapControl {
|
||||||
idc = IDC_MAP;
|
idc = IDC_MAP;
|
||||||
@ -210,6 +191,17 @@ class GVAR(interface) {
|
|||||||
sizeEx = H_PART(1);
|
sizeEx = H_PART(1);
|
||||||
text = CSTRING(HelpTitle);
|
text = CSTRING(HelpTitle);
|
||||||
};
|
};
|
||||||
|
class helpExit: RscButtonMenu {
|
||||||
|
x = W_PART(23);
|
||||||
|
y = 0;
|
||||||
|
h = H_PART(1);
|
||||||
|
w = W_PART(1);
|
||||||
|
colorText[]={COL_FORE};
|
||||||
|
colorBackground[] = {COL_FORE_D};
|
||||||
|
sizeEx = H_PART(1);
|
||||||
|
text = "X";
|
||||||
|
action = QUOTE(GVAR(showHelp) = false; [] call FUNC(updateInterface));
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -34,7 +34,7 @@ if !(GVAR(camUnit) in GVAR(unitList)) then {
|
|||||||
private ["_ctrl","_curSelData","_cachedGrps","_grp","_node","_side","_index"];
|
private ["_ctrl","_curSelData","_cachedGrps","_grp","_node","_side","_index"];
|
||||||
|
|
||||||
// Fetch tree
|
// Fetch tree
|
||||||
_ctrl = (_display displayCtrl IDC_UNIT) controlsGroupCtrl IDC_UNIT_TREE;
|
_ctrl = _display displayCtrl IDC_UNIT;
|
||||||
|
|
||||||
// Cache current selection
|
// Cache current selection
|
||||||
_curSelData = _ctrl tvData (tvCurSel _ctrl);
|
_curSelData = _ctrl tvData (tvCurSel _ctrl);
|
||||||
|
@ -47,7 +47,6 @@
|
|||||||
#define IDC_TOOL_VIEW 3002
|
#define IDC_TOOL_VIEW 3002
|
||||||
|
|
||||||
#define IDC_UNIT 6002
|
#define IDC_UNIT 6002
|
||||||
#define IDC_UNIT_TREE 6187
|
|
||||||
|
|
||||||
// UI colours
|
// UI colours
|
||||||
#define COL_BACK 0.1,0.1,0.1,0.8
|
#define COL_BACK 0.1,0.1,0.1,0.8
|
||||||
|
Loading…
Reference in New Issue
Block a user