diff --git a/data/Излучение.png b/data/Излучение.png index 8758f6f3..6290bbf3 100644 Binary files a/data/Излучение.png and b/data/Излучение.png differ diff --git a/data/Квадрат марс 454.png b/data/Квадрат марс 454.png index 670d2dec..31b21a33 100644 Binary files a/data/Квадрат марс 454.png and b/data/Квадрат марс 454.png differ diff --git a/data/Квадрат марс ГО.png b/data/Квадрат марс ГО.png index 2bf79149..cce427a7 100644 Binary files a/data/Квадрат марс ГО.png and b/data/Квадрат марс ГО.png differ diff --git a/data/Квадрат марс ОР-63.png b/data/Квадрат марс ОР-63.png index 821dad95..4d13f1d9 100644 Binary files a/data/Квадрат марс ОР-63.png and b/data/Квадрат марс ОР-63.png differ diff --git a/data/Квадрат марс РЛС1.png b/data/Квадрат марс РЛС1.png index 4be19b5f..6e835b46 100644 Binary files a/data/Квадрат марс РЛС1.png and b/data/Квадрат марс РЛС1.png differ diff --git a/data/Квадрат марс РЛС2.png b/data/Квадрат марс РЛС2.png index 7f6c0be0..8a538ce3 100644 Binary files a/data/Квадрат марс РЛС2.png and b/data/Квадрат марс РЛС2.png differ diff --git a/data/Квадрат марс с трубкой.png b/data/Квадрат марс с трубкой.png index 06466be2..1025c0ef 100644 Binary files a/data/Квадрат марс с трубкой.png and b/data/Квадрат марс с трубкой.png differ diff --git a/data/Квадрат салатный 454.png b/data/Квадрат салатный 454.png index fda1e654..6ad8a291 100644 Binary files a/data/Квадрат салатный 454.png and b/data/Квадрат салатный 454.png differ diff --git a/data/Квадрат салатный ГО.png b/data/Квадрат салатный ГО.png index 46f2795d..5589812a 100644 Binary files a/data/Квадрат салатный ГО.png and b/data/Квадрат салатный ГО.png differ diff --git a/data/Квадрат салатный ОР-63.png b/data/Квадрат салатный ОР-63.png index 1e9e6c98..6f2e7a58 100644 Binary files a/data/Квадрат салатный ОР-63.png and b/data/Квадрат салатный ОР-63.png differ diff --git a/data/Квадрат салатный РЛС1.png b/data/Квадрат салатный РЛС1.png index f57560f3..e4c8f0cf 100644 Binary files a/data/Квадрат салатный РЛС1.png and b/data/Квадрат салатный РЛС1.png differ diff --git a/data/Квадрат салатный РЛС2.png b/data/Квадрат салатный РЛС2.png index 119b3c8d..c7f33d66 100644 Binary files a/data/Квадрат салатный РЛС2.png and b/data/Квадрат салатный РЛС2.png differ diff --git a/data/Квадрат салатный с трубкой.png b/data/Квадрат салатный с трубкой.png index 4509564f..c32ec861 100644 Binary files a/data/Квадрат салатный с трубкой.png and b/data/Квадрат салатный с трубкой.png differ diff --git a/data/Кнопка подтверждения01.png b/data/Кнопка подтверждения01.png index 8449777f..f2d71a93 100644 Binary files a/data/Кнопка подтверждения01.png and b/data/Кнопка подтверждения01.png differ diff --git a/data/Окно частот0.png b/data/Окно частот0.png index 18d7d280..37c9874a 100644 Binary files a/data/Окно частот0.png and b/data/Окно частот0.png differ diff --git a/data/Приём.png b/data/Приём.png index 776df102..bc17234b 100644 Binary files a/data/Приём.png and b/data/Приём.png differ diff --git a/data/Скруглённый квадрат белый.png b/data/Скруглённый квадрат белый.png index d0959be3..c470bd35 100644 Binary files a/data/Скруглённый квадрат белый.png and b/data/Скруглённый квадрат белый.png differ diff --git a/data/Скруглённый квадрат серый.png b/data/Скруглённый квадрат серый.png index 35d08ee1..d4779b41 100644 Binary files a/data/Скруглённый квадрат серый.png and b/data/Скруглённый квадрат серый.png differ diff --git a/data/Скруглённый прямоуг салатный.png b/data/Скруглённый прямоуг салатный.png index f2ba3418..38f308c3 100644 Binary files a/data/Скруглённый прямоуг салатный.png and b/data/Скруглённый прямоуг салатный.png differ diff --git a/data/Скруглённый прямоугольник белый.png b/data/Скруглённый прямоугольник белый.png index f734b978..c17d762d 100644 Binary files a/data/Скруглённый прямоугольник белый.png and b/data/Скруглённый прямоугольник белый.png differ diff --git a/data/Скруглённый прямоугольник серый.png b/data/Скруглённый прямоугольник серый.png index c1684d86..6b6dfbe6 100644 Binary files a/data/Скруглённый прямоугольник серый.png and b/data/Скруглённый прямоугольник серый.png differ diff --git a/data/Угловой квадрат2.png b/data/Угловой квадрат2.png index ca73f105..4208f4c5 100644 Binary files a/data/Угловой квадрат2.png and b/data/Угловой квадрат2.png differ diff --git a/scenes/frame-ecm-list/scroll-ecm-list.gd b/scenes/frame-ecm-list/scroll-ecm-list.gd index 8ad0a9fd..8c6c2074 100644 --- a/scenes/frame-ecm-list/scroll-ecm-list.gd +++ b/scenes/frame-ecm-list/scroll-ecm-list.gd @@ -8,7 +8,7 @@ const TableHeader = preload('res://table/header.tscn') ## Ячейка за const TABLE_HEADER = [ TableHeader, TableHeader, TableHeader , TableHeader ] ## Описание ряда заголовка. const TABLE_ROW = [ CellLineEdit, CellLineEdit, CellLineEdit , CellLineEdit ] ## Описание ряда. const TABLE_HEADERS_TEXT = ['№', 'Название', 'Пеленг', 'Состояние' ] ## Заголовки таблицы. -const TABLE_COLUMN_SIZE = [ 65, 100, 90, 170 ] ## Ширины колонок. +const TABLE_COLUMN_SIZE = [ 65, 100, 95, 185 ] ## Ширины колонок. ## Состояние выполнения сеанса помехи const INTERFER_STATE = { diff --git a/scenes/tabs-switch/tab-switch.tscn b/scenes/tabs-switch/tab-switch.tscn index 473672b5..1c958ecf 100644 --- a/scenes/tabs-switch/tab-switch.tscn +++ b/scenes/tabs-switch/tab-switch.tscn @@ -8,7 +8,7 @@ [ext_resource type="PackedScene" uid="uid://musb21x2u0xs" path="res://scenes/эмс2/эмс2.tscn" id="6_41d34"] [ext_resource type="PackedScene" uid="uid://bnptm4rlp60dq" path="res://scenes/настройки/настройки.tscn" id="6_i8iv3"] [ext_resource type="Script" uid="uid://b5ykwyk5vpi6" path="res://scenes/tabs-switch/lbl_ready.gd" id="8_tidwt"] -[ext_resource type="Script" path="res://scenes/tabs-switch/тренаж_режим.gd" id="9_41d34"] +[ext_resource type="Script" uid="uid://roajn6c6wvc1" path="res://scenes/tabs-switch/тренаж_режим.gd" id="9_41d34"] [sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_tidwt"] diff --git a/scenes/tilemap/tilemap.gd b/scenes/tilemap/tilemap.gd index 39b0e0d3..228d0ab4 100644 --- a/scenes/tilemap/tilemap.gd +++ b/scenes/tilemap/tilemap.gd @@ -373,7 +373,7 @@ func _process(delta) -> void: remove_child(req) req.queue_free() _req_count -= 1 - push_error('запрос \"%s\" не отправлен' % tile.url) #TODO: For Deugs + push_error('запрос \"%s\" не отправлен' % tile.url) #TODO: For Debug if _queue.is_empty(): emit_signal('load_completed') @@ -717,7 +717,7 @@ func set_coordinates(lon: float, lat: float, course: float) -> void: add_mark_from_lon_lat(ship_id, lon, lat, ship_instance, 0.0) else: _marks[ship_id].position = lonlat_to_world(lon, lat) - ship_instance.rotation_degrees = fmod(course, 360.0) + ship_instance.rotation_degrees = fmod(270.0 + course, 360.0) queue_redraw() @@ -727,7 +727,7 @@ func blend_mask(val: bool) -> void: func update_coordinates_label(lon: float, lat: float) -> void: - coordinates_label = 'Координаты: NS:%f, EW:%f' % [lat, lon] + coordinates_label = 'Координаты: NS: %f, EW: %f' % [lat, lon] signaller.emit_signal('update_coordinates_map', coordinates_label) diff --git a/scenes/контроль/кнопка-прибора.gd b/scenes/контроль/кнопка-прибора.gd index 157514db..1c68a4b3 100644 --- a/scenes/контроль/кнопка-прибора.gd +++ b/scenes/контроль/кнопка-прибора.gd @@ -45,6 +45,14 @@ func enter_press(): Input.parse_input_event(enter_event) +func _on_settings_changed(): + if not is_inside_tree(): return + var white_color = ProjectSettings.get_setting('Схема прибора. Белый цвет', Color.LIGHT_GRAY) + var black_color = ProjectSettings.get_setting('Схема прибора. Чёрный цвет', Color.BLACK) + $pic_functional.material.set('shader_parameter/white', white_color) + $pic_functional.material.set('shader_parameter/black', black_color) + + @export var state: int: set(v): v = 0 if v < 0 else v % state_colors.size() diff --git a/scenes/работа/работа.tscn b/scenes/работа/работа.tscn index 8282d3fc..75c919c9 100644 --- a/scenes/работа/работа.tscn +++ b/scenes/работа/работа.tscn @@ -306,36 +306,36 @@ vertical_alignment = 1 [node name="coordinates_map" type="Label" parent="."] layout_mode = 0 -offset_left = 660.0 -offset_top = -24.0 -offset_right = 772.0 -offset_bottom = -5.0 +offset_left = 654.0 +offset_top = -23.0 +offset_right = 766.0 +offset_bottom = -4.0 text = "Координаты:" [node name="scale_map" type="Label" parent="."] layout_mode = 0 -offset_left = 1003.0 -offset_top = -24.0 -offset_right = 1113.0 -offset_bottom = -3.0 +offset_left = 1009.0 +offset_top = -23.0 +offset_right = 1119.0 +offset_bottom = -2.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 +offset_left = 952.0 +offset_top = 43.0 +offset_right = 984.0 +offset_bottom = 75.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 +offset_left = 952.0 +offset_top = 84.0 +offset_right = 984.0 +offset_bottom = 116.0 theme_override_font_sizes/font_size = 20 text = "−" diff --git a/scenes/эмс2/эмс2.tscn b/scenes/эмс2/эмс2.tscn index 90bde52a..4e6e530d 100644 --- a/scenes/эмс2/эмс2.tscn +++ b/scenes/эмс2/эмс2.tscn @@ -2,6 +2,7 @@ [ext_resource type="Texture2D" uid="uid://hkcvl2waf63s" path="res://data/вид сверху.png" id="1_b7vcf"] [ext_resource type="Script" uid="uid://bvlqgv7aapebl" path="res://scenes/эмс2/эмс_тг.gd" id="1_l3ueu"] +[ext_resource type="Texture2D" uid="uid://b1dw06ahtftq2" path="res://data/Окно частот0.png" id="3_2spgl"] [ext_resource type="Texture2D" uid="uid://0w6q4vfst0ry" path="res://data/OP-63.png" id="3_8gk36"] [ext_resource type="Texture2D" uid="uid://coxhivvc6uibs" path="res://data/Состояние РЭС 40.png" id="4_b3mus"] [ext_resource type="Texture2D" uid="uid://073el51yholj" path="res://data/454.png" id="4_nqi0i"] @@ -33,11 +34,7 @@ [ext_resource type="Texture2D" uid="uid://carr8bw5rwiwj" path="res://data/Кнопка подтверждения01.png" id="32_p41nv"] [ext_resource type="Texture2D" uid="uid://3siondd3feev" path="res://data/Скруглённый прямоугольник белый.png" id="33_5ifkb"] -[sub_resource type="CompressedTexture2D" id="CompressedTexture2D_5u4bk"] -load_path = "res://.godot/imported/Окно частот0.png-6b01791c971bddb01337caf9077bf060.ctex" - [sub_resource type="CompressedTexture2D" id="CompressedTexture2D_l3ueu"] -load_path = "res://.godot/imported/Скруглённый квадрат серый.png-4655829309cca3b1dec2c9ae01376d54.ctex" [node name="Panel" type="Panel"] script = ExtResource("1_l3ueu") @@ -56,7 +53,7 @@ offset_top = 240.0 offset_right = 1649.0 offset_bottom = 813.0 scale = Vector2(0.95, 0.95) -texture = SubResource("CompressedTexture2D_5u4bk") +texture = ExtResource("3_2spgl") expand_mode = 1 [node name="Op-63" type="TextureRect" parent="."] @@ -69,13 +66,13 @@ scale = Vector2(0.312207, 0.312207) texture = ExtResource("3_8gk36") [node name="СостояниеРэс44" type="Sprite2D" parent="Op-63"] -position = Vector2(277.772, 259.444) -scale = Vector2(1.77945, 1.77945) +position = Vector2(285.067, 253.037) +scale = Vector2(2.1, 2.1) texture = ExtResource("4_b3mus") [node name="СостояниеРэс24" type="Sprite2D" parent="Op-63"] -position = Vector2(277.772, 192.18) -scale = Vector2(1.77945, 1.77945) +position = Vector2(285.067, 150.541) +scale = Vector2(2.1, 2.1) texture = ExtResource("5_yqn2y") [node name="СостояниеРэс2" type="Sprite2D" parent="Op-63"] @@ -94,18 +91,18 @@ scale = Vector2(0.312, 0.312) texture = ExtResource("4_nqi0i") [node name="СостояниеРэс45" type="Sprite2D" parent="454"] -position = Vector2(277.956, 259.615) -scale = Vector2(1.78063, 1.78063) +position = Vector2(287.571, 253.205) +scale = Vector2(2.1, 2.1) texture = ExtResource("4_b3mus") [node name="СостояниеРэс25" type="Sprite2D" parent="454"] -position = Vector2(277.956, 192.308) -scale = Vector2(1.78063, 1.78063) +position = Vector2(287.571, 153.847) +scale = Vector2(2.1, 2.1) texture = ExtResource("5_yqn2y") [node name="СостояниеРэс3" type="Sprite2D" parent="454"] -position = Vector2(275.641, 38.4615) -scale = Vector2(3.20513, 3.20513) +position = Vector2(285.256, 41.6667) +scale = Vector2(4, 4) texture = ExtResource("6_m57px") [node name="lbl_trassa" type="Label" parent="454"] @@ -120,25 +117,25 @@ text = "Трасса" [node name="Го" type="TextureRect" parent="."] layout_mode = 0 offset_left = 488.0 -offset_top = 85.0 +offset_top = 84.0 offset_right = 701.0 -offset_bottom = 377.0 +offset_bottom = 376.0 scale = Vector2(0.312, 0.312) texture = ExtResource("5_e7tlv") [node name="СостояниеРэс40" type="Sprite2D" parent="Го"] -position = Vector2(278.045, 253.205) -scale = Vector2(1.78063, 1.78063) +position = Vector2(287.66, 253.205) +scale = Vector2(2.1, 2.1) texture = ExtResource("4_b3mus") [node name="СостояниеРэс20" type="Sprite2D" parent="Го"] -position = Vector2(278.045, 185.897) -scale = Vector2(1.78063, 1.78063) +position = Vector2(287.66, 150.641) +scale = Vector2(2.1, 2.1) texture = ExtResource("5_yqn2y") [node name="СостояниеЭмсСлабыйСигнал" type="Sprite2D" parent="Го"] -position = Vector2(278.045, 118.59) -scale = Vector2(3.37683, 3.20513) +position = Vector2(284.455, 38.4619) +scale = Vector2(4, 3.796) texture = ExtResource("9_5u4bk") [node name="Рлс1" type="TextureRect" parent="."] @@ -151,18 +148,18 @@ scale = Vector2(0.312, 0.312) texture = ExtResource("6_y58bl") [node name="СостояниеРэс41" type="Sprite2D" parent="Рлс1"] -position = Vector2(278.045, 259.615) -scale = Vector2(1.78063, 1.78063) +position = Vector2(287.661, 253.205) +scale = Vector2(2.1, 2.1) texture = ExtResource("4_b3mus") [node name="СостояниеРэс21" type="Sprite2D" parent="Рлс1"] -position = Vector2(278.045, 192.308) -scale = Vector2(1.78063, 1.78063) +position = Vector2(287.661, 153.846) +scale = Vector2(2.1, 2.1) texture = ExtResource("5_yqn2y") [node name="СостояниеЭмсСлабыйСигнал2" type="Sprite2D" parent="Рлс1"] -position = Vector2(278.045, 125) -scale = Vector2(3.37683, 3.20513) +position = Vector2(287.66, 38.4615) +scale = Vector2(4, 3.796) texture = ExtResource("9_5u4bk") [node name="Рлс2" type="TextureRect" parent="."] @@ -175,37 +172,37 @@ scale = Vector2(0.312, 0.312) texture = ExtResource("7_mxw8g") [node name="СостояниеРэс42" type="Sprite2D" parent="Рлс2"] -position = Vector2(278.045, 259.615) -scale = Vector2(1.78063, 1.78063) +position = Vector2(287.661, 253.205) +scale = Vector2(2.1, 2.1) texture = ExtResource("4_b3mus") [node name="СостояниеРэс22" type="Sprite2D" parent="Рлс2"] -position = Vector2(278.045, 192.308) -scale = Vector2(1.78063, 1.78063) +position = Vector2(287.661, 153.846) +scale = Vector2(2.1, 2.1) texture = ExtResource("5_yqn2y") [node name="СостояниеЭмсСлабыйСигнал3" type="Sprite2D" parent="Рлс2"] -position = Vector2(278.045, 125) -scale = Vector2(3.37683, 3.20513) +position = Vector2(287.66, 38.4615) +scale = Vector2(4, 3.796) texture = ExtResource("9_5u4bk") [node name="Ннвс" type="TextureRect" parent="."] layout_mode = 0 offset_left = 1240.0 -offset_top = 88.0 +offset_top = 84.0 offset_right = 1453.0 -offset_bottom = 380.0 +offset_bottom = 376.0 scale = Vector2(0.312, 0.312) texture = ExtResource("8_q16jd") [node name="СостояниеРэс43" type="Sprite2D" parent="Ннвс"] -position = Vector2(277.956, 253.205) -scale = Vector2(1.78063, 1.78063) +position = Vector2(287.571, 253.205) +scale = Vector2(2.1, 2.1) texture = ExtResource("4_b3mus") [node name="СостояниеРэс23" type="Sprite2D" parent="Ннвс"] -position = Vector2(277.956, 185.897) -scale = Vector2(1.78063, 1.78063) +position = Vector2(287.571, 153.846) +scale = Vector2(2.1, 2.1) texture = ExtResource("5_yqn2y") [node name="УгловойКвадрат2" type="Sprite2D" parent="."] @@ -406,9 +403,9 @@ texture = SubResource("CompressedTexture2D_l3ueu") [node name="Label" type="Label" parent="."] layout_mode = 0 -offset_left = 800.0 +offset_left = 799.0 offset_top = 246.0 -offset_right = 873.0 +offset_right = 872.0 offset_bottom = 265.0 theme_override_colors/font_color = Color(0, 0, 0, 1) theme_override_font_sizes/font_size = 16 @@ -416,7 +413,7 @@ text = "Излучение" [node name="Label2" type="Label" parent="."] layout_mode = 0 -offset_left = 813.0 +offset_left = 814.0 offset_top = 503.0 offset_right = 861.0 offset_bottom = 522.0 @@ -484,52 +481,52 @@ theme_override_colors/font_color = Color(0, 0, 0, 1) text = "Изделие" [node name="Label" type="Label" parent="СкруглённыйПрямоугСалатный"] -offset_left = -33.0 +offset_left = -33.7501 offset_top = -10.2857 -offset_right = 35.0 -offset_bottom = 8.71429 +offset_right = 34.2499 +offset_bottom = 8.7143 theme_override_colors/font_color = Color(0, 0, 0, 1) text = "Комплекс" [node name="Label3" type="Label" parent="СкруглённыйПрямоугСалатный"] -offset_left = 133.0 -offset_top = -10.0 -offset_right = 180.0 -offset_bottom = 9.0 +offset_left = 132.75 +offset_top = -11.1428 +offset_right = 179.75 +offset_bottom = 11.8572 theme_override_colors/font_color = Color(0, 0, 0, 1) text = "Режим" [node name="Label4" type="Label" parent="СкруглённыйПрямоугСалатный"] -offset_left = 209.25 +offset_left = 210.751 offset_top = -10.2857 -offset_right = 258.25 +offset_right = 259.751 offset_bottom = 8.7143 theme_override_colors/font_color = Color(0, 0, 0, 1) text = "Азимут" [node name="Label5" type="Label" parent="СкруглённыйПрямоугСалатный"] -offset_left = 627.0 -offset_top = -20.5713 -offset_right = 693.0 -offset_bottom = 20.4287 +offset_left = 620.252 +offset_top = -23.1428 +offset_right = 699.252 +offset_bottom = 25.8572 theme_override_colors/font_color = Color(0, 0, 0, 1) text = "Запрет передачи" horizontal_alignment = 1 [node name="Label6" type="Label" parent="СкруглённыйПрямоугСалатный"] -offset_left = 516.75 -offset_top = -10.2857 -offset_right = 574.75 -offset_bottom = 8.7143 +offset_left = 518.251 +offset_top = -12.0 +offset_right = 576.251 +offset_bottom = 11.0 theme_override_colors/font_color = Color(0, 0, 0, 1) text = "Верхняя" [node name="Label7" type="Label" parent="СкруглённыйПрямоугСалатный"] -offset_left = 441.0 -offset_top = -10.2857 -offset_right = 495.0 -offset_bottom = 8.7143 +offset_left = 440.0 +offset_top = -11.0 +offset_right = 494.0 +offset_bottom = 12.0 theme_override_colors/font_color = Color(0, 0, 0, 1) text = "Нижняя" @@ -542,12 +539,14 @@ theme_override_colors/font_color = Color(0, 0, 0, 1) text = "Кластер" [node name="Label9" type="Label" parent="СкруглённыйПрямоугСалатный"] -offset_left = 275.25 -offset_top = -10.2857 -offset_right = 349.25 -offset_bottom = 8.7143 +offset_left = 276.001 +offset_top = -20.5714 +offset_right = 350.001 +offset_bottom = 20.4286 theme_override_colors/font_color = Color(0, 0, 0, 1) -text = "Угол места" +text = "Угол +места" +horizontal_alignment = 1 [node name="Label10" type="Label" parent="СкруглённыйПрямоугСалатный"] offset_left = 747.0