ACE3/addons/arsenal/functions
Dart e36363e8cc
Arsenal - Add ace_arsenal_fnc_saveLoadout as API to save loadouts (#10151)
* Added fnc_saveLoadout

* Changed to toLower for other languages

* GitHub didn't like editing the file in the browser

* Fix case-sensitive _loadoutIndex

Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>

* Unicode support

Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>

* setVariable in case no loadouts are saved

* Fix return not happening properly

* Added scripting example

* Update docs/wiki/framework/arsenal-framework.md

---------

Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
2024-08-10 12:01:12 -07:00
..
fnc_addAction.sqf Arsenal - Cleanup action UI code (#9784) 2024-02-11 19:23:44 -03:00
fnc_addDefaultLoadout.sqf Arsenal - Add JIP support to Default Loadouts added mid-mission (#9715) 2024-01-06 18:27:04 -03:00
fnc_addListBoxItem.sqf General - Replace toLower with toLowerANSI where applicable (#9790) 2024-03-07 22:08:13 +01:00
fnc_addRightPanelButton.sqf Medical - Support Magazine Treatment Items (#9816) 2024-03-21 22:56:24 +01:00
fnc_addSort.sqf General - Cleanup spaces in macros (#9769) 2024-02-05 14:04:24 -03:00
fnc_addStat.sqf General - Cleanup spaces in macros (#9769) 2024-02-05 14:04:24 -03:00
fnc_addVirtualItems.sqf Arsenal - Fix FUNC(removeVirtualItems) for JIP players (#9650) 2023-11-17 20:06:20 -03:00
fnc_attributeAddCompatible.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00
fnc_attributeAddItems.sqf Arsenal - Add mod icons to editor arsenal attribute (#9797) 2024-02-12 15:15:48 -03:00
fnc_attributeCategory.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00
fnc_attributeClear.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00
fnc_attributeDblClick.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00
fnc_attributeImport.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00
fnc_attributeInit.sqf Arsenal - Fix FUNC(removeVirtualItems) for JIP players (#9650) 2023-11-17 20:06:20 -03:00
fnc_attributeKeyDown.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00
fnc_attributeLoad.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00
fnc_attributeMode.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00
fnc_attributeSelect.sqf Arsenal - Add mod icons to editor arsenal attribute (#9797) 2024-02-12 15:15:48 -03:00
fnc_baseAttachment.sqf Arsenal - Fix #9916 (#9932) 2024-04-06 22:04:52 -03:00
fnc_baseOptic.sqf Arsenal - Native baseWeapon support for CBA items (#9799) 2024-03-02 14:29:20 -03:00
fnc_baseWeapon.sqf Arsenal - Native baseWeapon support for CBA items (#9799) 2024-03-02 14:29:20 -03:00
fnc_buttonActionsPage.sqf General - Cleanup spaces in macros (#9769) 2024-02-05 14:04:24 -03:00
fnc_buttonCargo.sqf Arsenal - Fix displaying virtual items & weapon attachments in cargo (#9692) 2023-12-30 21:30:52 -03:00
fnc_buttonClearAll.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00
fnc_buttonExport.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00
fnc_buttonFavorites.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00
fnc_buttonHide.sqf Arsenal - Fixed stats & actions appearing when they shouldn't be (#9737) 2024-01-16 12:30:27 -03:00
fnc_buttonImport.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00
fnc_buttonLoadoutsDelete.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00
fnc_buttonLoadoutsLoad.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00
fnc_buttonLoadoutsRename.sqf Arsenal - Add JIP support to Default Loadouts added mid-mission (#9715) 2024-01-06 18:27:04 -03:00
fnc_buttonLoadoutsSave.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00
fnc_buttonLoadoutsShare.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00
fnc_buttonStatsPage.sqf General - Cleanup spaces in macros (#9769) 2024-02-05 14:04:24 -03:00
fnc_canEditDefaultLoadout.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00
fnc_clearSearchbar.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00
fnc_compileActions.sqf Arsenal - Cleanup action UI code (#9784) 2024-02-11 19:23:44 -03:00
fnc_compileSorts.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00
fnc_compileStats.sqf General - Cleanup spaces in macros (#9769) 2024-02-05 14:04:24 -03:00
fnc_fillLeftPanel.sqf Arsenal - Left panel code improvements (#9787) 2024-02-11 19:34:24 -03:00
fnc_fillLoadoutsList.sqf Arsenal - Improved sorting, insignia detection, identity info verification and minor cleanup (#9795) 2024-02-13 11:22:27 -08:00
fnc_fillRightPanel.sqf General - Replace toLower with toLowerANSI where applicable (#9790) 2024-03-07 22:08:13 +01:00
fnc_fillSort.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00
fnc_getVirtualItems.sqf Arsenal - Add FUNC(getVirtualItems) (#9512) 2023-10-18 14:51:00 -04:00
fnc_handleActions.sqf Arsenal - Cleanup action UI code (#9784) 2024-02-11 19:23:44 -03:00
fnc_handleLoadoutsSearchbar.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00
fnc_handleMouse.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00
fnc_handleScrollWheel.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00
fnc_handleSearchbar.sqf Arsenal - Search fixes (#9668) 2023-12-02 19:48:35 -06:00
fnc_handleSearchInputChanged.sqf Arsenal - Add option to show live search results (#9354) 2023-10-27 20:55:14 -04:00
fnc_handleSearchModeToggle.sqf Arsenal - Add option to show live search results (#9354) 2023-10-27 20:55:14 -04:00
fnc_handleStats.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00
fnc_initBox.sqf Arsenal - Fix FUNC(removeVirtualItems) for JIP players (#9650) 2023-11-17 20:06:20 -03:00
fnc_itemInfo.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00
fnc_loadoutsChangeTab.sqf Arsenal - Add JIP support to Default Loadouts added mid-mission (#9715) 2024-01-06 18:27:04 -03:00
fnc_message.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00
fnc_onArsenalClose.sqf General - Cleanup event capitalization (#10062) 2024-06-11 08:00:50 -07:00
fnc_onArsenalOpen.sqf General - Cleanup event capitalization (#10062) 2024-06-11 08:00:50 -07:00
fnc_onKeyDown.sqf General - SQF Improvements (#9698) 2024-02-04 14:50:24 -03:00
fnc_onLoadoutsClose.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00
fnc_onLoadoutsOpen.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00
fnc_onMouseButtonDown.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00
fnc_onMouseButtonUp.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00
fnc_onPanelDblClick.sqf General - Replace toLower with toLowerANSI where applicable (#9790) 2024-03-07 22:08:13 +01:00
fnc_onSelChangedLeft.sqf Arsenal - Fix insignia not reapplying after switching vests & backpacks (#10046) 2024-05-29 11:40:41 -07:00
fnc_onSelChangedLoadouts.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00
fnc_onSelChangedRight.sqf Arsenal - Changes for CBA Disposable hashs (#9998) 2024-05-21 20:23:46 -05:00
fnc_onSelChangedRightListnBox.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00
fnc_open3DEN.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00
fnc_openBox.sqf Arsenal - Fix FUNC(removeVirtualItems) for JIP players (#9650) 2023-11-17 20:06:20 -03:00
fnc_portVALoadouts.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00
fnc_refresh.sqf Arsenal - Exit refresh early if no display is found (#9754) 2024-02-05 10:57:22 -03:00
fnc_removeAction.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00
fnc_removeBox.sqf Arsenal - Exit refresh early if no display is found (#9754) 2024-02-05 10:57:22 -03:00
fnc_removeDefaultLoadout.sqf Arsenal - Add JIP support to Default Loadouts added mid-mission (#9715) 2024-01-06 18:27:04 -03:00
fnc_removeSort.sqf General - Replace toLower with toLowerANSI where applicable (#9790) 2024-03-07 22:08:13 +01:00
fnc_removeStat.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00
fnc_removeVirtualItems.sqf Arsenal - Fix FUNC(removeVirtualItems) for JIP players (#9650) 2023-11-17 20:06:20 -03:00
fnc_renameDefaultLoadout.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00
fnc_replaceUniqueItemsLoadout.sqf Arsenal - Native baseWeapon support for CBA items (#9799) 2024-03-02 14:29:20 -03:00
fnc_saveLoadout.sqf Arsenal - Add ace_arsenal_fnc_saveLoadout as API to save loadouts (#10151) 2024-08-10 12:01:12 -07:00
fnc_scanConfig.sqf Medical - Support Magazine Treatment Items (#9816) 2024-03-21 22:56:24 +01:00
fnc_showItem.sqf All - Fix parentheses around code (#10073) 2024-06-18 14:08:03 +00:00
fnc_sortPanel.sqf Arsenal - Revert unicode support for sorting (#9871) 2024-03-23 06:29:26 -07:00
fnc_sortStatement_accuracy.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00
fnc_sortStatement_amount.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00
fnc_sortStatement_magCount.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00
fnc_sortStatement_mass.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00
fnc_sortStatement_mod.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00
fnc_sortStatement_protection.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00
fnc_sortStatement_rateOfFire.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00
fnc_sortStatement_scopeMag.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00
fnc_statBarStatement_accuracy.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00
fnc_statBarStatement_default.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00
fnc_statBarStatement_impact.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00
fnc_statBarStatement_rateOfFIre.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00
fnc_statTextStatement_accuracy.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00
fnc_statTextStatement_binoMag.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00
fnc_statTextStatement_binoVisionMode.sqf General - Replace toLower with toLowerANSI where applicable (#9790) 2024-03-07 22:08:13 +01:00
fnc_statTextStatement_explosionTime.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00
fnc_statTextStatement_illuminators.sqf General - SQF Improvements (#9698) 2024-02-04 14:50:24 -03:00
fnc_statTextStatement_load.sqf Arsenal - Show load stat's actual value (#9833) 2024-03-09 17:17:13 -06:00
fnc_statTextStatement_magCount.sqf Arsenal - Fix saving loadouts on new profiles (#9523) 2023-10-18 14:17:22 -04:00
fnc_statTextStatement_mass.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00
fnc_statTextStatement_rateOfFire.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00
fnc_statTextStatement_scopeMag.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00
fnc_statTextStatement_scopeVisionMode.sqf General - Replace toLower with toLowerANSI where applicable (#9790) 2024-03-07 22:08:13 +01:00
fnc_statTextStatement_smokeChemTTL.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00
fnc_updateCamPos.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00
fnc_updateCurrentItemsList.sqf Arsenal - Native baseWeapon support for CBA items (#9799) 2024-03-02 14:29:20 -03:00
fnc_updateRightPanel.sqf Arsenal - Use canAdd to check if item can be added to container (#9699) 2023-12-31 09:01:04 -03:00
fnc_updateUniqueItemsList.sqf Arsenal - Native baseWeapon support for CBA items (#9799) 2024-03-02 14:29:20 -03:00
fnc_updateVirtualItemsFlat.sqf Arsenal - Add support for modifying Virtual Items while opened (#9542) 2023-10-23 13:31:21 -04:00
fnc_verifyLoadout.sqf Arsenal - Handle arrays in loadout extended info (#9918) 2024-04-03 19:46:26 -03:00