58 lines
1.5 KiB
Plaintext
58 lines
1.5 KiB
Plaintext
[gd_scene load_steps=4 format=3 uid="uid://cymcld4mjmlhj"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://c73tjrn8gr00o" path="res://data/Передатчик.png" id="1_nbmfn"]
|
|
|
|
[sub_resource type="GDScript" id="GDScript_63652"]
|
|
script/source = "extends GridContainer
|
|
|
|
@export var header_text: String:
|
|
set(val):
|
|
header_text = val
|
|
if is_inside_tree():
|
|
$label.text = val
|
|
get:
|
|
return header_text
|
|
|
|
|
|
@export_file var image_file: String:
|
|
set(val):
|
|
image_file = val
|
|
if is_inside_tree():
|
|
$image.texture = load(val)
|
|
get:
|
|
return image_file
|
|
|
|
|
|
func _enter_tree() -> void:
|
|
$image.texture = load(image_file)
|
|
$label.text = header_text
|
|
"
|
|
|
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_nbmfn"]
|
|
bg_color = Color(0.741395, 0.468103, 0.328942, 1)
|
|
corner_radius_top_left = 4
|
|
corner_radius_top_right = 4
|
|
corner_radius_bottom_right = 4
|
|
corner_radius_bottom_left = 4
|
|
|
|
[node name="header-image" type="GridContainer"]
|
|
offset_right = 91.0
|
|
offset_bottom = 25.0
|
|
columns = 2
|
|
script = SubResource("GDScript_63652")
|
|
|
|
[node name="image" type="TextureRect" parent="."]
|
|
layout_mode = 2
|
|
size_flags_vertical = 3
|
|
texture = ExtResource("1_nbmfn")
|
|
expand_mode = 3
|
|
|
|
[node name="label" type="Label" parent="."]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
size_flags_vertical = 3
|
|
theme_override_colors/font_color = Color(0, 0, 0, 1)
|
|
theme_override_styles/normal = SubResource("StyleBoxFlat_nbmfn")
|
|
horizontal_alignment = 1
|
|
vertical_alignment = 1
|