diff --git a/scenes/контроль/ум1535.tscn b/scenes/контроль/ум1535.tscn deleted file mode 100644 index f8ee7938..00000000 --- a/scenes/контроль/ум1535.tscn +++ /dev/null @@ -1,156 +0,0 @@ -[gd_scene load_steps=9 format=3 uid="uid://bkxblfoj7ejv0"] - -[ext_resource type="Texture2D" uid="uid://c6nve6f8sfyj2" path="res://data/состояние-исправности-0.png" id="1_xcvfs"] -[ext_resource type="Texture2D" uid="uid://dnreyfh3cd1k2" path="res://data/состояние-исправности-1.png" id="2_ad1dj"] -[ext_resource type="Texture2D" uid="uid://c6booa8753u5t" path="res://data/состояние-исправности-2.png" id="3_vxg7f"] -[ext_resource type="Texture2D" uid="uid://c4mdrmk7h638f" path="res://data/nine-patch-round.png" id="4_1bnn6"] -[ext_resource type="PackedScene" uid="uid://dyjtmfm4u58mu" path="res://scenes/контроль/уровень.tscn" id="5_3i5am"] - -[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_3nd2u"] - -[sub_resource type="GDScript" id="GDScript_oj3k3"] -script/source = "@tool - -extends PanelContainer - - -@export var textures: Array - - -@export var fname: String: - set(v): - fname = v - $margin/vbox/grid/fname.text = v - - -@export var rname: String: - set(v): - rname = v - $margin/vbox/grid/rname.text = v - - -@export var state: int: - set(v): - v = 0 if v < 0 else v - v %= textures.size() - state = v - $margin/vbox/grid/state.texture = textures[v] - - -@export var alignment: int: - set(v): - $margin/vbox.alignment = v -" - -[sub_resource type="GDScript" id="GDScript_45hqb"] -script/source = "@tool - -extends MarginContainer - - -func _enter_tree() -> void: - margins = [8, 8, 8, 8] - - -@export var margins: Array: - set(vals): - add_theme_constant_override('margin_top', vals[0]) - add_theme_constant_override('margin_left', vals[1]) - add_theme_constant_override('margin_bottom', vals[2]) - add_theme_constant_override('margin_right', vals[3]) - get: - var vals = [0, 0, 0, 0] - vals[0] = get_theme_constant('margin_top') - vals[1] = get_theme_constant('margin_left') - vals[2] = get_theme_constant('margin_bottom') - vals[3] = get_theme_constant('margin_right') - return vals - - -" - -[node name="um1535" type="PanelContainer"] -editor_description = "Элемент замены из ЗИП" -offset_right = 160.0 -offset_bottom = 88.0 -theme_override_styles/panel = SubResource("StyleBoxEmpty_3nd2u") -script = SubResource("GDScript_oj3k3") -textures = [ExtResource("1_xcvfs"), ExtResource("2_ad1dj"), ExtResource("3_vxg7f")] -metadata/ref_des = "" -metadata/dec_num = "" - -[node name="rect" type="NinePatchRect" parent="."] -layout_mode = 2 -texture = ExtResource("4_1bnn6") -draw_center = false -region_rect = Rect2(0, 0, 63, 63) -patch_margin_left = 17 -patch_margin_top = 17 -patch_margin_right = 17 -patch_margin_bottom = 15 - -[node name="margin" type="MarginContainer" parent="."] -layout_mode = 2 -theme_override_constants/margin_left = 8 -theme_override_constants/margin_top = 8 -theme_override_constants/margin_right = 8 -theme_override_constants/margin_bottom = 8 -script = SubResource("GDScript_45hqb") -margins = [8, 8, 8, 8] - -[node name="vbox" type="VBoxContainer" parent="margin"] -layout_mode = 2 - -[node name="grid" type="GridContainer" parent="margin/vbox"] -layout_mode = 2 -columns = 3 - -[node name="state" type="TextureRect" parent="margin/vbox/grid"] -custom_minimum_size = Vector2(24, 24) -layout_mode = 2 -size_flags_horizontal = 2 -size_flags_vertical = 6 -texture = ExtResource("1_xcvfs") -expand_mode = 1 - -[node name="fname" type="Label" parent="margin/vbox/grid"] -self_modulate = Color(1, 1, 1, 0.627451) -layout_mode = 2 -size_flags_horizontal = 3 -size_flags_vertical = 6 -theme_override_font_sizes/font_size = 17 -horizontal_alignment = 1 -vertical_alignment = 1 - -[node name="rname" type="Label" parent="margin/vbox/grid"] -layout_mode = 2 -size_flags_horizontal = 3 -size_flags_vertical = 6 -theme_override_font_sizes/font_size = 22 -horizontal_alignment = 2 -vertical_alignment = 1 - -[node name="GridContainer" type="GridContainer" parent="margin/vbox"] -layout_mode = 2 -size_flags_vertical = 6 -columns = 2 - -[node name="Label" type="Label" parent="margin/vbox/GridContainer"] -self_modulate = Color(1, 1, 1, 0.63) -layout_mode = 2 -text = "℃" - -[node name="indicator_p" parent="margin/vbox/GridContainer" instance=ExtResource("5_3i5am")] -layout_mode = 2 -size_flags_horizontal = 3 -size_flags_vertical = 3 - -[node name="Label2" type="Label" parent="margin/vbox/GridContainer"] -self_modulate = Color(1, 1, 1, 0.63) -layout_mode = 2 -text = " W" - -[node name="indicator_t" parent="margin/vbox/GridContainer" instance=ExtResource("5_3i5am")] -layout_mode = 2 -size_flags_horizontal = 3 -size_flags_vertical = 3