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/rules.gd

33 lines
905 B
GDScript3
Raw Normal View History

2024-01-28 16:25:02 +01:00
extends Node2D
# Called when the node enters the scene tree for the first time.
func _ready():
$Node2D/Node2D/valid_options.set_visible(false)
$Node2D/Op/Help_panel/valid_help.set_visible(true)
$Node2D/Node2D/Options.set_visible(false)
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
pass
func _on_button_hlp_pressed():
$Node2D/Node2D/valid_options.set_visible(false)
$Node2D/Op/Help_panel/valid_help.set_visible(true)
$Node2D/Node2D/Options.set_visible(false)
pass # Replace with function body.
func _on_button_opt_pressed():
$Node2D/Node2D/valid_options.set_visible(true)
$Node2D/Op/Help_panel/valid_help.set_visible(false)
$Node2D/Node2D/Options.set_visible(true)
pass # Replace with function body.
func _on_power_off_pressed():
get_tree().change_scene_to_file("res://scenes/menu/menu.tscn")