2023-09-12 18:58:10 +00:00
|
|
|
#include "..\script_component.hpp"
|
2018-09-17 19:19:29 +00:00
|
|
|
#include "..\defines.hpp"
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
#include "\a3\ui_f\hpp\defineResincl.inc"
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
/*
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
* Author: Alganthe, johnb43
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
* Handles selection changes on the left panel.
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: Left panel control <CONTROL>
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
* 1: Left panel selection <NUMBER>
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* None
|
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
|
|
|
|
params ["_control", "_curSel"];
|
|
|
|
|
|
|
|
if (_curSel < 0) exitwith {};
|
|
|
|
|
|
|
|
private _display = ctrlParent _control;
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
private _item = [_control lbData _curSel, _control lnbData [_curSel, 0]] select (ctrlType _control == CT_LISTNBOX);
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
// When having chosen a new category, see if the current right panel can be kept open, otherwise take default
|
2023-10-26 16:59:00 +00:00
|
|
|
private _currentRightPanel = _display displayCtrl GVAR(currentRightPanel);
|
|
|
|
private _selectCorrectPanelWeapon = [_display displayCtrl IDC_buttonOptic, _currentRightPanel] select (!isNil QGVAR(currentRightPanel) && {GVAR(currentRightPanel) in [RIGHT_PANEL_ACC_IDCS, IDC_buttonCurrentMag, IDC_buttonCurrentMag2]});
|
|
|
|
private _selectCorrectPanelContainer = [_display displayCtrl IDC_buttonMisc, _currentRightPanel] select (!isNil QGVAR(currentRightPanel) && {GVAR(currentRightPanel) in [RIGHT_PANEL_ITEMS_IDCS]});
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
// Remove all magazines from the current weapon that aren't compatible with the new weapon
|
|
|
|
private _fnc_clearCurrentWeaponMags = {
|
|
|
|
private _compatibleMagsCurrentWeapon = compatibleMagazines _currentWeapon;
|
2022-03-07 18:26:56 +00:00
|
|
|
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
// If nothing was selected, remove all magazines from the current weapon
|
2022-03-07 18:26:56 +00:00
|
|
|
if (_item != "") then {
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
_compatibleMagsCurrentWeapon = _compatibleMagsCurrentWeapon - _compatibleMags;
|
2022-03-07 18:26:56 +00:00
|
|
|
};
|
|
|
|
|
2018-05-31 23:00:29 +00:00
|
|
|
{
|
|
|
|
GVAR(center) removeMagazines _x;
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
} forEach _compatibleMagsCurrentWeapon;
|
|
|
|
|
|
|
|
// Update currentItems
|
|
|
|
private _loadout = getUnitLoadout GVAR(center);
|
2018-05-31 23:00:29 +00:00
|
|
|
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
GVAR(currentItems) set [IDX_CURR_UNIFORM_ITEMS, (_loadout select IDX_LOADOUT_UNIFORM) param [1, []]];
|
|
|
|
GVAR(currentItems) set [IDX_CURR_VEST_ITEMS, (_loadout select IDX_LOADOUT_VEST) param [1, []]];
|
|
|
|
GVAR(currentItems) set [IDX_CURR_BACKPACK_ITEMS, (_loadout select IDX_LOADOUT_BACKPACK) param [1, []]];
|
2018-05-31 23:00:29 +00:00
|
|
|
};
|
|
|
|
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
// Check which right panel has changed
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
switch (GVAR(currentLeftPanel)) do {
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
// Primary weapon
|
|
|
|
case IDC_buttonPrimaryWeapon: {
|
|
|
|
private _currentWeapon = GVAR(currentItems) select IDX_CURR_PRIMARY_WEAPON;
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
// If nothing selected, remove primary weapon and its magazines
|
2018-05-31 23:00:29 +00:00
|
|
|
if (_item == "") then {
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
call _fnc_clearCurrentWeaponMags;
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
|
2018-05-31 23:00:29 +00:00
|
|
|
GVAR(center) removeWeapon (primaryWeapon GVAR(center));
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
GVAR(currentItems) set [IDX_CURR_PRIMARY_WEAPON_ITEMS, ["", "", "", "", "", ""]];
|
|
|
|
GVAR(currentItems) set [IDX_CURR_PRIMARY_WEAPON, ""];
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
|
2018-05-31 23:00:29 +00:00
|
|
|
TOGGLE_RIGHT_PANEL_HIDE
|
|
|
|
} else {
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
// Check if a new primary weapon was selected
|
|
|
|
if (_item != _currentWeapon) then {
|
|
|
|
// Get magazines that are compatible with the new weapon
|
|
|
|
private _compatibleMags = compatibleMagazines _item;
|
|
|
|
|
|
|
|
// Remove all magazines from the current weapon that aren't compatible with the new one
|
|
|
|
call _fnc_clearCurrentWeaponMags;
|
|
|
|
|
|
|
|
// Add new weapon without taking a magazine from the inventory
|
|
|
|
[GVAR(center), _item] call EFUNC(common,addWeapon);
|
|
|
|
|
|
|
|
private _linkedItems = primaryWeaponItems GVAR(center) - [""];
|
|
|
|
|
|
|
|
// Remove linked items if unavailable
|
|
|
|
if (_linkedItems isNotEqualTo []) then {
|
|
|
|
{
|
|
|
|
if !(_x in GVAR(virtualItemsFlat)) then {
|
|
|
|
GVAR(center) removePrimaryWeaponItem _x;
|
|
|
|
};
|
|
|
|
} forEach _linkedItems;
|
2020-02-22 21:15:09 +00:00
|
|
|
};
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
// Add old attachments and magazines back if they are compatible
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
{
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
if (_item canAdd _x) then {
|
|
|
|
GVAR(center) addWeaponItem [_item, _x, true];
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
};
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
} forEach (GVAR(currentItems) select IDX_CURR_PRIMARY_WEAPON_ITEMS);
|
|
|
|
|
|
|
|
(getUnitLoadout GVAR(center) select IDX_LOADOUT_PRIMARY_WEAPON) params ["", "_muzzle", "_flashlight", "_optics", "_primaryMagazine", "_secondaryMagazine", "_bipod"];
|
|
|
|
|
|
|
|
_primaryMagazine = _primaryMagazine param [0, ""];
|
|
|
|
|
|
|
|
// Add a magazine to the primary muzzle if empty
|
|
|
|
if (_primaryMagazine == "") then {
|
|
|
|
// Get magazines that are compatible with the new weapon's primary muzzle only
|
|
|
|
private _compatibleMagsPrimaryMuzzle = compatibleMagazines [_item, "this"];
|
|
|
|
private _compatibleMagIndex = _compatibleMagsPrimaryMuzzle findAny (keys (GVAR(virtualItems) get IDX_VIRT_ITEMS_ALL));
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
if (_compatibleMagIndex != -1) then {
|
|
|
|
_primaryMagazine = _compatibleMagsPrimaryMuzzle select _compatibleMagIndex;
|
|
|
|
GVAR(center) addWeaponItem [_item, _primaryMagazine, true];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
// Update currentItems
|
|
|
|
GVAR(currentItems) set [IDX_CURR_PRIMARY_WEAPON_ITEMS, [_muzzle, _flashlight, _optics, _bipod, _primaryMagazine, _secondaryMagazine param [0, ""]]];
|
|
|
|
GVAR(currentItems) set [IDX_CURR_PRIMARY_WEAPON, _item];
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
TOGGLE_RIGHT_PANEL_WEAPON
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
|
2023-10-26 16:59:00 +00:00
|
|
|
[_display, _selectCorrectPanelWeapon, !GVAR(refreshing) && {_currentRightPanel isNotEqualTo _selectCorrectPanelWeapon}] call FUNC(fillRightPanel);
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
};
|
|
|
|
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
// Make unit switch to new item
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
call FUNC(showItem);
|
|
|
|
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
// Display new items's info on the bottom right
|
|
|
|
[_display, _control, _curSel, configFile >> "CfgWeapons" >> _item] call FUNC(itemInfo);
|
|
|
|
};
|
|
|
|
// Handgun weapon
|
|
|
|
case IDC_buttonHandgun: {
|
|
|
|
private _currentWeapon = GVAR(currentItems) select IDX_CURR_HANDGUN_WEAPON;
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
// If nothing selected, remove handgun weapon and its magazines
|
2018-05-31 23:00:29 +00:00
|
|
|
if (_item == "") then {
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
call _fnc_clearCurrentWeaponMags;
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
|
2018-05-31 23:00:29 +00:00
|
|
|
GVAR(center) removeWeapon (handgunWeapon GVAR(center));
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
GVAR(currentItems) set [IDX_CURR_HANDGUN_WEAPON_ITEMS, ["", "", "", "", "", ""]];
|
|
|
|
GVAR(currentItems) set [IDX_CURR_HANDGUN_WEAPON, ""];
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
|
2018-05-31 23:00:29 +00:00
|
|
|
TOGGLE_RIGHT_PANEL_HIDE
|
|
|
|
} else {
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
// Check if a new handgun weapon was selected
|
|
|
|
if (_item != _currentWeapon) then {
|
|
|
|
// Get magazines that are compatible with the new weapon
|
|
|
|
private _compatibleMags = compatibleMagazines _item;
|
|
|
|
|
|
|
|
// Remove all magazines from the current weapon that aren't compatible with the new one
|
|
|
|
call _fnc_clearCurrentWeaponMags;
|
|
|
|
|
|
|
|
// Add new weapon without taking a magazine from the inventory
|
|
|
|
[GVAR(center), _item] call EFUNC(common,addWeapon);
|
|
|
|
|
|
|
|
private _linkedItems = handgunItems GVAR(center) - [""];
|
|
|
|
|
|
|
|
// Remove linked items if unavailable
|
|
|
|
if (_linkedItems isNotEqualTo []) then {
|
|
|
|
{
|
|
|
|
if !(_x in GVAR(virtualItemsFlat)) then {
|
|
|
|
GVAR(center) removeHandgunItem _x;
|
|
|
|
};
|
|
|
|
} forEach _linkedItems;
|
2020-02-22 21:15:09 +00:00
|
|
|
};
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
// Add old attachments and magazines back if they are compatible
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
{
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
|
|
|
|
if (_item canAdd _x) then {
|
|
|
|
GVAR(center) addWeaponItem [_item, _x, true];
|
|
|
|
};
|
|
|
|
} forEach (GVAR(currentItems) select IDX_CURR_HANDGUN_WEAPON_ITEMS);
|
|
|
|
|
|
|
|
(getUnitLoadout GVAR(center) select IDX_LOADOUT_HANDGUN_WEAPON) params ["", "_muzzle", "_flashlight", "_optics", "_primaryMagazine", "_secondaryMagazine", "_bipod"];
|
|
|
|
|
|
|
|
_primaryMagazine = _primaryMagazine param [0, ""];
|
|
|
|
|
|
|
|
// Add a magazine to the primary muzzle if empty
|
|
|
|
if (_primaryMagazine == "") then {
|
|
|
|
// Get magazines that are compatible with the new weapon's primary muzzle only
|
|
|
|
private _compatibleMagsPrimaryMuzzle = compatibleMagazines [_item, "this"];
|
|
|
|
private _compatibleMagIndex = _compatibleMagsPrimaryMuzzle findAny (keys (GVAR(virtualItems) get IDX_VIRT_ITEMS_ALL));
|
|
|
|
|
|
|
|
if (_compatibleMagIndex != -1) then {
|
|
|
|
_primaryMagazine = _compatibleMagsPrimaryMuzzle select _compatibleMagIndex;
|
|
|
|
GVAR(center) addWeaponItem [_item, _primaryMagazine, true];
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
};
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
};
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
// Update currentItems
|
|
|
|
GVAR(currentItems) set [IDX_CURR_HANDGUN_WEAPON_ITEMS, [_muzzle, _flashlight, _optics, _bipod, _primaryMagazine, _secondaryMagazine param [0, ""]]];
|
|
|
|
GVAR(currentItems) set [IDX_CURR_HANDGUN_WEAPON, _item];
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
TOGGLE_RIGHT_PANEL_WEAPON
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
|
2023-10-26 16:59:00 +00:00
|
|
|
[_display, _selectCorrectPanelWeapon, !GVAR(refreshing) && {_currentRightPanel isNotEqualTo _selectCorrectPanelWeapon}] call FUNC(fillRightPanel);
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
};
|
|
|
|
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
// Make unit switch to new item
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
call FUNC(showItem);
|
|
|
|
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
// Display new items's info on the bottom right
|
|
|
|
[_display, _control, _curSel, configFile >> "CfgWeapons" >> _item] call FUNC(itemInfo);
|
|
|
|
};
|
|
|
|
// Secondary weapon
|
|
|
|
case IDC_buttonSecondaryWeapon: {
|
|
|
|
private _currentWeapon = GVAR(currentItems) select IDX_CURR_SECONDARY_WEAPON;
|
|
|
|
private _isDisposable = _item in (uiNamespace getVariable QGVAR(CBAdisposableLaunchers));
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
// If nothing selected, remove secondary weapon and its magazines
|
2018-05-31 23:00:29 +00:00
|
|
|
if (_item == "") then {
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
call _fnc_clearCurrentWeaponMags;
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
|
2018-05-31 23:00:29 +00:00
|
|
|
GVAR(center) removeWeapon (secondaryWeapon GVAR(center));
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
GVAR(currentItems) set [IDX_CURR_SECONDARY_WEAPON_ITEMS, ["", "", "", "", "", ""]];
|
|
|
|
GVAR(currentItems) set [IDX_CURR_SECONDARY_WEAPON, ""];
|
|
|
|
|
2018-05-31 23:00:29 +00:00
|
|
|
TOGGLE_RIGHT_PANEL_HIDE
|
|
|
|
} else {
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
// Check if a new secondary weapon was selected
|
|
|
|
if (_item != _currentWeapon) then {
|
|
|
|
// Get magazines that are compatible with the new weapon
|
|
|
|
private _compatibleMags = compatibleMagazines _item;
|
|
|
|
|
|
|
|
// Remove all magazines from the current weapon that aren't compatible with the new one
|
|
|
|
call _fnc_clearCurrentWeaponMags;
|
|
|
|
|
|
|
|
// Add new weapon without taking a magazine from the inventory
|
|
|
|
[GVAR(center), _item] call EFUNC(common,addWeapon);
|
|
|
|
|
|
|
|
private _linkedItems = secondaryWeaponItems GVAR(center) - [""];
|
|
|
|
|
|
|
|
// Remove linked items if unavailable
|
|
|
|
if (_linkedItems isNotEqualTo []) then {
|
|
|
|
{
|
|
|
|
if !(_x in GVAR(virtualItemsFlat)) then {
|
|
|
|
GVAR(center) removeSecondaryWeaponItem _x;
|
|
|
|
};
|
|
|
|
} forEach _linkedItems;
|
2020-02-22 21:15:09 +00:00
|
|
|
};
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
// Add old attachments and magazines back if they are compatible
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
{
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
if (_item canAdd _x) then {
|
|
|
|
GVAR(center) addWeaponItem [_item, _x, true];
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
};
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
} forEach (GVAR(currentItems) select IDX_CURR_SECONDARY_WEAPON_ITEMS);
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
(getUnitLoadout GVAR(center) select IDX_LOADOUT_SECONDARY_WEAPON) params ["", "_muzzle", "_flashlight", "_optics", "_primaryMagazine", "_secondaryMagazine", "_bipod"];
|
|
|
|
|
|
|
|
_primaryMagazine = _primaryMagazine param [0, ""];
|
|
|
|
|
|
|
|
// Add a magazine to the primary muzzle if empty
|
|
|
|
if (_primaryMagazine == "") then {
|
|
|
|
// Get magazines that are compatible with the new weapon's primary muzzle only
|
|
|
|
private _compatibleMagsPrimaryMuzzle = compatibleMagazines [_item, "this"];
|
|
|
|
private _compatibleMagIndex = _compatibleMagsPrimaryMuzzle findAny (keys (GVAR(virtualItems) get IDX_VIRT_ITEMS_ALL));
|
|
|
|
|
|
|
|
if (_compatibleMagIndex != -1) then {
|
|
|
|
_primaryMagazine = _compatibleMagsPrimaryMuzzle select _compatibleMagIndex;
|
|
|
|
GVAR(center) addWeaponItem [_item, _primaryMagazine, true];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
// Update currentItems
|
|
|
|
GVAR(currentItems) set [IDX_CURR_SECONDARY_WEAPON_ITEMS, [_muzzle, _flashlight, _optics, _bipod, _primaryMagazine, _secondaryMagazine param [0, ""]]];
|
|
|
|
GVAR(currentItems) set [IDX_CURR_SECONDARY_WEAPON, _item];
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
TOGGLE_RIGHT_PANEL_WEAPON
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
|
|
|
|
// If item is a disposable launcher, delay a bit to show new compatible items
|
|
|
|
if (_isDisposable) then {
|
|
|
|
[{
|
|
|
|
_this call FUNC(fillRightPanel);
|
|
|
|
}, [_display, _selectCorrectPanelWeapon]] call CBA_fnc_execNextFrame;
|
|
|
|
} else {
|
2023-10-26 16:59:00 +00:00
|
|
|
[_display, _selectCorrectPanelWeapon, !GVAR(refreshing) && {_currentRightPanel isNotEqualTo _selectCorrectPanelWeapon}] call FUNC(fillRightPanel);
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
};
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
};
|
|
|
|
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
// If item is a disposable launcher, delay a bit to show new compatible items
|
|
|
|
if (_isDisposable) then {
|
|
|
|
[{
|
|
|
|
// Make unit switch to new item
|
|
|
|
call FUNC(showItem);
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
// Display new items's info on the bottom right
|
|
|
|
_this call FUNC(itemInfo);
|
|
|
|
}, [_display, _control, _curSel, configFile >> "CfgWeapons" >> _item]] call CBA_fnc_execNextFrame;
|
|
|
|
} else {
|
|
|
|
// Make unit switch to new item
|
|
|
|
call FUNC(showItem);
|
2018-05-31 23:00:29 +00:00
|
|
|
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
// Display new items's info on the bottom right
|
|
|
|
[_display, _control, _curSel, configFile >> "CfgWeapons" >> _item] call FUNC(itemInfo);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
// Headgear
|
|
|
|
case IDC_buttonHeadgear: {
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
if (_item == "") then {
|
|
|
|
removeHeadgear GVAR(center);
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
GVAR(currentItems) set [IDX_CURR_HEADGEAR, ""];
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
} else {
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
if ((GVAR(currentItems) select IDX_CURR_HEADGEAR) != _item) then {
|
2018-05-31 23:00:29 +00:00
|
|
|
GVAR(center) addHeadgear _item;
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
GVAR(currentItems) set [IDX_CURR_HEADGEAR, _item];
|
2018-05-31 23:00:29 +00:00
|
|
|
};
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
};
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
|
|
|
|
// Make unit switch to new item
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
call FUNC(showItem);
|
2018-05-31 23:00:29 +00:00
|
|
|
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
TOGGLE_RIGHT_PANEL_HIDE
|
|
|
|
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
// Display new items's info on the bottom right
|
|
|
|
[_display, _control, _curSel, configFile >> "CfgWeapons" >> _item] call FUNC(itemInfo);
|
|
|
|
};
|
|
|
|
// Uniform
|
|
|
|
case IDC_buttonUniform: {
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
if (_item == "") then {
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
removeUniform GVAR(center);
|
|
|
|
|
|
|
|
GVAR(currentItems) set [IDX_CURR_UNIFORM_ITEMS, []];
|
|
|
|
GVAR(currentItems) set [IDX_CURR_UNIFORM, ""];
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
|
|
|
|
TOGGLE_RIGHT_PANEL_HIDE
|
|
|
|
} else {
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
if ((GVAR(currentItems) select IDX_CURR_UNIFORM) != _item) then {
|
|
|
|
// Get the unit's current loadout and just change the container
|
|
|
|
private _loadout = getUnitLoadout GVAR(center);
|
|
|
|
_loadout set [IDX_LOADOUT_UNIFORM, [_item, GVAR(currentItems) select IDX_CURR_UNIFORM_ITEMS]];
|
|
|
|
GVAR(center) setUnitLoadout _loadout;
|
|
|
|
|
|
|
|
private _uniformItems = uniformItems GVAR(center);
|
|
|
|
private _index = count _uniformItems - 1;
|
|
|
|
|
|
|
|
// Remove any items that can't fit in the container (this prevents overloading)
|
|
|
|
while {loadUniform GVAR(center) > 1 && {_index >= 0}} do {
|
|
|
|
GVAR(center) removeItemFromUniform (_uniformItems select _index);
|
|
|
|
DEC(_index);
|
|
|
|
};
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
GVAR(currentItems) set [IDX_CURR_UNIFORM, _item];
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
[GVAR(center), ""] call BIS_fnc_setUnitInsignia;
|
|
|
|
[GVAR(center), GVAR(currentInsignia)] call BIS_fnc_setUnitInsignia;
|
2018-05-31 23:00:29 +00:00
|
|
|
};
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
|
|
|
|
TOGGLE_RIGHT_PANEL_CONTAINER
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
|
2023-10-26 16:59:00 +00:00
|
|
|
[_display, _selectCorrectPanelContainer, !GVAR(refreshing) && {_currentRightPanel isNotEqualTo _selectCorrectPanelContainer}] call FUNC(fillRightPanel);
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
};
|
|
|
|
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
// Make unit switch to new item
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
call FUNC(showItem);
|
|
|
|
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
// Display new items's info on the bottom right
|
|
|
|
[_display, _control, _curSel, configFile >> "CfgWeapons" >> _item] call FUNC(itemInfo);
|
|
|
|
};
|
|
|
|
// Vest
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
case IDC_buttonVest: {
|
|
|
|
if (_item == "") then {
|
|
|
|
removeVest GVAR(center);
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
GVAR(currentItems) set [IDX_CURR_VEST_ITEMS, []];
|
|
|
|
GVAR(currentItems) set [IDX_CURR_VEST, ""];
|
|
|
|
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
TOGGLE_RIGHT_PANEL_HIDE
|
|
|
|
} else {
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
if ((GVAR(currentItems) select IDX_CURR_VEST) != _item) then {
|
|
|
|
// Get the unit's current loadout and just change the container
|
|
|
|
private _loadout = getUnitLoadout GVAR(center);
|
|
|
|
_loadout set [IDX_LOADOUT_VEST, [_item, GVAR(currentItems) select IDX_CURR_VEST_ITEMS]];
|
|
|
|
GVAR(center) setUnitLoadout _loadout;
|
|
|
|
|
|
|
|
private _vestItems = vestItems GVAR(center);
|
|
|
|
private _index = count _vestItems - 1;
|
|
|
|
|
|
|
|
// Remove any items that can't fit in the container (this prevents overloading)
|
|
|
|
while {loadVest GVAR(center) > 1 && {_index >= 0}} do {
|
|
|
|
GVAR(center) removeItemFromVest (_vestItems select _index);
|
|
|
|
DEC(_index);
|
|
|
|
};
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
GVAR(currentItems) set [IDX_CURR_VEST, _item];
|
2024-05-29 18:40:41 +00:00
|
|
|
|
|
|
|
[GVAR(center), ""] call BIS_fnc_setUnitInsignia;
|
|
|
|
[GVAR(center), GVAR(currentInsignia)] call BIS_fnc_setUnitInsignia;
|
2018-05-31 23:00:29 +00:00
|
|
|
};
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
|
|
|
|
TOGGLE_RIGHT_PANEL_CONTAINER
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
|
2023-10-26 16:59:00 +00:00
|
|
|
[_display, _selectCorrectPanelContainer, !GVAR(refreshing) && {_currentRightPanel isNotEqualTo _selectCorrectPanelContainer}] call FUNC(fillRightPanel);
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
};
|
|
|
|
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
// Make unit switch to new item
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
call FUNC(showItem);
|
|
|
|
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
// Display new items's info on the bottom right
|
|
|
|
[_display, _control, _curSel, configFile >> "CfgWeapons" >> _item] call FUNC(itemInfo);
|
|
|
|
};
|
|
|
|
// Backpack
|
|
|
|
case IDC_buttonBackpack: {
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
if (_item == "") then {
|
|
|
|
removeBackpack GVAR(center);
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
GVAR(currentItems) set [IDX_CURR_BACKPACK_ITEMS, []];
|
|
|
|
GVAR(currentItems) set [IDX_CURR_BACKPACK, ""];
|
|
|
|
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
TOGGLE_RIGHT_PANEL_HIDE
|
|
|
|
} else {
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
if ((GVAR(currentItems) select IDX_CURR_BACKPACK) != _item) then {
|
|
|
|
// Get the unit's current loadout and just change the container
|
|
|
|
private _loadout = getUnitLoadout GVAR(center);
|
|
|
|
_loadout set [IDX_LOADOUT_BACKPACK, [_item, GVAR(currentItems) select IDX_CURR_BACKPACK_ITEMS]];
|
|
|
|
GVAR(center) setUnitLoadout _loadout;
|
|
|
|
|
|
|
|
private _backpackItems = backpackItems GVAR(center);
|
|
|
|
private _index = count _backpackItems - 1;
|
|
|
|
|
|
|
|
// Remove any items that can't fit in the container (this prevents overloading)
|
|
|
|
while {loadBackpack GVAR(center) > 1 && {_index >= 0}} do {
|
|
|
|
GVAR(center) removeItemFromBackpack (_backpackItems select _index);
|
|
|
|
DEC(_index);
|
|
|
|
};
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
GVAR(currentItems) set [IDX_CURR_BACKPACK, _item];
|
2024-05-29 18:40:41 +00:00
|
|
|
|
|
|
|
[GVAR(center), ""] call BIS_fnc_setUnitInsignia;
|
|
|
|
[GVAR(center), GVAR(currentInsignia)] call BIS_fnc_setUnitInsignia;
|
2018-05-31 23:00:29 +00:00
|
|
|
};
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
|
|
|
|
TOGGLE_RIGHT_PANEL_CONTAINER
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
|
2023-10-26 16:59:00 +00:00
|
|
|
[_display, _selectCorrectPanelContainer, !GVAR(refreshing) && {_currentRightPanel isNotEqualTo _selectCorrectPanelContainer}] call FUNC(fillRightPanel);
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
};
|
|
|
|
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
// Make unit switch to new item
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
call FUNC(showItem);
|
|
|
|
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
// Display new items's info on the bottom right
|
|
|
|
[_display, _control, _curSel, configFile >> "CfgVehicles" >> _item] call FUNC(itemInfo);
|
|
|
|
};
|
|
|
|
// Facewear
|
|
|
|
case IDC_buttonGoggles: {
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
if (_item == "") then {
|
|
|
|
removeGoggles GVAR(center);
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
GVAR(currentItems) set [IDX_CURR_GOGGLES, ""];
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
} else {
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
if ((GVAR(currentItems) select IDX_CURR_GOGGLES) != _item) then {
|
2018-05-31 23:00:29 +00:00
|
|
|
GVAR(center) addGoggles _item;
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
GVAR(currentItems) set [IDX_CURR_GOGGLES, _item];
|
2018-05-31 23:00:29 +00:00
|
|
|
};
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
};
|
|
|
|
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
// Make unit switch to new item
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
call FUNC(showItem);
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
TOGGLE_RIGHT_PANEL_HIDE
|
|
|
|
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
// Display new items's info on the bottom right
|
|
|
|
[_display, _control, _curSel, configFile >> "CfgGlasses" >> _item] call FUNC(itemInfo);
|
|
|
|
};
|
|
|
|
// NVG
|
|
|
|
case IDC_buttonNVG: {
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
if (_item == "") then {
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
GVAR(center) unlinkItem (GVAR(currentItems) select IDX_CURR_NVG);
|
|
|
|
GVAR(currentItems) set [IDX_CURR_NVG, ""];
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
} else {
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
if ((GVAR(currentItems) select IDX_CURR_NVG) != _item) then {
|
2018-05-31 23:00:29 +00:00
|
|
|
GVAR(center) linkItem _item;
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
GVAR(currentItems) set [IDX_CURR_NVG, _item];
|
2018-05-31 23:00:29 +00:00
|
|
|
};
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
};
|
|
|
|
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
// Make unit switch to new item
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
call FUNC(showItem);
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
TOGGLE_RIGHT_PANEL_HIDE
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
|
|
|
|
// Display new items's info on the bottom right
|
|
|
|
[_display, _control, _curSel, configFile >> "CfgWeapons" >> _item] call FUNC(itemInfo);
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
};
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
// Binoculars
|
|
|
|
case IDC_buttonBinoculars: {
|
|
|
|
private _currentWeapon = GVAR(currentItems) select IDX_CURR_BINO;
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
// If nothing selected, remove secondary weapon and its magazines
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
if (_item == "") then {
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
call _fnc_clearCurrentWeaponMags;
|
|
|
|
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
GVAR(center) removeWeapon (binocular GVAR(center));
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
GVAR(currentItems) set [IDX_CURR_BINO_ITEMS, ["", "", "", "", "", ""]];
|
|
|
|
GVAR(currentItems) set [IDX_CURR_BINO, ""];
|
|
|
|
|
|
|
|
TOGGLE_RIGHT_PANEL_HIDE
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
} else {
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
// Check if a new binocular was selected
|
|
|
|
if (_item != _currentWeapon) then {
|
|
|
|
// Get magazines that are compatible with the new binocular
|
|
|
|
private _compatibleMags = compatibleMagazines _item;
|
|
|
|
|
|
|
|
// Remove all magazines from the current binocular that aren't compatible with the new one
|
|
|
|
call _fnc_clearCurrentWeaponMags;
|
|
|
|
|
|
|
|
// Add new weapon without taking a magazine from the inventory
|
|
|
|
[GVAR(center), _item] call EFUNC(common,addWeapon);
|
|
|
|
|
|
|
|
private _linkedItems = binocularItems GVAR(center) - [""];
|
|
|
|
|
|
|
|
// Remove linked items if unavailable
|
|
|
|
if (_linkedItems isNotEqualTo []) then {
|
|
|
|
{
|
|
|
|
if !(_x in GVAR(virtualItemsFlat)) then {
|
|
|
|
GVAR(center) removeBinocularItem _x;
|
|
|
|
};
|
|
|
|
} forEach _linkedItems;
|
|
|
|
};
|
|
|
|
|
|
|
|
// Add old attachments and magazines back if they are compatible
|
|
|
|
{
|
|
|
|
if (_item canAdd _x) then {
|
|
|
|
GVAR(center) addWeaponItem [_item, _x, true];
|
|
|
|
};
|
|
|
|
} forEach (GVAR(currentItems) select IDX_CURR_BINO_ITEMS);
|
|
|
|
|
|
|
|
(getUnitLoadout GVAR(center) select IDX_LOADOUT_BINO) params ["", "_muzzle", "_flashlight", "_optics", "_primaryMagazine", "_secondaryMagazine", "_bipod"];
|
|
|
|
|
|
|
|
_primaryMagazine = _primaryMagazine param [0, ""];
|
|
|
|
|
|
|
|
// Add a magazine to the primary muzzle if empty
|
|
|
|
if (_primaryMagazine == "") then {
|
|
|
|
// Get magazines that are compatible with the new weapon's primary muzzle only
|
|
|
|
private _compatibleMagsPrimaryMuzzle = compatibleMagazines [_item, "this"];
|
|
|
|
private _compatibleMagIndex = _compatibleMagsPrimaryMuzzle findAny (keys (GVAR(virtualItems) get IDX_VIRT_ITEMS_ALL));
|
|
|
|
|
|
|
|
if (_compatibleMagIndex != -1) then {
|
|
|
|
_primaryMagazine = _compatibleMagsPrimaryMuzzle select _compatibleMagIndex;
|
|
|
|
GVAR(center) addWeaponItem [_item, _primaryMagazine, true];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
// Update currentItems
|
|
|
|
GVAR(currentItems) set [IDX_CURR_BINO_ITEMS, [_muzzle, _flashlight, _optics, _bipod, _primaryMagazine, _secondaryMagazine param [0, ""]]];
|
|
|
|
GVAR(currentItems) set [IDX_CURR_BINO, _item];
|
2018-05-31 23:00:29 +00:00
|
|
|
};
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
|
|
|
|
TOGGLE_RIGHT_PANEL_WEAPON
|
|
|
|
|
2023-10-26 16:59:00 +00:00
|
|
|
[_display, _selectCorrectPanelWeapon, !GVAR(refreshing) && {_currentRightPanel isNotEqualTo _selectCorrectPanelWeapon}] call FUNC(fillRightPanel);
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
};
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
|
|
|
|
// Make unit switch to new item
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
call FUNC(showItem);
|
|
|
|
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
// Display new items's info on the bottom right
|
|
|
|
[_display, _control, _curSel, configFile >> "CfgWeapons" >> _item] call FUNC(itemInfo);
|
|
|
|
};
|
|
|
|
// Map
|
|
|
|
case IDC_buttonMap: {
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
if (_item == "") then {
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
GVAR(center) unlinkItem (GVAR(currentItems) select IDX_CURR_MAP);
|
|
|
|
GVAR(currentItems) set [IDX_CURR_MAP, ""];
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
} else {
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
if ((GVAR(currentItems) select IDX_CURR_MAP) != _item) then {
|
2018-05-31 23:00:29 +00:00
|
|
|
GVAR(center) linkItem _item;
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
GVAR(currentItems) set [IDX_CURR_MAP, _item];
|
2018-05-31 23:00:29 +00:00
|
|
|
};
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
};
|
|
|
|
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
// Make unit switch to new item
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
call FUNC(showItem);
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
TOGGLE_RIGHT_PANEL_HIDE
|
|
|
|
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
// Display new items's info on the bottom right
|
|
|
|
[_display, _control, _curSel, configFile >> "CfgWeapons" >> _item] call FUNC(itemInfo);
|
|
|
|
};
|
|
|
|
// Compass
|
|
|
|
case IDC_buttonCompass: {
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
if (_item == "") then {
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
GVAR(center) unlinkItem (GVAR(currentItems) select IDX_CURR_COMPASS);
|
|
|
|
GVAR(currentItems) set [IDX_CURR_COMPASS, ""];
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
} else {
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
if ((GVAR(currentItems) select IDX_CURR_COMPASS) != _item) then {
|
2018-05-31 23:00:29 +00:00
|
|
|
GVAR(center) linkItem _item;
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
GVAR(currentItems) set [IDX_CURR_COMPASS, _item];
|
2018-05-31 23:00:29 +00:00
|
|
|
};
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
};
|
|
|
|
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
// Make unit switch to new item
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
call FUNC(showItem);
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
TOGGLE_RIGHT_PANEL_HIDE
|
|
|
|
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
[_display, _control, _curSel, configFile >> "CfgWeapons" >> _item] call FUNC(itemInfo);
|
|
|
|
};
|
|
|
|
// Radio
|
|
|
|
case IDC_buttonRadio: {
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
if (_item == "") then {
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
GVAR(center) unlinkItem (GVAR(currentItems) select IDX_CURR_RADIO);
|
|
|
|
GVAR(currentItems) set [IDX_CURR_RADIO, ""];
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
} else {
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
if ((GVAR(currentItems) select IDX_CURR_RADIO) != _item) then {
|
2018-05-31 23:00:29 +00:00
|
|
|
GVAR(center) linkItem _item;
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
GVAR(currentItems) set [IDX_CURR_RADIO, _item];
|
2018-05-31 23:00:29 +00:00
|
|
|
};
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
};
|
|
|
|
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
// Make unit switch to new item
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
call FUNC(showItem);
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
TOGGLE_RIGHT_PANEL_HIDE
|
|
|
|
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
// Display new items's info on the bottom right
|
|
|
|
[_display, _control, _curSel, configFile >> "CfgWeapons" >> _item] call FUNC(itemInfo);
|
|
|
|
};
|
|
|
|
// Watch
|
|
|
|
case IDC_buttonWatch: {
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
if (_item == "") then {
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
GVAR(center) unlinkItem (GVAR(currentItems) select IDX_CURR_WATCH);
|
|
|
|
GVAR(currentItems) set [IDX_CURR_WATCH, ""];
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
} else {
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
if ((GVAR(currentItems) select IDX_CURR_WATCH) != _item) then {
|
2018-05-31 23:00:29 +00:00
|
|
|
GVAR(center) linkItem _item;
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
GVAR(currentItems) set [IDX_CURR_WATCH, _item];
|
2018-05-31 23:00:29 +00:00
|
|
|
};
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
};
|
|
|
|
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
// Make unit switch to new item
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
call FUNC(showItem);
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
TOGGLE_RIGHT_PANEL_HIDE
|
|
|
|
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
[_display, _control, _curSel, configFile >> "CfgWeapons" >> _item] call FUNC(itemInfo);
|
|
|
|
};
|
|
|
|
// GPS or UAV Terminal
|
|
|
|
case IDC_buttonGPS: {
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
if (_item == "") then {
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
GVAR(center) unlinkItem (GVAR(currentItems) select IDX_CURR_COMMS);
|
|
|
|
GVAR(currentItems) set [IDX_CURR_COMMS, ""];
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
} else {
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
if ((GVAR(currentItems) select IDX_CURR_COMMS) != _item) then {
|
2018-05-31 23:00:29 +00:00
|
|
|
GVAR(center) linkItem _item;
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
GVAR(currentItems) set [IDX_CURR_COMMS, _item];
|
2018-05-31 23:00:29 +00:00
|
|
|
};
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
};
|
|
|
|
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
// Make unit switch to new item
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
call FUNC(showItem);
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
TOGGLE_RIGHT_PANEL_HIDE
|
|
|
|
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
// Display new items's info on the bottom right
|
|
|
|
[_display, _control, _curSel, configFile >> "CfgWeapons" >> _item] call FUNC(itemInfo);
|
|
|
|
};
|
|
|
|
// Face
|
|
|
|
case IDC_buttonFace: {
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
private _face = [_item, "Default"] select (_item == "");
|
|
|
|
|
|
|
|
GVAR(center) setFace _face;
|
|
|
|
GVAR(currentFace) = _face;
|
|
|
|
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
// Make unit switch to new item
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
call FUNC(showItem);
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
TOGGLE_RIGHT_PANEL_HIDE
|
|
|
|
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
[_display, _control, _curSel, configFile >> "CfgFaces" >> _item] call FUNC(itemInfo);
|
|
|
|
};
|
|
|
|
// Voice
|
|
|
|
case IDC_buttonVoice: {
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
GVAR(center) setSpeaker _item;
|
|
|
|
GVAR(currentVoice) = _item;
|
|
|
|
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
// Make unit switch to new item
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
call FUNC(showItem);
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
TOGGLE_RIGHT_PANEL_HIDE
|
|
|
|
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
// Display new items's info on the bottom right
|
|
|
|
[_display, _control, _curSel, configFile >> "CfgVoice" >> _item] call FUNC(itemInfo);
|
|
|
|
};
|
|
|
|
// Insignia
|
|
|
|
case IDC_buttonInsignia: {
|
|
|
|
[GVAR(center), _item] call BIS_fnc_setUnitInsignia;
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
GVAR(currentInsignia) = _item;
|
|
|
|
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
// Make unit switch to new item
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
call FUNC(showItem);
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
TOGGLE_RIGHT_PANEL_HIDE
|
2018-08-31 16:35:12 +00:00
|
|
|
|
2024-02-13 19:22:27 +00:00
|
|
|
// Check for correct config: First mission, then campaign and finally regular config
|
|
|
|
private _itemCfg = missionConfigFile >> "CfgUnitInsignia" >> _item;
|
2018-08-31 16:35:12 +00:00
|
|
|
|
2024-02-13 19:22:27 +00:00
|
|
|
if (isNull _itemCfg) then {
|
|
|
|
_itemCfg = campaignConfigFile >> "CfgUnitInsignia" >> _item;
|
|
|
|
};
|
|
|
|
|
|
|
|
if (isNull _itemCfg) then {
|
|
|
|
_itemCfg = configFile >> "CfgUnitInsignia" >> _item;
|
2018-08-31 16:35:12 +00:00
|
|
|
};
|
2024-02-13 19:22:27 +00:00
|
|
|
|
|
|
|
// Display new items's info on the bottom right
|
|
|
|
[_display, _control, _curSel, _itemCfg] call FUNC(itemInfo);
|
Add ACE_Arsenal (#5734)
* Add CBA setting for modIcons
* Add CBA settings for camera control
* Merge the 2 inverted settings into one
There's no man crazy enough to need one inverted and the other normal
* Add back missing newline
* Change rscCommon, don't redefine base classes
* Change anim to "civil" when not in a weapon or special tab
* Fix current handgun ending up in launchers tab and vice versa
* Change back virtualItems first index to primary secondary handgun
* Add ace_arsenal_hide config check and config entry
* Add dogtags handling in postInit
* Add CBA setting for fontHeight for left and right panel
* magazineGroups
* Add base layout for loadouts GUI
* Prepare the SQF base for the loadouts display
* Continue laying the base for the SQF of the loadouts display
* Add CBA settings for the loadouts display
* Implement button logic for loadouts display
* Finish button logic, start adding filling and button funcs
* Add editBox for loadout names
* Add loadout saving and deleting
* Add loadouts loading
* Add select current after list is refreshed after saving
* Redo button layout, Add rename button, Add messages
* Add double click loading
* Fix loadout deleting not triggering curSel change
* Keep cursor at same index when deleting loadouts
Woops
* Reload pictures when saving over old loadout
* Fix loadout save not updating the pictures properly (again)
* Add close button for loadouts dialog
* Fix weight not updating when using arrows to add / remove items
* Make the arsenal layout a bit prettier
* Start adding non available items and missing mods for loadouts
* Remove useless lines in fillLoadouts
* Move buttonHide above panel fill in loadoutsClose
* Change the way weapons are checked in fillLoadoutsList
* Add weapon in container support for fillLoadoutsList
* Add mag in container check for fillLoadoutsList
* Add item check for containers in fillLoadoutsList
* Fix item duplication when loadout loadouts
* Switch anim to civil for the rest of the tabs that need it
* Make extra sure item duplication won't happen
* Fix right panel hiding issues
* Fix remove all button, use QGVAR for EHs names, add isMP check to share tab
* Fix initBox erroring out if the object is null
* Move loadout checking to it's own func
* Force panel reload every time loadoutList change
I'm forced to do this, I can't save arrays in listnboxes
* Change how loadouts are retrived from the listnbox
* Fix save overwriting existing loadout not updating right row
* Fix indentation in buttonLoadoutsSave
* Fix reserved var error
* Fix fillLoadoutlist tab check
* Fix accessories in containers not being checked properly via verifyLoadout
* Fix binos not being detected properly by verifyLoadout
* Fix pre-filled backpacks not behaving properly
* Add mine detector check in configScan and onArsenalOpen
* Add extra traces
* Add mine detector check in non cached part of addVirtualItems
* Move right panel greying to it's own func
* Fix right panel listnbox for items with mass under 1
* Redo unique items sorting in onArsenalOpen
* Add loadoutSaved EH, handle empty name box for loadout saving
* Reapply inisgnia after loadout is loaded
* Change LoadoutSaved to loadoutSaved
* Rename savedLoadout to onLoadoutSave
* Change buttonLoadoutsSave layout to prepare base weapon saving
* Save base class for weapons when saving loadouts
* Remove unused profiling code related code
* Add not implemented warning messages for export and import
* Fix error when saving with a container or weapon slot being empty
* Remove dogtags from loadout upon loadout saving
* Change how misc item mass is retrieved
* Remove vanilla "NoVoice" from voices to avoid an error related to it
* Use tolower for currentData and itemsToCheck in fillLeftPanel
Avoid camelCase issues with the commands that don't fucking respect it.
* Remove redundant check in postInit
* Fix sharedLoadouts condition in onArsenalOpen, Fix save button logic
* Prepare sharedLoadouts addition
* Add loadout sharing
* Add proper saving and loading for shared loadouts
* Change loadout deleted / unshared EH name, add said EH to unsharing
* Remove shared loadouts from disconnected players
* Fix error in buttonLoadoutsSave, add row when other share a loadout
* Change sharedLoadouts tab curSel selection to lnbData instead of lnbText
* Add data when adding a new row via CBA EH
* Remove mode, add arg to openBox to have arsenal prefilled
* Cleanup buttonClearAll code
* Fix itemInfo behavior when switching between items that don't have logos
Fix #23
* Add copy paste and arrow key support for searchbars
Close #22
* Add back newline at EOF for onKeyDown
* Change default camera setting from non inverted to inverted
* Fix import and export "not implemented" message
* Rename share button to Unshare when loadout selected is shared
* Improve missing items logging, cache verifyLoadout check
* Remove unused var
* Add full 3DEN support
* Remove 3DEN sphere and grid, set helper center dir properly
* Change 3DEN lightsource intensity
* Save 3DEN inventory properly
* Rewrite onArsenalClose 3DEN comment
* Fix sharedLoadouts check
* Add 3DEN support for defaultTab
* Add new event for 3rd parties in buttonCargo
* Move weight update to updateRightPanel for buttonCargo and selChangedListnBox
* Fix defaultLoadout save button
* Remove unallowed command
* Fix arsenal messages not working in 3DEN
* Add export current loadout, Add export defaultLoadoutsList
Signed-off-by: Josuan Albin <josuanalbin@outlook.fr>
* Add import button functionality
* Change export / import messages
* Change message to use scheduled only
* Attempt to sanitize data in import func
* Add a 3DEN attribute to save defaultLoadoutsList, fix shared loadout check
* Replace 2 last traces in verifyLoadout
* Change defaultLoadoutsList export format and add a 3DEN check for it's default value
* Fix original array being modified in fillLoadoutsList
* Improve shared loadout check
* Fix removeVirtualItems not removing Accs, nil virtualItems var in removeBox
* Add zeus support for arsenal rewrite, fix openBox camera check
* Add isPlayer check to arsenal rewrite part of bi module
Arsenal rewrite does not seem to work on remote players, welp, I tried at least
* Fix shared loadouts loadout index being null
Forgot to change that one getVar
* Hide shared column if sharing is disabled on My loadouts tab
* Remove trace from loadoutsLoad, add trace to shared and unshared EHs
* Fix postInit trace
* Fix sharing EHs being broken, remove traces in them, prevent possible issue
yeah, _x params doesn't work there :p
* Fix fillLoadoutsList error
* Start translating and code reviewing
* Add editing vehicle crew loadout support for arsenal
* Move left panel filling above 3DEN handling to avoid float crew members
* Fix onArsenalClose EOF, add header for it
* Move onButton EHs to config, remove placeholder stats func
* Add headers for onLoadouts funcs and verifyLoadout
* Clean up buttonClearAll
* Fix assigned items not being added properly to currentItems on loadout load
* Add more function headers
* Make rename work in default loadouts tab in 3DEN
* Add more functions headers, continue code review
* Add more functions headers, finish code review
* Fix loadout saving to profile from an other tab than my loadouts
* Fix loadout saving even more
* Attempt to fix loadouts handling
From totally broken to somewhat usable.
* Even more fixing
* Add back onLoadoutSave EH
* Add back author message in loadoutSave
* Add back EOF newline
* Add back loadout caching
* Remove unique items from saved and loaded loadouts
* Add unique item support for the remaining container tabs
* Fix mag check for magazine type in container
* Add support for CfgVehicles and CfgGlasses in miscItems
* Add button highlighting for loadouts display, fix mag put and throw check
* Change shared column to show a proper icon
* Revert "Move onButton EHs to config, remove placeholder stats func"
This reverts commit 1be5d92426e580683b265dd92c95fafa363765bb.
* Add back EOL newline in prep, remove stats placeholder again
* Add part of the german translation
* Add more translations, change how shared button text is managed
* Add scheduled check in openBox to avoid issues with people using addaction
Because you know they will.
* Add translations for import and export messages
* Fix comms tab defaulting to empty
* Align buttons perfectly for loadouts display, translation for delete action
* Add loadout saved translations
* Add load and rename messages translations
* localized interaction name in initBox
* Fix issue when admins deleted a loadout didn't change the icon status for authors
* Fix loadout import, update unique items list after import / loadout load
* Beautify UI a bit
* Add setting to toggle missing / unavailable items RPT logging
* Add settings strings
* Increase button size for main display
* Change DLC logo side in infoBox
* Change loadouts display buttons spacing, change deleteLoadout button active color
* Remove camera rotation limit
* Add polish translation
* German translation by @bux
* Order
* Fix typo in buttonExport, add credits in handleMouse
* Fix right panel item count not updating properly in certain scenarios
* Add loadoutName check when importing default loadouts, change assignedItems check
* Improve onSelChangedRight, fix typos in onSelChangedLeft and handleSearchbar
* Fix syntax check in removeVirtualItems count
* Shorten onSelChangedRightListnbox by improving current tab check
* Improve fillLeftPanel weapon tab filling
* Move lnbSetPicture occurences for the loadouts display to a define
* scan config opti
* Fix RPT logging check in fillLoadoutsList, use picture macro for shared tab
* Fix sharing and RPT logging settings having the same var
* Add newline at EOF for funcs that are missing it
* Move GVAR(sharedLoadoutsVars) to sharedLoadoutsNamespace
* newline eof
commy contributed too!
* Fix delete button not working as intended in public tab
* Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig
* Revert "Replace bis_fnc_baseWeapon with CBA equivalent everywhere outisde of scanConfig"
This reverts commit 496e6f822344e460312e68cd1334a0643ea28bef.
* Add new Cfg entry for handling unique items saving, add entry to chemlight shields
* Fix currentMag tab not detecting current mag properly (still experimental)
* Improve left and right filled EHs, add "Dog Tags:" for dogtag uniques
* Change how the right panel first update works
* Fix updateRightPanel very obscure bug and header typo
* Move postInit EHs for medical and dogtags to their respective postInit
* Fix medical postInit typo
* Add currentMag tabs for primary and secondary muzzles properly
* Fix container compatible mags tab not showing anything
* Replace an inline if to select in fillRightPanel
* Attempt to fix accs recognition when switching weapons
* Improve currentMag2 tab show / hide logic
Secondary and handguns can't have a secondary mauzzle
* Add strings for currentMag and currentMag2 tabs
* Readd strings that tabler accidentally removed
* Make sorting for the right panel stay the same when switching items / tabs
* Replace bis_fnc_addWeapon by the addWeapon command
bis_fnc_addWeapon failed when a weapon with the same classname was in one of the player's containers
Add mag for primary muzzle after the weapon is added, is possibly replaced by current mag(s) saved in curentItems
* Replace BIS_fnc_overviewAuthor in itemInfo
It works better
* Display itemInfo box properly for currentMag1 and 2 tabs
* Don't reset arsenal vision mode after quitting arsenal
* Improve showItem
* Remove trace from showItem
* Move getWeight and weight string from movement to common
* Fix typos in addVirtualItems
* Comment back compile cache for common
(Not yet for arsenal, not until it's validated for a merge)
* Replace secondaryMuzzleMag tab icon by @Max255PL 's
* Update @Max255PL 's icon
* Add missing author strings
* Add debug trace for a specific issue
* Add more traces in loadoutsSave
* Fix bug in loadoutsSave, remove debug traces
* Fix typo in loadoutsSave
* Fix uniqueBase cfg check for all cases in loadoutsSave
* Improve whitelisting for current weapon accs and mags
* Update CBA settings strings, change RPT logging to be turned off by default
* Update polish translation by @max255PL
* Fix saving loadouts when no loadout has ever been saved
* Make loadout screen lighter
* Save camera position and view mode for ace arsenal
* Improve loadouts screen presentation
* Improve loadouts screen readability
* Improve camera angle in loadout screen
* Improve loadout renaming, Fix bug linked to renaming
* Fix wrong loadout being used while renaming and color not being reapplied
* Fix other possible issue with renaming
* Change missing items color to be more colorblind friendly
* Fix typo and improve return check in getWeight
* Disable debug and re-enable compile cache for common and arsenal
* Remove uneccessary newline in arsenal's script_component.hpp
2017-12-07 07:48:10 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update
* Fixes
* Update fnc_onSelChangedLeft.sqf
* Update fnc_updateUniqueItemsList.sqf
* Header fixes
* Fix for defines.hpp
Co-authored-by: Dystopian <sddex@ya.ru>
* Moved fnc_baseWeapon, filtered invalid items
* Update addons/arsenal/functions/fnc_scanConfig.sqf
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Fixes and tweaks
- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.
* Cleanup, bug fixes and additions
- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.
* More fixes and tweaks
- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).
* Update fnc_replaceUniqueItemsLoadout.sqf
* Update fnc_onSelChangedLeft.sqf
* Update fnc_scanConfig.sqf
* Update docs/wiki/framework/arsenal-framework.md
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Minor cleanup
* Baseweapon filtering
* Improvements + better unique items support
* Update fnc_fillRightPanel.sqf
* Update fnc_onSelChangedLeft.sqf
Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.
* Update addons/common/functions/fnc_uniqueUnitItems.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* undefined variable
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* fix undefined loadout var
* Update fnc_fillLoadoutsList.sqf
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 18:25:25 +00:00
|
|
|
(_display displayCtrl IDC_totalWeightText) ctrlSetText (format ["%1 (%2)", GVAR(center) call EFUNC(common,getWeight), [GVAR(center), 1] call EFUNC(common,getWeight)]);
|