Debug key size and padding

This commit is contained in:
Adrien Ufferte
2026-01-26 10:59:23 +01:00
parent 595a2121df
commit e629a84c01
2 changed files with 7 additions and 1 deletions
@@ -30,6 +30,8 @@ script = ExtResource("1_4kb0k")
unique_name_in_owner = true
layout_mode = 1
anchors_preset = 8
key_size = 420
panel_theme_variation = &"PanelKaluluBig"
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
@@ -25,6 +25,10 @@ const ICONS_TEXTURES: Dictionary[String, CompressedTexture2D] = {
set(value):
show_backgrounds = value
_update_panel_styles()
@export var panel_theme_variation: StringName = &"PanelKalulu":
set(value):
panel_theme_variation = value
_update_panel_styles()
@onready var icons: Array[TextureRect] = []
@onready var panels: Array[PanelContainer] = []
@@ -73,7 +77,7 @@ func _update_panel_styles() -> void:
continue
if show_backgrounds:
panel.remove_theme_stylebox_override("panel")
panel.theme_type_variation = &"PanelKalulu"
panel.theme_type_variation = panel_theme_variation
else:
panel.theme_type_variation = &""
panel.add_theme_stylebox_override("panel", StyleBoxEmpty.new())