feat: file-based config system + fix dashboard background rendering
This commit is contained in:
parent
c026c74af2
commit
c6bc1edda4
7 changed files with 97 additions and 20 deletions
|
|
@ -1,6 +1,7 @@
|
|||
extends Control
|
||||
|
||||
|
||||
@onready var bg: ColorRect = %Bg
|
||||
@onready var v_label: Label = %VLabel
|
||||
@onready var panel_label: Label = %PanelLabel
|
||||
@onready var transition_overlay: ColorRect = %TransitionOverlay
|
||||
|
|
@ -20,6 +21,10 @@ func _ready() -> void:
|
|||
|
||||
var screen_size: Vector2 = get_viewport_rect().size
|
||||
|
||||
# Background color from config
|
||||
if ConfigManager.has_method("get_color"):
|
||||
bg.color = ConfigManager.get_color("background_color", Color(0.08, 0.08, 0.12))
|
||||
|
||||
# Compute end font sizes as a large fraction of screen height.
|
||||
# Use set() to go through the property system directly.
|
||||
_v_end = maxi(1, int(screen_size.y * 0.28))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue