mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Prepare the SQF base for the loadouts display
This commit is contained in:
@ -5,7 +5,10 @@ PREP(buttonClearAll);
|
||||
PREP(buttonExport);
|
||||
PREP(buttonHide);
|
||||
PREP(buttonImport);
|
||||
PREP(buttonLoadouts);
|
||||
PREP(buttonLoadoutsLoad);
|
||||
PREP(buttonLoadoutsSave);
|
||||
PREP(buttonLoadoutsSaveAs);
|
||||
PREP(buttonLoadoutsShare);
|
||||
PREP(clearSearchbar);
|
||||
PREP(fillLeftPanel);
|
||||
PREP(fillRightPanel);
|
||||
@ -15,10 +18,13 @@ PREP(handleSearchbar);
|
||||
PREP(handleStats);
|
||||
PREP(initBox);
|
||||
PREP(itemInfo);
|
||||
PREP(loadoutsChangeTab);
|
||||
PREP(message);
|
||||
PREP(onArsenalClose);
|
||||
PREP(onArsenalOpen);
|
||||
PREP(onKeyDown);
|
||||
PREP(onLoadoutsClose);
|
||||
PREP(onLoadoutsOpen);
|
||||
PREP(onMouseButtonDown);
|
||||
PREP(onMouseButtonUp);
|
||||
PREP(onSelChangedLeft);
|
||||
|
@ -99,6 +99,9 @@
|
||||
#define IDC_centerTitle 301
|
||||
#define IDC_contentPanel 302
|
||||
#define IDC_centerBoxButtonLoad 303
|
||||
#define IDC_buttonMyLoadouts 401
|
||||
#define IDC_buttonDefaultLoadouts 402
|
||||
#define IDC_buttonSharedLoadouts 403
|
||||
|
||||
#define FADE_DELAY 0.15
|
||||
#define CAM_DIS_MAX 5
|
||||
|
@ -1,4 +0,0 @@
|
||||
#include "script_component.hpp"
|
||||
|
||||
params ["_display"];
|
||||
_display createDisplay QGVAR(loadoutsDisplay);
|
4
addons/arsenal/functions/fnc_buttonLoadoutsLoad.sqf
Normal file
4
addons/arsenal/functions/fnc_buttonLoadoutsLoad.sqf
Normal file
@ -0,0 +1,4 @@
|
||||
#include "script_component.hpp"
|
||||
#include "..\defines.hpp"
|
||||
|
||||
params ["_display"];
|
4
addons/arsenal/functions/fnc_buttonLoadoutsSave.sqf
Normal file
4
addons/arsenal/functions/fnc_buttonLoadoutsSave.sqf
Normal file
@ -0,0 +1,4 @@
|
||||
#include "script_component.hpp"
|
||||
#include "..\defines.hpp"
|
||||
|
||||
params ["_display"];
|
4
addons/arsenal/functions/fnc_buttonLoadoutsSaveAs.sqf
Normal file
4
addons/arsenal/functions/fnc_buttonLoadoutsSaveAs.sqf
Normal file
@ -0,0 +1,4 @@
|
||||
#include "script_component.hpp"
|
||||
#include "..\defines.hpp"
|
||||
|
||||
params ["_display"];
|
4
addons/arsenal/functions/fnc_buttonLoadoutsShare.sqf
Normal file
4
addons/arsenal/functions/fnc_buttonLoadoutsShare.sqf
Normal file
@ -0,0 +1,4 @@
|
||||
#include "script_component.hpp"
|
||||
#include "..\defines.hpp"
|
||||
|
||||
params ["_display"];
|
8
addons/arsenal/functions/fnc_loadoutsChangeTab.sqf
Normal file
8
addons/arsenal/functions/fnc_loadoutsChangeTab.sqf
Normal file
@ -0,0 +1,8 @@
|
||||
#include "script_component.hpp"
|
||||
#include "..\defines.hpp"
|
||||
|
||||
params ["_display", "_control"];
|
||||
|
||||
systemChat str [_display, _control];
|
||||
|
||||
if !(ctrlEnabled _control) exitWith {};
|
5
addons/arsenal/functions/fnc_onLoadoutsClose.sqf
Normal file
5
addons/arsenal/functions/fnc_onLoadoutsClose.sqf
Normal file
@ -0,0 +1,5 @@
|
||||
#include "script_component.hpp"
|
||||
#include "..\defines.hpp"
|
||||
|
||||
params ["", "_args"];
|
||||
_args params ["_display"];
|
7
addons/arsenal/functions/fnc_onLoadoutsOpen.sqf
Normal file
7
addons/arsenal/functions/fnc_onLoadoutsOpen.sqf
Normal file
@ -0,0 +1,7 @@
|
||||
#include "script_component.hpp"
|
||||
#include "..\defines.hpp"
|
||||
|
||||
params ["", "_args"];
|
||||
_args params ["_display"];
|
||||
|
||||
systemChat str _display;
|
@ -173,7 +173,7 @@ class GVAR(display) {
|
||||
x = QUOTE(25 * GRID_W);
|
||||
text="Loadouts"; // TBL
|
||||
tooltip="Displays loadouts screen"; // TBL
|
||||
onButtonClick = QUOTE([ctrlparent (_this select 0)] call FUNC(buttonLoadouts));
|
||||
onButtonClick = QUOTE(ctrlparent (_this select 0) createDisplay QQGVAR(loadoutsDisplay));
|
||||
};
|
||||
class buttonExport: buttonHide {
|
||||
idc = -1;
|
||||
@ -711,6 +711,8 @@ class GVAR(display) {
|
||||
|
||||
class GVAR(loadoutsDisplay) {
|
||||
idd = IDD_loadouts_display;
|
||||
onLoad = QUOTE([ARR_3('onLoad', _this, QQGVAR(loadoutsDisplay))] call FUNC(onLoadoutsOpen));
|
||||
onUnload = QUOTE([ARR_3('onUnload', _this, QQGVAR(loadoutsDisplay))] call FUNC(onLoadoutsClose));
|
||||
class controls {
|
||||
class centerBox: ctrlControlsGroupNoScrollbars {
|
||||
idc = IDC_centerBox;
|
||||
@ -804,7 +806,7 @@ class GVAR(loadoutsDisplay) {
|
||||
h = QUOTE(10 * GRID_H);
|
||||
class controls {
|
||||
class buttonMyLoadouts: ctrlButton {
|
||||
idc = -1;
|
||||
idc = IDC_buttonMyLoadouts;
|
||||
colorBackground[] = {0,0,0,0.8};
|
||||
x = QUOTE(0 * GRID_W);
|
||||
y = QUOTE(0 * GRID_H);
|
||||
@ -813,21 +815,19 @@ class GVAR(loadoutsDisplay) {
|
||||
sizeEx = QUOTE(4.5 * GRID_H);
|
||||
text="My loadouts"; // TBL
|
||||
tooltip="Save selected loadout"; // TBL
|
||||
onButtonClick = "";
|
||||
onButtonClick = QUOTE([ARR_2(ctrlparent (_this select 0), _this select 0)] call FUNC(loadoutsChangeTab));
|
||||
};
|
||||
class buttonDefaultLoadouts: buttonMyLoadouts {
|
||||
idc = -1;
|
||||
idc = IDC_buttonDefaultLoadouts;
|
||||
x = QUOTE(41 * GRID_W);
|
||||
text="Default loadouts"; // TBL
|
||||
tooltip=""; // TBL
|
||||
onButtonClick = "";
|
||||
};
|
||||
class buttonSharedLoadouts: buttonMyLoadouts {
|
||||
idc = -1;
|
||||
idc = IDC_buttonSharedLoadouts;
|
||||
x = QUOTE(82 * GRID_W);
|
||||
text="Shared loadouts"; // TBL
|
||||
tooltip=""; // TBL
|
||||
onButtonClick = "";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
Reference in New Issue
Block a user