Move onButton EHs to config, remove placeholder stats func

This commit is contained in:
Josuan Albin 2017-11-05 13:56:09 +01:00
parent 9b980f06b9
commit 1be5d92426
5 changed files with 3 additions and 19 deletions

View File

@ -17,7 +17,6 @@ PREP(fillRightPanel);
PREP(handleMouse);
PREP(handleScrollWheel);
PREP(handleSearchbar);
PREP(handleStats);
PREP(initBox);
PREP(itemInfo);
PREP(loadoutsChangeTab);
@ -27,8 +26,6 @@ PREP(onArsenalOpen);
PREP(onKeyDown);
PREP(onLoadoutsClose);
PREP(onLoadoutsOpen);
PREP(onMouseButtonDown);
PREP(onMouseButtonUp);
PREP(onSelChangedLeft);
PREP(onSelChangedLoadouts);
PREP(onSelChangedRight);
@ -42,4 +39,4 @@ PREP(showItem);
PREP(sortPanel);
PREP(updateCamPos);
PREP(updateRightPanel);
PREP(verifyLoadout);
PREP(verifyLoadout);

View File

@ -1 +0,0 @@
#include "script_component.hpp"

View File

@ -1,6 +0,0 @@
#include "script_component.hpp"
params ["", "_args"];
_args params ["", "_buttonPressed", "_xPos", "_yPos"];
GVAR(mouseButtonState) set [_buttonPressed, [_xPos, _yPos]];

View File

@ -1,6 +0,0 @@
#include "script_component.hpp"
params ["", "_args"];
_args params ["", "_buttonPressed"];
GVAR(mouseButtonState) set [_buttonPressed, []];

View File

@ -8,8 +8,8 @@ class GVAR(display) {
onUnload = QUOTE([ARR_3('onUnload', _this, QQGVAR(display))] call FUNC(onArsenalClose));
onKeyDown = QUOTE([ARR_3('onKeyDown', _this, QQGVAR(display))] call FUNC(onKeyDown));
onKeyUp = QUOTE(GVAR(shiftState) = _this select 2);
onMouseButtonDown = QUOTE([ARR_3('onMouseButtonDown', _this, QQGVAR(display))] call FUNC(onMouseButtonDown));
onMouseButtonUp = QUOTE([ARR_3('onMouseButtonUp', _this, QQGVAR(display))] call FUNC(onMouseButtonUp));
onMouseButtonDown = QUOTE(GVAR(mouseButtonState) set [ARR_2(_this select 1, [ARR_2(_this select 2, _this select 3)])]);
onMouseButtonUp = QUOTE(GVAR(mouseButtonState) set [ARR_2(_this select 1, [])]);
icon="\A3\Ui_f\data\Logos\a_64_ca.paa";
logo="\A3\Ui_f\data\Logos\arsenal_1024_ca.paa";
class ControlsBackground {