Saving Loadouts

Added entity save option to the inventory panel dropdown
This commit is contained in:
Reinier Vens 2021-01-18 02:35:56 +00:00
commit b4432b7aca
18 changed files with 192 additions and 103 deletions

View file

@ -124,6 +124,12 @@ public class InventoryPanel : MonoBehaviour
if(GameManager.DockingBay!=null && _displayedCargo!=GameManager.DockingBay)
ContextMenu.AddOption(GameManager.DockingBay.Name, () => Display(GameManager.DockingBay));
ContextMenu.AddOption("Create Preset",
() =>
{
GameManager.SavePreset(EntityPack.Pack(_displayedEntity));
});
ContextMenu.Show();
});