Anri/AdBlockNot
Archived
1
0
Fork 0
This repository has been archived on 2024-01-28. You can view files and clone it, but cannot push or open issues or pull requests.
AdBlockNot/scenes/menu/menu.gd

34 lines
858 B
GDScript3
Raw Normal View History

2024-01-27 23:17:33 +01:00
extends Node2D
# Called when the node enters the scene tree for the first time.
func _ready():
2024-01-28 16:29:20 +01:00
$Menu/Options/Rules.set_visible(false)
2024-01-27 23:17:33 +01:00
Input.set_mouse_mode(Input.MOUSE_MODE_VISIBLE)
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
2024-01-28 17:25:48 +01:00
func _process(_delta):
2024-01-27 23:17:33 +01:00
pass
func _on_power_off_pressed():
get_tree().change_scene_to_file("res://scenes/menu/leaving_scene.tscn")
func _on_normal_start_pressed():
#get_tree().change_scene_to_file("")
pass # Replace with function body.
func _on_infinite_start_pressed():
#get_tree().change_scene_to_file("")
pass # Replace with function body.
func _on_options_pressed():
2024-01-28 16:29:20 +01:00
$Menu/Options/Rules.set_visible(true)
pass # Replace with function body.
func _on_close_pressed():
$Menu/Options/Rules.set_visible(false)
2024-01-27 23:17:33 +01:00
pass # Replace with function body.