The problem I have this time around is unloading buttons. I have a very basic Save/Load system that stores game variables and inventory states in a text file. For the most part it works as needed, but I’m having a problem with unloading buttons and replacing them.
I have a journal that has buttons as entries and when you click they open some pages. When you save your game, exit the game, then restart and reload your last save everything works fine, but if you load without restarting the game it is not possible to replace old entries. Old buttons simply refuse to go away. Fading them out or disabling them doesn’t work too. Actually I simply can’t disable any buttons without disabling their overlays, but that’s another problem.
So I was thinking if it was possible to unload a button, or simply restart the engine internally which takes it to the initial state without exiting the game. Any suggestions or workarounds?