From 589574c43375ec89c63ef0bb4827d6573a6bfc5b Mon Sep 17 00:00:00 2001 From: Josuan Albin Date: Tue, 24 Oct 2017 17:48:21 +0200 Subject: [PATCH] Add close button for loadouts dialog --- addons/arsenal/ui/RscAttributes.hpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/addons/arsenal/ui/RscAttributes.hpp b/addons/arsenal/ui/RscAttributes.hpp index 53fca0542e..3230ff1b15 100644 --- a/addons/arsenal/ui/RscAttributes.hpp +++ b/addons/arsenal/ui/RscAttributes.hpp @@ -823,6 +823,18 @@ class GVAR(loadoutsDisplay) { tooltip="Delete loadout"; // TBL onButtonClick = QUOTE([ARR_2(ctrlparent (_this select 0), _this select 0)] call FUNC(buttonLoadoutsDelete)); }; + class buttonClose: buttonSave { + idc = -1; + x = QUOTE(safezoneW + safezoneX - 31 * GRID_W); + y = QUOTE(safezoneH + safezoneY - 12 * GRID_H); + w = QUOTE(30 * GRID_W); + h = QUOTE(10 * GRID_H); + sizeEx = QUOTE(4.5 * GRID_H); + text="Close"; // TBL + shortcuts[]= {"0x01"}; + tooltip="Close interface"; // TBL + onButtonClick = QUOTE(ctrlparent (_this select 0) closeDisplay 2); + }; class buttonBar: ctrlControlsGroupNoScrollbars { idc = -1; x = QUOTE((safezoneW * 0.5) + safezoneX - (61 * GRID_W));