mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Add editBox for loadout names
This commit is contained in:
@ -98,10 +98,11 @@
|
||||
#define IDC_centerBox 3
|
||||
#define IDC_centerTitle 301
|
||||
#define IDC_contentPanel 302
|
||||
#define IDC_buttonSave 303
|
||||
#define IDC_buttonLoad 304
|
||||
#define IDC_buttonShare 305
|
||||
#define IDC_buttonDelete 306
|
||||
#define IDC_textEditBox 303
|
||||
#define IDC_buttonSave 304
|
||||
#define IDC_buttonLoad 305
|
||||
#define IDC_buttonShare 306
|
||||
#define IDC_buttonDelete 307
|
||||
#define IDC_buttonMyLoadouts 401
|
||||
#define IDC_buttonDefaultLoadouts 402
|
||||
#define IDC_buttonSharedLoadouts 403
|
||||
|
@ -4,6 +4,8 @@
|
||||
params ["_display", "_control"];
|
||||
|
||||
private _contentListCtrl = _display displayCtrl IDC_contentPanel;
|
||||
private _textEditBoxCtrl= _display displayCtrl IDC_textEditBox;
|
||||
_textEditBoxCtrl ctrlSetText "";
|
||||
|
||||
_contentListCtrl lnbSetCurSelRow -1;
|
||||
lnbClear _contentListCtrl;
|
||||
@ -27,7 +29,7 @@ if (ctrlIDC _control == IDC_buttonMyLoadouts) then {
|
||||
_contentListCtrl lnbSetPicture [[_newRow, 9], getText (configFile >> "cfgGlasses" >> (_loadoutData select 7) >> "picture")];
|
||||
|
||||
if (false) then {
|
||||
_contentListCtrl lnbSetColor [[_newRow, 0], [1, 1, 1, 0.25]];
|
||||
_contentListCtrl lnbSetColor [[_newRow, 1], [1, 1, 1, 0.25]];
|
||||
_contentListCtrl lbSetValue [_newRow, -1];
|
||||
};
|
||||
|
||||
|
@ -9,6 +9,7 @@ private _shareButtonCtrl = _display displayCtrl IDC_buttonShare;
|
||||
private _saveButtonCtrl = _display displayCtrl IDC_buttonSave;
|
||||
private _loadButtonCtrl = _display displayCtrl IDC_buttonLoad;
|
||||
private _deleteButtonCtrl = _display displayCtrl IDC_buttonDelete;
|
||||
private _textEditBoxCtrl= _display displayCtrl IDC_textEditBox;
|
||||
|
||||
switch (GVAR(currentLoadoutsTab)) do {
|
||||
|
||||
@ -27,6 +28,8 @@ switch (GVAR(currentLoadoutsTab)) do {
|
||||
_x ctrlEnable (_curSel >= 0);
|
||||
_x ctrlCommit 0;
|
||||
} foreach [_saveButtonCtrl, _deleteButtonCtrl];
|
||||
|
||||
_textEditBoxCtrl ctrlSetText (_control lnbText [_curSel, 1]);
|
||||
};
|
||||
|
||||
case IDC_buttonDefaultLoadouts: {
|
||||
@ -39,6 +42,8 @@ switch (GVAR(currentLoadoutsTab)) do {
|
||||
_x ctrlEnable false;
|
||||
_x ctrlCommit 0;
|
||||
} foreach [_shareButtonCtrl, _saveButtonCtrl, _deleteButtonCtrl];
|
||||
|
||||
_textEditBoxCtrl ctrlSetText (_control lnbText [_curSel, 0]);
|
||||
};
|
||||
|
||||
case IDC_buttonSharedLoadouts: {
|
||||
@ -50,5 +55,7 @@ switch (GVAR(currentLoadoutsTab)) do {
|
||||
_x ctrlEnable false;
|
||||
_x ctrlCommit 0;
|
||||
} foreach [_shareButtonCtrl, _saveButtonCtrl, _deleteButtonCtrl];
|
||||
|
||||
_textEditBoxCtrl ctrlSetText (_control lnbText [_curSel, 0]);
|
||||
};
|
||||
};
|
@ -748,7 +748,7 @@ class GVAR(loadoutsDisplay) {
|
||||
};
|
||||
class contentPanel: RscListnBox {
|
||||
idc = IDC_contentPanel;
|
||||
colorBackground[]={0,0,0,0};
|
||||
colorBackground[]={1,1,1,1};
|
||||
colorSelectBackground[]={1,1,1,0.5};
|
||||
colorSelectBackground2[]={1,1,1,0.5};
|
||||
colorPictureSelected[]={1,1,1,1};
|
||||
@ -762,9 +762,25 @@ class GVAR(loadoutsDisplay) {
|
||||
x = QUOTE(0);
|
||||
y = QUOTE(5 * GRID_H);
|
||||
w = QUOTE(160 * GRID_W);
|
||||
h = QUOTE(safezoneH - (61 * GRID_H));
|
||||
h = QUOTE(safezoneH - (67 * GRID_H));
|
||||
sizeEx = QUOTE(7 * GRID_H);
|
||||
};
|
||||
class textTitle: RscText {
|
||||
idc= -1;
|
||||
text="$STR_DISP_GAME_NAME";
|
||||
x = QUOTE(5 * GRID_W);
|
||||
y = QUOTE(safezoneH - (61 * GRID_H));
|
||||
w = QUOTE(15 * GRID_W);
|
||||
h = QUOTE(5 * GRID_H);
|
||||
colorBackground[]={0,0,0,0.2};
|
||||
};
|
||||
class textEditBox: ctrlEdit {
|
||||
idc= IDC_textEditBox;
|
||||
x = QUOTE(20 * GRID_W);
|
||||
y = QUOTE(safezoneH - (61 * GRID_H));
|
||||
w = QUOTE(50 * GRID_W);
|
||||
h = QUOTE(5 * GRID_H);
|
||||
};
|
||||
class buttonSave: ctrlButton {
|
||||
idc = IDC_buttonSave;
|
||||
x = QUOTE(5 * GRID_W);
|
||||
|
Reference in New Issue
Block a user