checheche/Robo-Bus-A31-HMI/common/gui/refresh_interface.gd
2024-12-06 21:22:11 +08:00

25 lines
368 B
GDScript

class_name RefreshInterface
extends Control
const STATUS_NONE = 0
const STATUS_LOADING = 1
var offset :int = 0 :
set(value):
offset = value
offset_change()
func offset_change():
pass
var status :int = STATUS_NONE :
set(value):
status = value
status_change()
func status_change():
pass
func getStartOffset()-> int:
return get_parent().startOffset