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:
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