mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
438a90b63d
* extended loadouts - earplugs, gunbag, and arsenal identity * arsenal - maintain default loadout size check * restore comment Co-authored-by: jonpas <jonpas33@gmail.com> * fix forgotten example Co-authored-by: jonpas <jonpas33@gmail.com>
79 lines
3.6 KiB
Plaintext
79 lines
3.6 KiB
Plaintext
#include "script_component.hpp"
|
|
#include "defines.hpp"
|
|
|
|
ADDON = false;
|
|
|
|
PREP_RECOMPILE_START;
|
|
#include "XEH_PREP.hpp"
|
|
PREP_RECOMPILE_END;
|
|
|
|
// Arsenal
|
|
[QGVAR(camInverted), "CHECKBOX", localize LSTRING(invertCameraSetting), localize LSTRING(settingCategory), false] call CBA_fnc_addSetting;
|
|
[QGVAR(enableModIcons), "CHECKBOX", [LSTRING(modIconsSetting), LSTRING(modIconsTooltip)], localize LSTRING(settingCategory), true] call CBA_fnc_addSetting;
|
|
[QGVAR(fontHeight), "SLIDER", [LSTRING(fontHeightSetting), LSTRING(fontHeightTooltip)], localize LSTRING(settingCategory), [1, 10, 4.5, 1]] call CBA_fnc_addSetting;
|
|
[QGVAR(enableIdentityTabs), "CHECKBOX", localize LSTRING(enableIdentityTabsSettings), localize LSTRING(settingCategory), true, true] call CBA_fnc_addSetting;
|
|
|
|
// Arsenal loadouts
|
|
[QGVAR(allowDefaultLoadouts), "CHECKBOX", [LSTRING(allowDefaultLoadoutsSetting), LSTRING(defaultLoadoutsTooltip)], [localize LSTRING(settingCategory), localize LSTRING(loadoutSubcategory)], true, true] call CBA_fnc_addSetting;
|
|
[QGVAR(allowSharedLoadouts), "CHECKBOX", localize LSTRING(allowSharingSetting), [localize LSTRING(settingCategory), localize LSTRING(loadoutSubcategory)], true, true] call CBA_fnc_addSetting;
|
|
[QGVAR(EnableRPTLog), "CHECKBOX", [LSTRING(printToRPTSetting), LSTRING(printToRPTTooltip)], [localize LSTRING(settingCategory), localize LSTRING(loadoutSubcategory)], false, false] call CBA_fnc_addSetting;
|
|
|
|
[QGVAR(loadoutsSaveFace), "CHECKBOX", localize LSTRING(loadoutsSaveFaceSetting), [localize LSTRING(settingCategory), localize LSTRING(loadoutSubcategory)], false] call CBA_fnc_addSetting;
|
|
[QGVAR(loadoutsSaveVoice), "CHECKBOX", localize LSTRING(loadoutsSaveVoiceSetting), [localize LSTRING(settingCategory), localize LSTRING(loadoutSubcategory)], false] call CBA_fnc_addSetting;
|
|
[QGVAR(loadoutsSaveInsignia), "CHECKBOX", localize LSTRING(loadoutsSaveInsigniaSetting), [localize LSTRING(settingCategory), localize LSTRING(loadoutSubcategory)], true] call CBA_fnc_addSetting;
|
|
|
|
[QGVAR(statsToggle), {
|
|
params ["_display", "_showStats"];
|
|
|
|
private _statsCtrlGroupCtrl = _display displayCtrl IDC_statsBox;
|
|
private _statsPreviousPageCtrl = _display displayCtrl IDC_statsPreviousPage;
|
|
private _statsNextPageCtrl = _display displayCtrl IDC_statsNextPage;
|
|
private _statsCurrentPageCtrl = _display displayCtrl IDC_statsCurrentPage;
|
|
|
|
private _statsButtonCtrl = _display displayCtrl IDC_statsButton;
|
|
private _statsButtonCloseCtrl = _display displayCtrl IDC_statsButtonClose;
|
|
|
|
{
|
|
_x ctrlShow (GVAR(showStats) && {_showStats});
|
|
} forEach [
|
|
_statsCtrlGroupCtrl,
|
|
_statsPreviousPageCtrl,
|
|
_statsNextPageCtrl,
|
|
_statsCurrentPageCtrl,
|
|
_statsButtonCloseCtrl
|
|
];
|
|
|
|
_statsButtonCtrl ctrlShow (!GVAR(showStats) && {_showStats})
|
|
}] call CBA_fnc_addEventHandler;
|
|
|
|
[QGVAR(statsButton), {
|
|
_this call FUNC(buttonStats);
|
|
}] call CBA_fnc_addEventHandler;
|
|
|
|
[QGVAR(statsChangePage), {
|
|
_this call FUNC(buttonStatsPage);
|
|
}] call CBA_fnc_addEventHandler;
|
|
|
|
|
|
[QGVAR(displayStats), {
|
|
_this call FUNC(handleStats);
|
|
}] call CBA_fnc_addEventHandler;
|
|
|
|
call FUNC(compileStats);
|
|
call FUNC(compileSorts);
|
|
|
|
[QUOTE(ADDON), {!isNil QGVAR(camera)}] call CBA_fnc_registerFeatureCamera;
|
|
|
|
// Compatibility with CBA scripted optics and dispoable framework
|
|
[QGVAR(displayOpened), {
|
|
"cba_optics_arsenalOpened" call CBA_fnc_localEvent;
|
|
"cba_disposable_arsenalOpened" call CBA_fnc_localEvent;
|
|
}] call CBA_fnc_addEventHandler;
|
|
|
|
[QGVAR(displayClosed), {
|
|
"cba_optics_arsenalClosed" call CBA_fnc_localEvent;
|
|
"cba_disposable_arsenalClosed" call CBA_fnc_localEvent;
|
|
}] call CBA_fnc_addEventHandler;
|
|
|
|
ADDON = true;
|