33 lines
456 B
GDScript3
33 lines
456 B
GDScript3
|
|
extends PanelBase
|
||
|
|
class_name ModuleBase
|
||
|
|
|
||
|
|
|
||
|
|
signal module_ready
|
||
|
|
|
||
|
|
@export var module_title: String = "Module"
|
||
|
|
|
||
|
|
var _initialized: bool = false
|
||
|
|
|
||
|
|
|
||
|
|
func _ready() -> void:
|
||
|
|
if not _initialized:
|
||
|
|
_initialize()
|
||
|
|
|
||
|
|
|
||
|
|
func initialize() -> void:
|
||
|
|
pass
|
||
|
|
|
||
|
|
|
||
|
|
func refresh(data: Dictionary) -> void:
|
||
|
|
pass
|
||
|
|
|
||
|
|
|
||
|
|
func get_module_title() -> String:
|
||
|
|
return module_title
|
||
|
|
|
||
|
|
|
||
|
|
func _initialize() -> void:
|
||
|
|
_initialized = true
|
||
|
|
initialize()
|
||
|
|
module_ready.emit()
|