It's finally ready.
There are some changes:
- there are 20 templates, 9 of them can be accessed directly via hotkeys, the rest via GUI only
- templates are global and saved within the save file (nodes "globalEquipmentLayout0" to "globalEquipmentLayout19")
- templates will survive also mod upgrades... if modder removes a weapon, ammo or inventory slot, the removed object in the save will be ignored (i.e. won't crash)
- direct hotkeys are fixed: ctrl+1...9 to save template 1 to 9; 1...9 to load template 1 to 9
- GUIs can be opened by configurable quick save(F5) and quick load(F9) hotkeys
- templates can have names, which can be entered via GUI only... direct hotkeys will preserve existing names
- direct hotkeys work only in base or during briefing, not during mission; same for load GUI
- save GUI works always, i.e. also during mission
See attached.
I would appreciate some help with testing.
STR_EMPTY_SLOT_N: "Empty slot {0}"
STR_UNNAMED_SLOT_N: "Unnamed slot {0}"
STR_LOAD_EQUIPMENT_TEMPLATE: "LOAD EQUIPMENT TEMPLATE"
STR_SAVE_EQUIPMENT_TEMPLATE: "SAVE EQUIPMENT TEMPLATE"
STR_SAVE_UC: "SAVE"