19 lines
559 B
GDScript
19 lines
559 B
GDScript
extends MarginContainer
|
|
|
|
@onready var rules = $HBoxContainer/HBoxContainer/Rules/Bookmark
|
|
@onready var symptoms = $HBoxContainer/HBoxContainer/Symptoms/Bookmark
|
|
@onready var entities = $HBoxContainer/HBoxContainer/Entities/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, entities]:
|
|
tab.set_pressed(false)
|
|
tab.set_mouse_filter(Control.MOUSE_FILTER_STOP)
|
|
rules.set_pressed(true)
|
|
rules.set_mouse_filter(Control.MOUSE_FILTER_IGNORE)
|