Godot Version
4.3
Question
Hi guys, I am working on my game’s main menu. Essentially I have the main layout here, which the player will be greeted with. When they press Start Game, it will open a separate scene and start from there.
I am confused for Fish Library and Credits though. When they are pressed essentially I want to pop up a UI the size of the selected HBoxContainer which contains the info of each category. There will be a close button on the top right that when pressed, will go back to the main menu above.
I am new to Godot so I was wondering what is the best way to implement this
Could you make the fish library a separate scene? Then the close button could use change_scene_to_file("your_main_menu_here.tscn")
1 Like
You could also have additional Container nodes with the Fish Library and Credit contents and make them hidden at the start.
When you click the various menu and close buttons you then call panelName.show() and panelName.hide() as required to show the panels you need.
In my example here I have implemented the NewGame and Credits panels but for now I just have a placeholder PanelContainer for the other functions.
Hope this helps,
Martin
1 Like
Thanks for the replies, I asked elsewhere and this is how I implemented it:
When pressed I would just make whichever node was needed visible.