How to make a Button that closes a Frame and opens another Frame(not the simple one)

So I’m wondering how do I make a button that loses a frame and opens another frame

It tried to make it but I was being stupid about it

Like this

https://gyazo.com/1fb354050d96e4c02418a178ec729c60

You could store the currently opened frame (I would use a state management library like rodux or BasicState to do this), then when a button is pressed, it would close the frame currently open, open the new frame, and set the new frame as the currently opened frame.

1 Like

Thanks for the help!

only30characters