19 lines
565 B
GDScript
19 lines
565 B
GDScript
extends MarginContainer
|
|
|
|
@onready var rules = $HBoxContainer/HBoxContainer/Rules/Bookmark
|
|
@onready var symptoms = $HBoxContainer/HBoxContainer/Symptoms/Bookmark
|
|
@onready var objectives = $HBoxContainer/HBoxContainer/Objectives/Bookmark
|
|
|
|
# Called when the node enters the scene tree for the first time.
|
|
func _ready() -> void:
|
|
reset()
|
|
|
|
|
|
#Resets to initial state
|
|
func reset():
|
|
for tab in [symptoms, objectives]:
|
|
tab.set_pressed(false)
|
|
tab.set_mouse_filter(Control.MOUSE_FILTER_STOP)
|
|
rules.set_pressed(true)
|
|
rules.set_mouse_filter(Control.MOUSE_FILTER_IGNORE)
|