mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
e2ac18a05d
* advanced_ballistics * advanced_fatigue * advanced_throwing * ai * aircraft * arsenal * atragmx * attach * backpacks * ballistics * captives * cargo * chemlights * common * concertina_wire * cookoff * dagr * disarming * disposable * dogtags * dragging * explosives * fastroping * fcs * finger * frag * gestures * gforces * goggles * grenades * gunbag * hearing * hitreactions * huntir * interact_menu * interaction * inventory * kestrel4500 * laser * laserpointer * logistics_uavbattery * logistics_wirecutter * magazinerepack * map * map_gestures * maptools * markers * medical * medical_ai * medical_blood * medical_menu * microdagr * minedetector * missileguidance * missionmodules * mk6mortar * modules * movement * nametags * nightvision * nlaw * optics * optionsmenu * overheating * overpressure * parachute * pylons * quickmount * rangecard * rearm * recoil * refuel * reload * reloadlaunchers * repair * respawn * safemode * sandbag * scopes * slideshow * spectator * spottingscope * switchunits * tacticalladder * tagging * trenches * tripod * ui * vector * vehiclelock * vehicles * viewdistance * weaponselect * weather * winddeflection * yardage450 * zeus * arsenal defines.hpp * optionals * DEBUG_MODE_FULL 1 * DEBUG_MODE_FULL 2 * Manual fixes * Add SQF Validator check for #include after block comment * explosives fnc_openTimerUI * fix uniqueItems
63 lines
1.9 KiB
Plaintext
63 lines
1.9 KiB
Plaintext
#include "script_component.hpp"
|
|
#include "..\defines.hpp"
|
|
/*
|
|
* Author: Alganthe
|
|
* onLoad EH for arsenal loadouts display.
|
|
*
|
|
* Arguments:
|
|
* 0: Ignored
|
|
* 1: Arguments <ARRAY>
|
|
* 1.1: Loadouts display <DISPLAY>
|
|
*
|
|
* Return Value:
|
|
* None
|
|
*
|
|
* Public: No
|
|
*/
|
|
|
|
params ["", "_args"];
|
|
_args params ["_display"];
|
|
|
|
private _arsenalDisplay = findDisplay IDD_ace_arsenal;
|
|
private _mouseBlockCtrl = _arsenalDisplay displayCtrl IDC_mouseBlock;
|
|
|
|
_mouseBlockCtrl ctrlEnable true;
|
|
_mouseBlockCtrl ctrlCommit 0;
|
|
|
|
[_arsenalDisplay] call FUNC(buttonHide);
|
|
|
|
GVAR(currentLoadoutsTab) = -1;
|
|
GVAR(loadoutsSearchbarFocus) = false;
|
|
GVAR(loadoutsPanelFocus) = false;
|
|
|
|
GVAR(previousCameraPos) = GVAR(cameraPosition);
|
|
GVAR(cameraPosition) = [5,0,20,[-0.85,0,0.85]];
|
|
|
|
private _panelContentCtrl = _display displayCtrl IDC_contentPanel;
|
|
_panelContentCtrl ctrlSetFontHeight (4.5 * GRID_H);
|
|
_panelContentCtrl ctrlCommit 0;
|
|
|
|
if !(GVAR(allowDefaultLoadouts)) then {
|
|
private _buttonDefaultLoadoutsCtrl = _display displayCtrl IDC_buttonDefaultLoadouts;
|
|
_buttonDefaultLoadoutsCtrl ctrlEnable false;
|
|
_buttonDefaultLoadoutsCtrl ctrlCommit 0;
|
|
|
|
private _buttonDefaultLoadoutsBackgroundCtrl = _display displayCtrl IDC_buttonDefaultLoadoutsBackground;
|
|
_buttonDefaultLoadoutsBackgroundCtrl ctrlShow false;
|
|
_buttonDefaultLoadoutsBackgroundCtrl ctrlCommit 0;
|
|
};
|
|
|
|
if !(GVAR(allowSharedLoadouts) && {isMultiplayer}) then {
|
|
private _buttonShareLoadoutsCtrl = _display displayCtrl IDC_buttonSharedLoadouts;
|
|
_buttonShareLoadoutsCtrl ctrlEnable false;
|
|
_buttonShareLoadoutsCtrl ctrlCommit 0;
|
|
|
|
private _buttonShareLoadoutsBackgroundCtrl = _display displayCtrl IDC_buttonSharedLoadoutsBackground;
|
|
_buttonShareLoadoutsBackgroundCtrl ctrlShow false;
|
|
_buttonShareLoadoutsBackgroundCtrl ctrlCommit 0;
|
|
};
|
|
|
|
[QGVAR(loadoutsDisplayOpened), [_display]] call CBA_fnc_localEvent;
|
|
|
|
[_display, _display displayCtrl IDC_buttonMyLoadouts] call FUNC(loadoutsChangeTab);
|