add dashboard framework: responsive grid layout with modular cell system and fullscreen entry
This commit is contained in:
parent
f140d558b7
commit
5aabc1f7ef
6 changed files with 234 additions and 14 deletions
32
scripts/module_base.gd
Normal file
32
scripts/module_base.gd
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
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()
|
||||
Loading…
Add table
Add a link
Reference in a new issue