This repository has been archived on 2022-01-09. You can view files and clone it, but cannot push or open issues/pull-requests.
2021-09-11 14:38:45 +02:00
|
|
|
extends "res://Assets/UI/MenuData.gd"
|
2021-06-02 17:00:28 +02:00
|
|
|
|
2021-09-11 16:36:43 +02:00
|
|
|
func set_data(_data):
|
|
|
|
super.set_data(_data)
|
|
|
|
self.pressed = _data
|
|
|
|
|
2021-06-02 17:00:28 +02:00
|
|
|
func on_label_changed():
|
|
|
|
self.text = label
|
|
|
|
|
|
|
|
func on_toggle(button_pressed):
|
|
|
|
data = button_pressed
|
2021-09-12 01:17:53 +02:00
|
|
|
$ClickSound.play()
|
|
|
|
|
|
|
|
func _on_MenuCheckButton_mouse_entered():
|
|
|
|
$HoverSound.play()
|