20 lines
339 B
GDScript
20 lines
339 B
GDScript
extends Control
|
|
|
|
signal open_settings
|
|
signal open_game
|
|
|
|
func _ready():
|
|
print("MainMenu ready")
|
|
|
|
func _on_new_game_button_pressed():
|
|
print("New Game pressed")
|
|
open_game.emit()
|
|
|
|
func _on_settings_button_pressed():
|
|
print("Settings pressed")
|
|
open_settings.emit()
|
|
|
|
func _on_exit_button_pressed():
|
|
print("Exit pressed")
|
|
get_tree().quit()
|