I am currently creating an inventory with 3 columns. In the middle one I have a button which shall make a scroll container appear above the other stuff in the inventory. I am not entirely sure how to go about this, so I first tried to create a new scene with the scroll container and make it appear on button pressed. Well this works, BUT the rest of the inventory disappears as I change the scene... This does not look quiet all right. Is there another way to do this?
This is how I change scenes:
func goto_scene(path):
call_deferred("_deferred_goto_scene", path)
func deferredgotoscene(path):
currentscene.free()
var s = ResourceLoader.load(path)
currentscene = s.instance()
gettree().getroot().addchild(currentscene)
gettree().setcurrentscene(current_scene)
Maybe I should not use the current_scene.free(), but in general I am not sure if changing scenes is a good way to tackle this.