akarnokd / ThePlanetCrafterMods

BepInEx+Harmony mods for the Unity/Steam game The Planet Crafter
Apache License 2.0
52 stars 29 forks source link

Save hotbar layout and pinned recipes between game sessions #23

Closed DeadMor0z closed 2 years ago

DeadMor0z commented 2 years ago

Hotbar layout and pinned recipes saved in plugins config files in form of comma-separated list of group IDs.

akarnokd commented 2 years ago

Hi.

I didn't add persistence because the devs promised an official way of storing mod-related data within the saves.

Besides, having a global list might not be good between saves and during progress within the save.

Instead, I suggest you create a mod that hooks into my mods via reflection. Practically, you'd only have to check pinnedRecipeList and slots periodically or call PinUnpinReciple reflectively such as this.

DeadMor0z commented 2 years ago

Nevermind then. I'll just use my local modified copy. But I suggest you to look into my last two commis - you should hide hotbar and recipes overlays if pause window is open. Right now - game starts lagging badly for a few seconds after pause window is closed. Also it looks a bit bad, when UI is hidden, except those two elements.