Control inventory and action button display - The-Villains/MajorelleMysteryApp GitHub Wiki
By introducing exported variables within a script
You can configure them in your scene where you have instanciated the scene using the script in, in our case globals/game.scn (with its associated script globals/game.gd)
You can do additional stuff inside the setter
but this would not work in our case, because we need access to the loaded inventory scene which is only available here
Update: Actually it can be done easier, as described here: set_hud_visible visible
so we change visibility of inventory and action button dependent on the set variable values in our scene