use proper logging everywhere add gamepad and keyboard control on match3 gameplay
22 lines
536 B
GDScript
22 lines
536 B
GDScript
extends Control
|
|
|
|
signal open_settings
|
|
|
|
func _ready():
|
|
DebugManager.log_info("MainMenu ready", "MainMenu")
|
|
|
|
func _on_new_game_button_pressed():
|
|
AudioManager.play_ui_click()
|
|
DebugManager.log_info("New Game pressed", "MainMenu")
|
|
GameManager.start_new_game()
|
|
|
|
func _on_settings_button_pressed():
|
|
AudioManager.play_ui_click()
|
|
DebugManager.log_info("Settings pressed", "MainMenu")
|
|
open_settings.emit()
|
|
|
|
func _on_exit_button_pressed():
|
|
AudioManager.play_ui_click()
|
|
DebugManager.log_info("Exit pressed", "MainMenu")
|
|
get_tree().quit()
|