Доработка. WIP Добавление элементов для ЭМС-ТГ

This commit is contained in:
sasha80
2026-03-19 09:18:32 +03:00
parent 190f06b72c
commit dac7987585
6 changed files with 153 additions and 520 deletions

View File

@@ -5,13 +5,13 @@
[sub_resource type="GDScript" id="GDScript_63652"]
script/source = "extends GridContainer
@export var header_text: String:
@export var text: String:
set(val):
header_text = val
text = val
if is_inside_tree():
$label.text = val
get:
return header_text
return text
@export_file var image_file: String:
@@ -24,8 +24,9 @@ script/source = "extends GridContainer
func _enter_tree() -> void:
$image.texture = load(image_file)
$label.text = header_text
if ResourceLoader.exists(image_file):
$image.texture = load(image_file)
$label.text = text
"
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_nbmfn"]
@@ -36,8 +37,10 @@ corner_radius_bottom_right = 4
corner_radius_bottom_left = 4
[node name="header-image" type="GridContainer"]
offset_right = 91.0
offset_bottom = 25.0
offset_right = 100.0
offset_bottom = 19.0
size_flags_horizontal = 3
size_flags_vertical = 3
columns = 2
script = SubResource("GDScript_63652")