mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Arsenal - double custom right panel misc items buttons fixed (#7801)
* added medical, food and roleplay categories to arsenal * decreased wound stitch time * added custom rightPanelButtons * stuff that doesnt belong here * fix * commys wishes * commys wishes part2 * Update addons/arsenal/defines.hpp Co-Authored-By: Dedmen Miller <dedmen@users.noreply.github.com> * Update addons/arsenal/functions/fnc_fillRightPanel.sqf Co-Authored-By: Dedmen Miller <dedmen@users.noreply.github.com> * Update addons/arsenal/functions/fnc_fillRightPanel.sqf Co-Authored-By: Dedmen Miller <dedmen@users.noreply.github.com> * infinitely better SPEED * changes * delete unused stuff * my own 3 white dots * fixed fillRightPanel IDC_MISC * commy fixes * background first * fix double buttons Co-authored-by: Schwaggot <tom.ryan@posteo.de> Co-authored-by: Dedmen Miller <dedmen@users.noreply.github.com>
This commit is contained in:
parent
697bb2cbdd
commit
ffbd72616a
@ -313,13 +313,17 @@ if (!isNil QGVAR(customRightPanelButtons)) then {\
|
||||
if (!isNil "_x") then {\
|
||||
_x params ["", "_picture", "_tooltip"];\
|
||||
_miscOffset = _forEachIndex + 1;\
|
||||
private _ctrl = _display ctrlCreate [QGVAR(customArsenalButton_Background), 60 + (_forEachIndex * 2)];\
|
||||
private _plusId = _forEachIndex * 2;\
|
||||
if (isNull (_display displayCtrl (60 + _plusId))) then {\
|
||||
private _ctrl = _display ctrlCreate [QGVAR(customArsenalButton_Background), 60 + _plusId];\
|
||||
_ctrl ctrlSetPosition [\
|
||||
safezoneW + safezoneX - 13 * GRID_W,\
|
||||
safezoneY + (88 + (10 * _forEachIndex)) * GRID_H\
|
||||
];\
|
||||
_ctrl ctrlCommit 0;\
|
||||
_ctrl = _display ctrlCreate [QGVAR(customArsenalButton_Button), 61 + (_forEachIndex * 2)];\
|
||||
};\
|
||||
if (isNull (_display displayCtrl (61 + _plusId))) then {\
|
||||
_ctrl = _display ctrlCreate [QGVAR(customArsenalButton_Button), 61 + _plusId];\
|
||||
_ctrl ctrlSetPosition [\
|
||||
safezoneW + safezoneX - 10 * GRID_W,\
|
||||
safezoneY + (88 + (10 * _forEachIndex)) * GRID_H\
|
||||
@ -328,6 +332,7 @@ if (!isNil QGVAR(customRightPanelButtons)) then {\
|
||||
_ctrl ctrlSetTooltip _tooltip;\
|
||||
_ctrl ctrlCommit 0;\
|
||||
};\
|
||||
};\
|
||||
} forEach GVAR(customRightPanelButtons);\
|
||||
{\
|
||||
_x = _display displayCtrl _x;\
|
||||
|
Loading…
Reference in New Issue
Block a user