How to add window UI?

Godot Version

4.5.1

Question

I’m making a NES emulator (I currently have no other language options) and I want to add buttons to the game window (ex: to select a file to load.) I tried just adding the buttons to the game itself, but i couldn’t squeeze those buttons between the left edge of the window and the screen.
I have seen many other programs do this before, but I cant find any documents online on how to add them to my project.
Here you can see nestopia doing what I’m talking about:

You can use MenuButton nodes for such drop downs

1 Like

it doesnt bring up a popup like the description says
idk if its just my crappy laptop or an actual issue with the node

You can see how this guy use MenuButton, follow tut and tell us if you obtain a different results.

It worked! Here’s the script i came up with:

extends MenuButton


func _ready():
	$".".get_popup().id_pressed.connect(file_menu) # GDScript for "I dont give a **** about all your formatting **** just lemme control what the buttons do"


func file_menu(id): # Yes i know i can name this function other things but the menu button i was making just so happened to be a file button
	match(id):
		0:
			pass # In the real code there is something here
		1:
			pass # Same here