Files
uarep-ctl/scenes/работа/работа.tscn

391 lines
12 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

[gd_scene load_steps=19 format=3 uid="uid://b276iygic5itk"]
[ext_resource type="Script" uid="uid://daudc0s3oox3i" path="res://scenes/работа/работа.gd" id="1_niok4"]
[ext_resource type="PackedScene" uid="uid://nl1vklubr5kr" path="res://scenes/bip/bip.tscn" id="2_br3s6"]
[ext_resource type="PackedScene" uid="uid://dem3fcec25awh" path="res://scenes/grid-side-panel/grid-side-panel.tscn" id="3_s2j0e"]
[ext_resource type="PackedScene" uid="uid://cnkbk53mi7viu" path="res://scenes/grid-buttons-ecm/grid-buttons-ecm.tscn" id="5_2jnbs"]
[ext_resource type="PackedScene" uid="uid://dymo732qc2doa" path="res://scenes/count-all/count-all-pad.tscn" id="6_e3re7"]
[ext_resource type="PackedScene" uid="uid://bwti82byphl68" path="res://scenes/count-danger/count_danger_pad.tscn" id="7_2arls"]
[ext_resource type="PackedScene" uid="uid://da7w3vkhadfwe" path="res://scenes/button-flat/button-flat.tscn" id="8_k0iv2"]
[ext_resource type="Texture2D" uid="uid://c1785x8wf1hdg" path="res://data/power-0.png" id="10_cnr1s"]
[ext_resource type="PackedScene" uid="uid://ceknxxfu1loo5" path="res://scenes/tilemap/tilemap.tscn" id="10_gtwyg"]
[ext_resource type="PackedScene" uid="uid://b5kjdyxuwsot5" path="res://scenes/diagram/diagram.tscn" id="11_b6su4"]
[ext_resource type="Texture2D" uid="uid://csdw3q5dtvu4w" path="res://data/power-1.png" id="11_xp4y6"]
[ext_resource type="Texture2D" uid="uid://0sk43ticjaxk" path="res://data/navi-center-0.png" id="12_5ffal"]
[ext_resource type="Texture2D" uid="uid://bk4ssfho1murp" path="res://data/navi-center-1.png" id="13_ggrwd"]
[ext_resource type="Texture2D" uid="uid://c6booa8753u5t" path="res://data/состояние-исправности-2.png" id="14_ggrwd"]
[sub_resource type="Animation" id="Animation_5ffal"]
resource_name = "goto"
step = 0.003
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:ax")
tracks/0/interp = 2
tracks/0/loop_wrap = false
tracks/0/keys = {
"times": PackedFloat32Array(),
"transitions": PackedFloat32Array(),
"update": 0,
"values": []
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath(".:ay")
tracks/1/interp = 2
tracks/1/loop_wrap = false
tracks/1/keys = {
"times": PackedFloat32Array(),
"transitions": PackedFloat32Array(),
"update": 0,
"values": []
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_ggrwd"]
_data = {
&"goto": SubResource("Animation_5ffal")
}
[sub_resource type="Gradient" id="Gradient_cnr1s"]
offsets = PackedFloat32Array(0.181818, 0.751623)
colors = PackedColorArray(1, 1, 1, 0.352941, 1, 1, 1, 0)
[sub_resource type="SystemFont" id="SystemFont_5ffal"]
generate_mipmaps = true
subpixel_positioning = 0
[node name="Работа" type="Panel"]
script = ExtResource("1_niok4")
Bip = ExtResource("2_br3s6")
col_grey = Color(0.34902, 0.643137, 0.772549, 0.168627)
col_red = Color(1, 0.568627, 0.431373, 0.239216)
drag_scale_band = 0.05
drag_scale_width = 0.5
freq_high = 6000.0
freq_low = 370.0
radius_center = Vector2(560, 560)
radius_internal = 200.0
radius_outter = 200.0
strob_max_band = 15.538
strob_max_width = 90.0
strob_min_band = 0.1
strob_min_width = 5.0
metadata/_edit_vertical_guides_ = []
[node name="btn_view" type="CheckBox" parent="."]
layout_mode = 0
offset_left = 835.0
offset_top = 5.0
offset_right = 994.0
offset_bottom = 32.0
action_mode = 0
text = "Обзорная карта"
[node name="canvas" parent="." instance=ExtResource("11_b6su4")]
metadata/_edit_lock_ = true
[node name="tilemap" parent="." instance=ExtResource("10_gtwyg")]
self_modulate = Color(1, 1, 1, 0.415686)
position = Vector2(360, 360)
min_zoom_level = 3
max_zoom_level_server = 11
ship_radius_km = 3.0
az = 3.0
[node name="player" type="AnimationPlayer" parent="tilemap"]
libraries = {
&"": SubResource("AnimationLibrary_ggrwd")
}
[node name="grd_side" parent="." instance=ExtResource("3_s2j0e")]
layout_mode = 0
offset_left = 1116.0
offset_top = 7.0
offset_right = 1594.0
offset_bottom = 1170.0
[node name="grd_btns" parent="." instance=ExtResource("5_2jnbs")]
layout_mode = 0
offset_left = 10.0
offset_top = 1116.0
offset_right = 1110.0
offset_bottom = 1170.0
tooltip_text = "Кнопки выбора типа помехи"
mouse_filter = 0
[node name="count_all_pad" parent="." instance=ExtResource("6_e3re7")]
layout_mode = 0
offset_left = 142.0
offset_top = 70.0
offset_right = 175.0
offset_bottom = 93.0
[node name="count_danger_pad" parent="." instance=ExtResource("7_2arls")]
layout_mode = 0
offset_left = 31.0
offset_top = 70.0
offset_right = 122.0
offset_bottom = 130.0
[node name="Label2" type="Label" parent="."]
layout_mode = 0
offset_left = 50.0
offset_top = 15.0
offset_right = 178.0
offset_bottom = 34.0
text = "Счётчики целей"
horizontal_alignment = 1
vertical_alignment = 1
[node name="Label3" type="Label" parent="."]
layout_mode = 0
offset_left = 132.0
offset_top = 45.0
offset_right = 188.0
offset_bottom = 65.0
text = "всего"
horizontal_alignment = 1
vertical_alignment = 1
[node name="Label4" type="Label" parent="."]
layout_mode = 0
offset_left = 43.0
offset_top = 45.0
offset_right = 108.0
offset_bottom = 65.0
text = "опасных"
horizontal_alignment = 1
[node name="btns_select" type="GridContainer" parent="."]
layout_mode = 0
offset_left = 1000.0
offset_top = 10.0
offset_right = 1110.0
offset_bottom = 125.0
[node name="label9" type="Label" parent="btns_select"]
self_modulate = Color(1, 1, 1, 0.62)
layout_mode = 2
text = "Режим выбора"
horizontal_alignment = 1
vertical_alignment = 1
[node name="btn_strob" parent="btns_select" groups=["группа-режим-выбора"] instance=ExtResource("8_k0iv2")]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
tooltip_text = "Кнопка для выбора сектора при помощи клика мышкой"
strips_rotation = 25.0
text = "Строб"
metadata/state = 0
[node name="btn_threats" parent="btns_select" groups=["группа-режим-выбора"] instance=ExtResource("8_k0iv2")]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
tooltip_text = "Кнопка для выбора сектора при помощи клика мышкой"
strips_rotation = 25.0
text = "Цель"
metadata/state = 1
[node name="btn_fs_sector" parent="btns_select" groups=["группа-режим-выбора"] instance=ExtResource("8_k0iv2")]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
tooltip_text = "Кнопка для выбора сектора при помощи клика мышкой"
strips_rotation = 25.0
text = "Сектор"
metadata/state = 2
[node name="chk_auto" type="CheckBox" parent="."]
layout_mode = 0
offset_left = 115.0
offset_top = 1085.0
offset_right = 257.0
offset_bottom = 1112.0
tooltip_text = "Автоматический выбор цели и помехи"
action_mode = 0
text = "Автоматически"
[node name="line0" type="Line2D" parent="chk_auto"]
position = Vector2(-2.06741, -5)
points = PackedVector2Array(-92.9326, 25, -92.9326, 20, 2.06741, 20)
width = 2.0
default_color = Color(1, 1, 1, 0.317647)
[node name="line1" type="Line2D" parent="chk_auto"]
position = Vector2(250, 0)
points = PackedVector2Array(735, 20, 735, 15, 350, 15)
width = 2.0
default_color = Color(1, 1, 1, 0.317647)
[node name="line2" type="Line2D" parent="chk_auto"]
position = Vector2(-30, 0)
points = PackedVector2Array(173, 15, 320, 15)
width = 2.0
default_color = Color(1, 1, 1, 0.352941)
[node name="line3" type="Line2D" parent="chk_auto"]
position = Vector2(155, 0)
points = PackedVector2Array(135, 15, 165, 15)
width = 2.0
default_color = Color(1, 1, 1, 0.352941)
gradient = SubResource("Gradient_cnr1s")
[node name="line5" type="Line2D" parent="chk_auto"]
position = Vector2(-220, 5)
points = PackedVector2Array(125, 15, 125, 25)
width = 2.0
default_color = Color(1, 1, 1, 0.352941)
gradient = SubResource("Gradient_cnr1s")
[node name="line6" type="Line2D" parent="chk_auto"]
position = Vector2(855, 0)
points = PackedVector2Array(130, 20, 130, 30)
width = 2.0
default_color = Color(1, 1, 1, 0.352941)
gradient = SubResource("Gradient_cnr1s")
[node name="line4" type="Line2D" parent="chk_auto"]
position = Vector2(405, 0)
points = PackedVector2Array(195, 15, 165, 15)
width = 2.0
default_color = Color(1, 1, 1, 0.352941)
gradient = SubResource("Gradient_cnr1s")
[node name="btn_activate" type="TextureButton" parent="."]
layout_mode = 0
offset_left = 1004.0
offset_top = 995.0
offset_right = 1136.0
offset_bottom = 1127.0
scale = Vector2(0.5, 0.5)
tooltip_text = "Применение выбранного режима помехи"
toggle_mode = true
button_pressed = true
action_mode = 0
texture_normal = ExtResource("10_cnr1s")
texture_pressed = ExtResource("11_xp4y6")
[node name="label" type="Label" parent="btn_activate"]
layout_mode = 0
offset_left = -18.0
offset_top = 120.0
offset_right = 66.0
offset_bottom = 139.0
scale = Vector2(2, 2)
text = "Подавление"
horizontal_alignment = 1
vertical_alignment = 1
[node name="btn_center" type="TextureButton" parent="."]
layout_mode = 0
offset_left = 898.0
offset_top = 1005.0
offset_right = 1030.0
offset_bottom = 1121.0
scale = Vector2(0.5, 0.5)
tooltip_text = "Устанавливает центр карты на текущие координаты"
toggle_mode = true
button_pressed = true
texture_normal = ExtResource("12_5ffal")
texture_pressed = ExtResource("13_ggrwd")
[node name="label" type="Label" parent="btn_center"]
layout_mode = 0
offset_left = -32.0
offset_top = 100.0
offset_right = 65.0
offset_bottom = 119.0
scale = Vector2(2, 2)
text = "Центрировать"
horizontal_alignment = 1
vertical_alignment = 1
[node name="coordinates_map" type="Label" parent="."]
layout_mode = 0
offset_left = 999.0
offset_top = 128.0
offset_right = 1111.0
offset_bottom = 147.0
text = "Координаты:"
[node name="scale_map" type="Label" parent="."]
layout_mode = 0
offset_left = 999.0
offset_top = 202.0
offset_right = 1109.0
offset_bottom = 223.0
text = "Масштаб:"
[node name="zoom_plus" type="Button" parent="."]
layout_mode = 0
offset_left = 1056.0
offset_top = 230.0
offset_right = 1088.0
offset_bottom = 262.0
theme_override_fonts/font = SubResource("SystemFont_5ffal")
theme_override_font_sizes/font_size = 20
text = "+"
[node name="zoom_minus" type="Button" parent="."]
layout_mode = 0
offset_left = 1056.0
offset_top = 270.0
offset_right = 1088.0
offset_bottom = 302.0
theme_override_font_sizes/font_size = 20
text = ""
[node name="btn_close" parent="." instance=ExtResource("8_k0iv2")]
layout_mode = 0
offset_left = 10.0
offset_top = 917.0
offset_right = 109.0
offset_bottom = 937.0
size_flags_horizontal = 3
size_flags_vertical = 3
tooltip_text = "Кнопка для выбора сектора при помощи клика мышкой"
strips_rotation = 25.0
text = "Сек. запрета"
metadata/state = 0
[node name="btn_work" parent="." instance=ExtResource("8_k0iv2")]
layout_mode = 2
offset_left = 10.0
offset_top = 890.0
offset_right = 109.0
offset_bottom = 910.0
size_flags_horizontal = 3
size_flags_vertical = 3
tooltip_text = "Кнопка для выбора сектора при помощи клика мышкой"
strips_rotation = 25.0
text = "Сек. работы"
metadata/state = 0
[node name="btn_all_work" type="TextureButton" parent="."]
modulate = Color(1, 1, 1, 0.356863)
layout_mode = 0
offset_left = 112.0
offset_top = 920.0
offset_right = 336.0
offset_bottom = 1144.0
scale = Vector2(0.06, 0.06)
texture_normal = ExtResource("14_ggrwd")
[connection signal="drag_begin" from="." to="." method="_on_drag_begin"]
[connection signal="drag_continue" from="." to="." method="_on_drag_continue"]
[connection signal="toggled" from="btn_view" to="." method="on_button_view_toggled"]
[connection signal="toggled" from="chk_auto" to="." method="on_value_changed"]
[connection signal="toggled" from="btn_activate" to="." method="on_btn_activate_toggled"]
[connection signal="toggled" from="btn_activate" to="." method="on_btn_activate"]
[connection signal="toggled" from="btn_center" to="." method="on_btn_center_toggled"]
[connection signal="button_down" from="zoom_plus" to="tilemap" method="_on_zoom_plus_button_down"]
[connection signal="button_up" from="zoom_plus" to="tilemap" method="_on_zoom_button_up"]
[connection signal="button_up" from="zoom_plus" to="tilemap" method="_on_zoom_plus_button_up"]
[connection signal="button_down" from="zoom_minus" to="tilemap" method="_on_zoom_minus_button_down"]
[connection signal="button_up" from="zoom_minus" to="tilemap" method="_on_zoom_button_up"]
[connection signal="pressed" from="btn_all_work" to="." method="_on_btn_all_work_pressed"]