ACE3/addons/cargo/functions
Jasper 257d9536cc
Cargo - Add ability to add custom name to cargo objects (#8023)
* First Push

Added the ability to edit cargo objects (crates/boxes only) names. Either via in-game action on the object it self or via 3den attributes.

Added a single function which spawns the UI to edit the name and also edits it. This is an scripted UI, it could be changed to a config version if wanted, but as I'm not good in UI coding I left it on this simple version mainly for testing.

Added 4 new stringtable entries, 2 for action and 2 for 3den attributes.

* Add extra stringtable

Forgot to add the UI to the stringtable.

* Update fnc_renameObject.sqf

fixing tabs

* Show custom name only behind

Added new function "getNameItem" that will get the items name.
Put the custom name behind the original name between brackets "[...]".

* Added "Hide Rename Action" setting

Also removed an unused _itemClass from postInit.

* Apply suggestions from code review

Co-authored-by: jonpas <jonpas33@gmail.com>

* Update AUTHORS.txt

Added my name

* Applied the sugesstions.

* Fixed function crash

* Moved to dialog.

* Removed unused comment/code

* Update renameMenu.hpp

Fixed tabs to spaces.

* Update renameMenu.hpp

* move rename to common

* Update addons/arsenal/ui/RscAttributes.hpp

* style and use addActionToObject

Co-authored-by: jonpas <jonpas33@gmail.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2021-10-12 17:42:38 -05:00
..
fnc_addCargoItem.sqf [WIP] Fix script errors reporting wrong line numbers (#6407) 2018-09-17 14:19:29 -05:00
fnc_addCargoVehiclesActions.sqf Various - Use configOf command for faster lookup (#8100) 2021-02-18 12:58:08 -06:00
fnc_canLoadItemIn.sqf Various - Use configOf command for faster lookup (#8100) 2021-02-18 12:58:08 -06:00
fnc_canUnloadItem.sqf [WIP] Fix script errors reporting wrong line numbers (#6407) 2018-09-17 14:19:29 -05:00
fnc_getCargoSpaceLeft.sqf Various - Use configOf command for faster lookup (#8100) 2021-02-18 12:58:08 -06:00
fnc_getNameItem.sqf Cargo - Add ability to add custom name to cargo objects (#8023) 2021-10-12 17:42:38 -05:00
fnc_getSizeItem.sqf [WIP] Fix script errors reporting wrong line numbers (#6407) 2018-09-17 14:19:29 -05:00
fnc_handleDeleted.sqf Cargo - Fix loaded cargo not being deleted when vehicle is destroyed (#7851) 2020-08-18 12:42:09 -05:00
fnc_handleDestroyed.sqf Cargo - Fix loaded cargo not being deleted when vehicle is destroyed (#7851) 2020-08-18 12:42:09 -05:00
fnc_initObject.sqf Cargo - Add ability to add custom name to cargo objects (#8023) 2021-10-12 17:42:38 -05:00
fnc_initVehicle.sqf Various - Use configOf command for faster lookup (#8100) 2021-02-18 12:58:08 -06:00
fnc_loadItem.sqf Disable damage for all cargo objects (#7946) 2020-10-10 18:58:38 +02:00
fnc_moduleSettings.sqf Headers - Fix function names in examples (#7663) 2020-04-25 08:41:45 +02:00
fnc_onMenuOpen.sqf Cargo - Add ability to add custom name to cargo objects (#8023) 2021-10-12 17:42:38 -05:00
fnc_paradropItem.sqf Cargo - Add ability to add custom name to cargo objects (#8023) 2021-10-12 17:42:38 -05:00
fnc_removeCargoItem.sqf conform isnil checking: cargo 2020-02-12 17:28:10 +01:00
fnc_renameObject.sqf Cargo - Add ability to add custom name to cargo objects (#8023) 2021-10-12 17:42:38 -05:00
fnc_setSize.sqf [WIP] Fix script errors reporting wrong line numbers (#6407) 2018-09-17 14:19:29 -05:00
fnc_setSpace.sqf Cargo - setSpace checks for existing cargo (#7133) 2019-12-07 22:10:03 +01:00
fnc_startLoadIn.sqf Cargo - Add ability to add custom name to cargo objects (#8023) 2021-10-12 17:42:38 -05:00
fnc_startUnload.sqf Cargo - Add ability to add custom name to cargo objects (#8023) 2021-10-12 17:42:38 -05:00
fnc_unloadItem.sqf Cargo - Prevent damage to items (created from classnames) on unloading (#8324) 2021-07-23 22:45:36 +02:00
fnc_validateCargoSpace.sqf Various - Use configOf command for faster lookup (#8100) 2021-02-18 12:58:08 -06:00
script_component.hpp Cleaned function headers 2015-08-16 22:41:35 +02:00