[gd_scene load_steps=5 format=3 uid="uid://dyjtmfm4u58mu"]

[ext_resource type="Texture2D" uid="uid://cdhpvkivmjkje" path="res://pictures/прогресс-фон-1.png" id="1_n4uxh"]
[ext_resource type="Texture2D" uid="uid://bnviii2u0ls78" path="res://pictures/прогресс-заполнение-1.png" id="2_os1gp"]
[ext_resource type="FontFile" uid="uid://bxq4fvfeecmia" path="res://pictures/DSEG7Classic-Regular.ttf" id="3_px0hn"]

[sub_resource type="GDScript" id="GDScript_eyk47"]
script/source = "@tool

extends GridContainer

@export var min_value: float:
    set(v):
        min_value = v
        $indicator_h.min_value = v


@export var max_value: float:
    set(v):
        max_value = v
        $indicator_h.max_value = v


@export var step: float:
    set(v):
        step = v
        $indicator_h.step = v


@export var value: float:
    set(v):
        value = v
        $indicator_h.value = v
        $lbl_val.text = '%02d' % int(v)


@export var value_name: String:
    set(v):
        value_name = v
        $lbl_name.text = v


@export var name_min_size: Vector2i:
    set(v):
        name_min_size = v
        $lbl_name.custom_minimum_size = v
"

[node name="grid" type="GridContainer"]
offset_right = 95.0
offset_bottom = 19.0
columns = 3
script = SubResource("GDScript_eyk47")

[node name="lbl_name" type="Label" parent="."]
custom_minimum_size = Vector2(30, 20)
layout_mode = 2
horizontal_alignment = 1
vertical_alignment = 1

[node name="indicator_h" type="TextureProgressBar" parent="."]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
value = 50.0
nine_patch_stretch = true
stretch_margin_left = 8
stretch_margin_top = 8
stretch_margin_right = 8
stretch_margin_bottom = 8
texture_under = ExtResource("1_n4uxh")
texture_progress = ExtResource("2_os1gp")
tint_under = Color(1, 1, 1, 0.419608)
tint_progress = Color(0.890196, 0.486275, 0.196078, 1)

[node name="lbl_val" type="Label" parent="."]
layout_mode = 2
size_flags_vertical = 3
theme_override_colors/font_color = Color(0.890196, 0.486275, 0.196078, 1)
theme_override_fonts/font = ExtResource("3_px0hn")
text = "00"
horizontal_alignment = 1
vertical_alignment = 1
