diff --git a/.gitignore b/.gitignore index 4762b6c1..a6146d7f 100644 --- a/.gitignore +++ b/.gitignore @@ -2,7 +2,6 @@ .import/ .dev/ export.cfg -export_presets.cfg # Imported translations (automatically generated from CSV files) *.translation diff --git a/README.md b/README.md index 0f44954a..777d33ab 100644 --- a/README.md +++ b/README.md @@ -19,9 +19,17 @@ - [Запуск имитаторов](http://gitea.srez.local:3000/sasha80/uarep-ctl-test-launcher) -# Сборка исполняемого файла из консоли +# Сборка исполняемого файла для Linux из консоли -- Запустить скрипт `build.sh` +1. Убедиться, что файлы [шаблонов экспорта](http://gitea.srez.local:3000/sasha80/godot-bin) находятся в папке +`~/.local/share/godot/export_templates/4.4.1.stable` в следующем составе: + - `linux_debug.x86_64` + - `linux_release.x86_64` + - `windows_debug_x86_64.exe` + - `windows_release_x86_64.exe` + +2. Запустить скрипт `build.sh`. +3. В папке `./bin/` будет создан исполняемый файл `uarep-ctl.linux.x86_64` # Взаимодействие с 5П-28 @@ -36,4 +44,3 @@ - После клонирования запустить скрипт `git-hooks-config.sh` - В среде **Windows** запуск скрипта `git-hooks-config.sh` производить из оболочки `git bash` - Нужно обновить `settings.json` -- поиск циклических зависимостей (не реализованно) diff --git a/scenes/tilemap/23900.png b/data/23900.png similarity index 100% rename from scenes/tilemap/23900.png rename to data/23900.png diff --git a/scenes/tilemap/23900.png.import b/data/23900.png.import similarity index 72% rename from scenes/tilemap/23900.png.import rename to data/23900.png.import index d31f8eed..51aa29ce 100644 --- a/scenes/tilemap/23900.png.import +++ b/data/23900.png.import @@ -3,15 +3,15 @@ importer="texture" type="CompressedTexture2D" uid="uid://cj1f2uy6qfvki" -path="res://.godot/imported/23900.png-aba6c607cdfb6350afef981f7b82f108.ctex" +path="res://.godot/imported/23900.png-d040ccca5d0a90ed3fecc02e14cd833c.ctex" metadata={ "vram_texture": false } [deps] -source_file="res://scenes/tilemap/23900.png" -dest_files=["res://.godot/imported/23900.png-aba6c607cdfb6350afef981f7b82f108.ctex"] +source_file="res://data/23900.png" +dest_files=["res://.godot/imported/23900.png-d040ccca5d0a90ed3fecc02e14cd833c.ctex"] [params] diff --git a/scenes/эмс2/454.png b/data/454.png similarity index 100% rename from scenes/эмс2/454.png rename to data/454.png diff --git a/scenes/эмс2/454.png.import b/data/454.png.import similarity index 73% rename from scenes/эмс2/454.png.import rename to data/454.png.import index b779cc3e..67cec3cd 100644 --- a/scenes/эмс2/454.png.import +++ b/data/454.png.import @@ -3,15 +3,15 @@ importer="texture" type="CompressedTexture2D" uid="uid://073el51yholj" -path="res://.godot/imported/454.png-0786f89bab034f96d995fbcf0a2cf120.ctex" +path="res://.godot/imported/454.png-c132d7ef2b8e83240b42cc8ee25bc3a1.ctex" metadata={ "vram_texture": false } [deps] -source_file="res://scenes/эмс2/454.png" -dest_files=["res://.godot/imported/454.png-0786f89bab034f96d995fbcf0a2cf120.ctex"] +source_file="res://data/454.png" +dest_files=["res://.godot/imported/454.png-c132d7ef2b8e83240b42cc8ee25bc3a1.ctex"] [params] diff --git a/scenes/эмс2/OP-63.png b/data/OP-63.png similarity index 100% rename from scenes/эмс2/OP-63.png rename to data/OP-63.png diff --git a/scenes/эмс2/OP-63.png.import b/data/OP-63.png.import similarity index 72% rename from scenes/эмс2/OP-63.png.import rename to data/OP-63.png.import index c07a24d0..f0f52d93 100644 --- a/scenes/эмс2/OP-63.png.import +++ b/data/OP-63.png.import @@ -3,15 +3,15 @@ importer="texture" type="CompressedTexture2D" uid="uid://0w6q4vfst0ry" -path="res://.godot/imported/OP-63.png-5da3f06f893690e242765af13436cb44.ctex" +path="res://.godot/imported/OP-63.png-2a0f3c88de1eabad7f9bd75309301148.ctex" metadata={ "vram_texture": false } [deps] -source_file="res://scenes/эмс2/OP-63.png" -dest_files=["res://.godot/imported/OP-63.png-5da3f06f893690e242765af13436cb44.ctex"] +source_file="res://data/OP-63.png" +dest_files=["res://.godot/imported/OP-63.png-2a0f3c88de1eabad7f9bd75309301148.ctex"] [params] diff --git a/scenes/tilemap/dot.png b/data/dot.png similarity index 100% rename from scenes/tilemap/dot.png rename to data/dot.png diff --git a/scenes/tilemap/dot.png.import b/data/dot.png.import similarity index 73% rename from scenes/tilemap/dot.png.import rename to data/dot.png.import index fcf1bed3..2b48ffea 100644 --- a/scenes/tilemap/dot.png.import +++ b/data/dot.png.import @@ -3,15 +3,15 @@ importer="texture" type="CompressedTexture2D" uid="uid://cgqo5gucd2be0" -path="res://.godot/imported/dot.png-e35f44878005aaa12b3432f2608ddde5.ctex" +path="res://.godot/imported/dot.png-5d2b863cff34eea0d0b20ed5476ff90e.ctex" metadata={ "vram_texture": false } [deps] -source_file="res://scenes/tilemap/dot.png" -dest_files=["res://.godot/imported/dot.png-e35f44878005aaa12b3432f2608ddde5.ctex"] +source_file="res://data/dot.png" +dest_files=["res://.godot/imported/dot.png-5d2b863cff34eea0d0b20ed5476ff90e.ctex"] [params] diff --git a/scenes/эмс2/img4302.png b/data/img4302.png similarity index 100% rename from scenes/эмс2/img4302.png rename to data/img4302.png diff --git a/scenes/эмс2/img4302.png.import b/data/img4302.png.import similarity index 72% rename from scenes/эмс2/img4302.png.import rename to data/img4302.png.import index e94b696f..0a29f5e9 100644 --- a/scenes/эмс2/img4302.png.import +++ b/data/img4302.png.import @@ -3,15 +3,15 @@ importer="texture" type="CompressedTexture2D" uid="uid://bj7vjj0ltgq4u" -path="res://.godot/imported/img4302.png-6e80975f597e730b9472afc977ec1c0d.ctex" +path="res://.godot/imported/img4302.png-5eee23c9a44f99f969e357ae92f76b5e.ctex" metadata={ "vram_texture": false } [deps] -source_file="res://scenes/эмс2/img4302.png" -dest_files=["res://.godot/imported/img4302.png-6e80975f597e730b9472afc977ec1c0d.ctex"] +source_file="res://data/img4302.png" +dest_files=["res://.godot/imported/img4302.png-5eee23c9a44f99f969e357ae92f76b5e.ctex"] [params] diff --git a/scenes/эмс2/imgOP-63.png b/data/imgOP-63.png similarity index 100% rename from scenes/эмс2/imgOP-63.png rename to data/imgOP-63.png diff --git a/scenes/эмс2/imgOP-63.png.import b/data/imgOP-63.png.import similarity index 72% rename from scenes/эмс2/imgOP-63.png.import rename to data/imgOP-63.png.import index 9bfd7828..cfd696e6 100644 --- a/scenes/эмс2/imgOP-63.png.import +++ b/data/imgOP-63.png.import @@ -3,15 +3,15 @@ importer="texture" type="CompressedTexture2D" uid="uid://dr3oxsnnuss40" -path="res://.godot/imported/imgOP-63.png-7f3bef0f8f72c875930fdbef72a924bc.ctex" +path="res://.godot/imported/imgOP-63.png-97d3c8a1732b09b40fca161db2399e48.ctex" metadata={ "vram_texture": false } [deps] -source_file="res://scenes/эмс2/imgOP-63.png" -dest_files=["res://.godot/imported/imgOP-63.png-7f3bef0f8f72c875930fdbef72a924bc.ctex"] +source_file="res://data/imgOP-63.png" +dest_files=["res://.godot/imported/imgOP-63.png-97d3c8a1732b09b40fca161db2399e48.ctex"] [params] diff --git a/scenes/эмс2/imgМР231-3.png b/data/imgМР231-3.png similarity index 100% rename from scenes/эмс2/imgМР231-3.png rename to data/imgМР231-3.png diff --git a/scenes/эмс2/imgМР231-3.png.import b/data/imgМР231-3.png.import similarity index 70% rename from scenes/эмс2/imgМР231-3.png.import rename to data/imgМР231-3.png.import index 44f7543e..289ee972 100644 --- a/scenes/эмс2/imgМР231-3.png.import +++ b/data/imgМР231-3.png.import @@ -3,15 +3,15 @@ importer="texture" type="CompressedTexture2D" uid="uid://b2h1wrwovp1ht" -path="res://.godot/imported/imgМР231-3.png-3e0e88cc9ef1d9dae96d8042c6fec0ae.ctex" +path="res://.godot/imported/imgМР231-3.png-2e9e8021860e06d999269b0da844b898.ctex" metadata={ "vram_texture": false } [deps] -source_file="res://scenes/эмс2/imgМР231-3.png" -dest_files=["res://.godot/imported/imgМР231-3.png-3e0e88cc9ef1d9dae96d8042c6fec0ae.ctex"] +source_file="res://data/imgМР231-3.png" +dest_files=["res://.godot/imported/imgМР231-3.png-2e9e8021860e06d999269b0da844b898.ctex"] [params] diff --git a/scenes/эмс2/imgМР231S.png b/data/imgМР231S.png similarity index 100% rename from scenes/эмс2/imgМР231S.png rename to data/imgМР231S.png diff --git a/scenes/эмс2/imgМР231S.png.import b/data/imgМР231S.png.import similarity index 71% rename from scenes/эмс2/imgМР231S.png.import rename to data/imgМР231S.png.import index d1824383..51fefc93 100644 --- a/scenes/эмс2/imgМР231S.png.import +++ b/data/imgМР231S.png.import @@ -3,15 +3,15 @@ importer="texture" type="CompressedTexture2D" uid="uid://ck1b62i5g1p2o" -path="res://.godot/imported/imgМР231S.png-bad9289239cf8c4455c78ee3ef400439.ctex" +path="res://.godot/imported/imgМР231S.png-29aa3bce331505e885dab3f71211ec02.ctex" metadata={ "vram_texture": false } [deps] -source_file="res://scenes/эмс2/imgМР231S.png" -dest_files=["res://.godot/imported/imgМР231S.png-bad9289239cf8c4455c78ee3ef400439.ctex"] +source_file="res://data/imgМР231S.png" +dest_files=["res://.godot/imported/imgМР231S.png-29aa3bce331505e885dab3f71211ec02.ctex"] [params] diff --git a/scenes/эмс2/imgП454К.png b/data/imgП454К.png similarity index 100% rename from scenes/эмс2/imgП454К.png rename to data/imgП454К.png diff --git a/scenes/эмс2/imgП454К.png.import b/data/imgП454К.png.import similarity index 71% rename from scenes/эмс2/imgП454К.png.import rename to data/imgП454К.png.import index b5662e9c..8e588ecc 100644 --- a/scenes/эмс2/imgП454К.png.import +++ b/data/imgП454К.png.import @@ -3,15 +3,15 @@ importer="texture" type="CompressedTexture2D" uid="uid://dl2tpjbjnglwb" -path="res://.godot/imported/imgП454К.png-c58afb0d1917ecf5b7e4704f8016735f.ctex" +path="res://.godot/imported/imgП454К.png-f119c55f48c069f28a248543d6233e18.ctex" metadata={ "vram_texture": false } [deps] -source_file="res://scenes/эмс2/imgП454К.png" -dest_files=["res://.godot/imported/imgП454К.png-c58afb0d1917ecf5b7e4704f8016735f.ctex"] +source_file="res://data/imgП454К.png" +dest_files=["res://.godot/imported/imgП454К.png-f119c55f48c069f28a248543d6233e18.ctex"] [params] diff --git a/scenes/эмс2/imgЦИВС.png b/data/imgЦИВС.png similarity index 100% rename from scenes/эмс2/imgЦИВС.png rename to data/imgЦИВС.png diff --git a/scenes/эмс2/imgЦИВС.png.import b/data/imgЦИВС.png.import similarity index 71% rename from scenes/эмс2/imgЦИВС.png.import rename to data/imgЦИВС.png.import index 26d46adc..b29cf10d 100644 --- a/scenes/эмс2/imgЦИВС.png.import +++ b/data/imgЦИВС.png.import @@ -3,15 +3,15 @@ importer="texture" type="CompressedTexture2D" uid="uid://c7femlgfmjcgg" -path="res://.godot/imported/imgЦИВС.png-2088b7ce536067882af032da1969e382.ctex" +path="res://.godot/imported/imgЦИВС.png-3c5c201e9af19a5d6a4fe30a3db2704c.ctex" metadata={ "vram_texture": false } [deps] -source_file="res://scenes/эмс2/imgЦИВС.png" -dest_files=["res://.godot/imported/imgЦИВС.png-2088b7ce536067882af032da1969e382.ctex"] +source_file="res://data/imgЦИВС.png" +dest_files=["res://.godot/imported/imgЦИВС.png-3c5c201e9af19a5d6a4fe30a3db2704c.ctex"] [params] diff --git a/scenes/tilemap/threat.png b/data/threat.png similarity index 100% rename from scenes/tilemap/threat.png rename to data/threat.png diff --git a/scenes/tilemap/threat.png.import b/data/threat.png.import similarity index 72% rename from scenes/tilemap/threat.png.import rename to data/threat.png.import index 9d8f51ca..177638e0 100644 --- a/scenes/tilemap/threat.png.import +++ b/data/threat.png.import @@ -3,15 +3,15 @@ importer="texture" type="CompressedTexture2D" uid="uid://mobingoxskg1" -path="res://.godot/imported/threat.png-602b9c318dc5f1342d23490e047ca526.ctex" +path="res://.godot/imported/threat.png-1a67637e693cb1772ca6118255edb5e4.ctex" metadata={ "vram_texture": false } [deps] -source_file="res://scenes/tilemap/threat.png" -dest_files=["res://.godot/imported/threat.png-602b9c318dc5f1342d23490e047ca526.ctex"] +source_file="res://data/threat.png" +dest_files=["res://.godot/imported/threat.png-1a67637e693cb1772ca6118255edb5e4.ctex"] [params] diff --git a/scenes/эмс2/ГО.png b/data/ГО.png similarity index 100% rename from scenes/эмс2/ГО.png rename to data/ГО.png diff --git a/scenes/эмс2/ГО.png.import b/data/ГО.png.import similarity index 73% rename from scenes/эмс2/ГО.png.import rename to data/ГО.png.import index af60b606..926b3295 100644 --- a/scenes/эмс2/ГО.png.import +++ b/data/ГО.png.import @@ -3,15 +3,15 @@ importer="texture" type="CompressedTexture2D" uid="uid://cckk3jk5r32bh" -path="res://.godot/imported/ГО.png-0c35310fad9991f16e2c7944cb0aa27d.ctex" +path="res://.godot/imported/ГО.png-9297e1095c75a909727604be6351081c.ctex" metadata={ "vram_texture": false } [deps] -source_file="res://scenes/эмс2/ГО.png" -dest_files=["res://.godot/imported/ГО.png-0c35310fad9991f16e2c7944cb0aa27d.ctex"] +source_file="res://data/ГО.png" +dest_files=["res://.godot/imported/ГО.png-9297e1095c75a909727604be6351081c.ctex"] [params] diff --git a/data/Излучение.png b/data/Излучение.png new file mode 100644 index 00000000..6290bbf3 Binary files /dev/null and b/data/Излучение.png differ diff --git a/scenes/эмс2/Излучение.png.import b/data/Излучение.png.import similarity index 69% rename from scenes/эмс2/Излучение.png.import rename to data/Излучение.png.import index fad4ad12..ddc03350 100644 --- a/scenes/эмс2/Излучение.png.import +++ b/data/Излучение.png.import @@ -3,15 +3,15 @@ importer="texture" type="CompressedTexture2D" uid="uid://bw2sx5d0mcu53" -path="res://.godot/imported/Излучение.png-5b4f1b0941f14dd39256508d964cdf77.ctex" +path="res://.godot/imported/Излучение.png-4142b1103fbee10e1f5d4abd96665a2d.ctex" metadata={ "vram_texture": false } [deps] -source_file="res://scenes/эмс2/Излучение.png" -dest_files=["res://.godot/imported/Излучение.png-5b4f1b0941f14dd39256508d964cdf77.ctex"] +source_file="res://data/Излучение.png" +dest_files=["res://.godot/imported/Излучение.png-4142b1103fbee10e1f5d4abd96665a2d.ctex"] [params] diff --git a/data/Квадрат марс 454.png b/data/Квадрат марс 454.png new file mode 100644 index 00000000..31b21a33 Binary files /dev/null and b/data/Квадрат марс 454.png differ diff --git a/scenes/эмс2/Квадрат марс 454.png.import b/data/Квадрат марс 454.png.import similarity index 74% rename from scenes/эмс2/Квадрат марс 454.png.import rename to data/Квадрат марс 454.png.import index 2edd77cc..ceeed8c3 100644 --- a/scenes/эмс2/Квадрат марс 454.png.import +++ b/data/Квадрат марс 454.png.import @@ -3,15 +3,15 @@ importer="texture" type="CompressedTexture2D" uid="uid://d3qui21aom1ac" -path="res://.godot/imported/Квадрат марс 454.png-b95a5e87a8b4c7dfab2ab9770eb24a67.ctex" +path="res://.godot/imported/Квадрат марс 454.png-71c12351dd76fee789faa5f1bec80a92.ctex" metadata={ "vram_texture": false } [deps] -source_file="res://scenes/эмс2/Квадрат марс 454.png" -dest_files=["res://.godot/imported/Квадрат марс 454.png-b95a5e87a8b4c7dfab2ab9770eb24a67.ctex"] +source_file="res://data/Квадрат марс 454.png" +dest_files=["res://.godot/imported/Квадрат марс 454.png-71c12351dd76fee789faa5f1bec80a92.ctex"] [params] diff --git a/data/Квадрат марс ГО.png b/data/Квадрат марс ГО.png new file mode 100644 index 00000000..cce427a7 Binary files /dev/null and b/data/Квадрат марс ГО.png differ diff --git a/scenes/эмс2/Квадрат марс ГО.png.import b/data/Квадрат марс ГО.png.import similarity index 74% rename from scenes/эмс2/Квадрат марс ГО.png.import rename to data/Квадрат марс ГО.png.import index a6bcbb74..a76552ce 100644 --- a/scenes/эмс2/Квадрат марс ГО.png.import +++ b/data/Квадрат марс ГО.png.import @@ -3,15 +3,15 @@ importer="texture" type="CompressedTexture2D" uid="uid://36xjgea2n22q" -path="res://.godot/imported/Квадрат марс ГО.png-23e7d814e3ad954b038d9b389d1b919d.ctex" +path="res://.godot/imported/Квадрат марс ГО.png-5d4c0f8027b34cc4827e93cb818e657d.ctex" metadata={ "vram_texture": false } [deps] -source_file="res://scenes/эмс2/Квадрат марс ГО.png" -dest_files=["res://.godot/imported/Квадрат марс ГО.png-23e7d814e3ad954b038d9b389d1b919d.ctex"] +source_file="res://data/Квадрат марс ГО.png" +dest_files=["res://.godot/imported/Квадрат марс ГО.png-5d4c0f8027b34cc4827e93cb818e657d.ctex"] [params] diff --git a/data/Квадрат марс ОР-63.png b/data/Квадрат марс ОР-63.png new file mode 100644 index 00000000..4d13f1d9 Binary files /dev/null and b/data/Квадрат марс ОР-63.png differ diff --git a/scenes/эмс2/Квадрат марс ОР-63.png.import b/data/Квадрат марс ОР-63.png.import similarity index 81% rename from scenes/эмс2/Квадрат марс ОР-63.png.import rename to data/Квадрат марс ОР-63.png.import index f758218c..f60a9bd7 100644 --- a/scenes/эмс2/Квадрат марс ОР-63.png.import +++ b/data/Квадрат марс ОР-63.png.import @@ -3,15 +3,15 @@ importer="texture" type="CompressedTexture2D" uid="uid://cxrggrvx6l22q" -path="res://.godot/imported/Квадрат марс ОР-63.png-8ecb8e9158c9d033961932059e47bb41.ctex" +path="res://.godot/imported/Квадрат марс ОР-63.png-0767a2291d864f6db6e1ba2eba47f7e0.ctex" metadata={ "vram_texture": false } [deps] -source_file="res://scenes/эмс2/Квадрат марс ОР-63.png" -dest_files=["res://.godot/imported/Квадрат марс ОР-63.png-8ecb8e9158c9d033961932059e47bb41.ctex"] +source_file="res://data/Квадрат марс ОР-63.png" +dest_files=["res://.godot/imported/Квадрат марс ОР-63.png-0767a2291d864f6db6e1ba2eba47f7e0.ctex"] [params] diff --git a/data/Квадрат марс РЛС1.png b/data/Квадрат марс РЛС1.png new file mode 100644 index 00000000..6e835b46 Binary files /dev/null and b/data/Квадрат марс РЛС1.png differ diff --git a/scenes/эмс2/Квадрат марс РЛС1.png.import b/data/Квадрат марс РЛС1.png.import similarity index 81% rename from scenes/эмс2/Квадрат марс РЛС1.png.import rename to data/Квадрат марс РЛС1.png.import index 7909a7e9..32ded545 100644 --- a/scenes/эмс2/Квадрат марс РЛС1.png.import +++ b/data/Квадрат марс РЛС1.png.import @@ -3,15 +3,15 @@ importer="texture" type="CompressedTexture2D" uid="uid://by6a12oahbg82" -path="res://.godot/imported/Квадрат марс РЛС1.png-afcb4ef535f04c85a70508ec79f2ca49.ctex" +path="res://.godot/imported/Квадрат марс РЛС1.png-2fdc69adb1baf39adbd31a6940e7edc8.ctex" metadata={ "vram_texture": false } [deps] -source_file="res://scenes/эмс2/Квадрат марс РЛС1.png" -dest_files=["res://.godot/imported/Квадрат марс РЛС1.png-afcb4ef535f04c85a70508ec79f2ca49.ctex"] +source_file="res://data/Квадрат марс РЛС1.png" +dest_files=["res://.godot/imported/Квадрат марс РЛС1.png-2fdc69adb1baf39adbd31a6940e7edc8.ctex"] [params] diff --git a/data/Квадрат марс РЛС2.png b/data/Квадрат марс РЛС2.png new file mode 100644 index 00000000..8a538ce3 Binary files /dev/null and b/data/Квадрат марс РЛС2.png differ diff --git a/scenes/эмс2/Квадрат марс РЛС2.png.import b/data/Квадрат марс РЛС2.png.import similarity index 81% rename from scenes/эмс2/Квадрат марс РЛС2.png.import rename to data/Квадрат марс РЛС2.png.import index 3c4a707b..a2275f01 100644 --- a/scenes/эмс2/Квадрат марс РЛС2.png.import +++ b/data/Квадрат марс РЛС2.png.import @@ -3,15 +3,15 @@ importer="texture" type="CompressedTexture2D" uid="uid://dwgqofj6yae1v" -path="res://.godot/imported/Квадрат марс РЛС2.png-4c3b92bbc046e136790faf34578d04e4.ctex" +path="res://.godot/imported/Квадрат марс РЛС2.png-97d339b659985176e1bf5b3d9396e56e.ctex" metadata={ "vram_texture": false } [deps] -source_file="res://scenes/эмс2/Квадрат марс РЛС2.png" -dest_files=["res://.godot/imported/Квадрат марс РЛС2.png-4c3b92bbc046e136790faf34578d04e4.ctex"] +source_file="res://data/Квадрат марс РЛС2.png" +dest_files=["res://.godot/imported/Квадрат марс РЛС2.png-97d339b659985176e1bf5b3d9396e56e.ctex"] [params] diff --git a/data/Квадрат марс с трубкой.png b/data/Квадрат марс с трубкой.png new file mode 100644 index 00000000..1025c0ef Binary files /dev/null and b/data/Квадрат марс с трубкой.png differ diff --git a/scenes/эмс2/Квадрат марс с трубкой.png.import b/data/Квадрат марс с трубкой.png.import similarity index 78% rename from scenes/эмс2/Квадрат марс с трубкой.png.import rename to data/Квадрат марс с трубкой.png.import index f18a95d7..4f702817 100644 --- a/scenes/эмс2/Квадрат марс с трубкой.png.import +++ b/data/Квадрат марс с трубкой.png.import @@ -3,15 +3,15 @@ importer="texture" type="CompressedTexture2D" uid="uid://dsuiytxdnole7" -path="res://.godot/imported/Квадрат марс с трубкой.png-615c0815d4f723fbf95570d0bda9905c.ctex" +path="res://.godot/imported/Квадрат марс с трубкой.png-f03adfaac6e005dc959ba6a51eca1870.ctex" metadata={ "vram_texture": false } [deps] -source_file="res://scenes/эмс2/Квадрат марс с трубкой.png" -dest_files=["res://.godot/imported/Квадрат марс с трубкой.png-615c0815d4f723fbf95570d0bda9905c.ctex"] +source_file="res://data/Квадрат марс с трубкой.png" +dest_files=["res://.godot/imported/Квадрат марс с трубкой.png-f03adfaac6e005dc959ba6a51eca1870.ctex"] [params] diff --git a/data/Квадрат салатный 454.png b/data/Квадрат салатный 454.png new file mode 100644 index 00000000..6ad8a291 Binary files /dev/null and b/data/Квадрат салатный 454.png differ diff --git a/scenes/эмс2/Квадрат салатный 454.png.import b/data/Квадрат салатный 454.png.import similarity index 80% rename from scenes/эмс2/Квадрат салатный 454.png.import rename to data/Квадрат салатный 454.png.import index a6f548dd..d98cc55e 100644 --- a/scenes/эмс2/Квадрат салатный 454.png.import +++ b/data/Квадрат салатный 454.png.import @@ -3,15 +3,15 @@ importer="texture" type="CompressedTexture2D" uid="uid://b1kuhj03yigih" -path="res://.godot/imported/Квадрат салатный 454.png-e5160944883f38443834881280210fbb.ctex" +path="res://.godot/imported/Квадрат салатный 454.png-b5a52cf636708f88d5000751acdbc349.ctex" metadata={ "vram_texture": false } [deps] -source_file="res://scenes/эмс2/Квадрат салатный 454.png" -dest_files=["res://.godot/imported/Квадрат салатный 454.png-e5160944883f38443834881280210fbb.ctex"] +source_file="res://data/Квадрат салатный 454.png" +dest_files=["res://.godot/imported/Квадрат салатный 454.png-b5a52cf636708f88d5000751acdbc349.ctex"] [params] diff --git a/data/Квадрат салатный ГО.png b/data/Квадрат салатный ГО.png new file mode 100644 index 00000000..5589812a Binary files /dev/null and b/data/Квадрат салатный ГО.png differ diff --git a/scenes/эмс2/Квадрат салатный ГО.png.import b/data/Квадрат салатный ГО.png.import similarity index 79% rename from scenes/эмс2/Квадрат салатный ГО.png.import rename to data/Квадрат салатный ГО.png.import index 020dc94c..742fa5d2 100644 --- a/scenes/эмс2/Квадрат салатный ГО.png.import +++ b/data/Квадрат салатный ГО.png.import @@ -3,15 +3,15 @@ importer="texture" type="CompressedTexture2D" uid="uid://cyb60nh23ys6k" -path="res://.godot/imported/Квадрат салатный ГО.png-2d7ca17d2db7cbf24be68cf04fe1ab8d.ctex" +path="res://.godot/imported/Квадрат салатный ГО.png-26dbf19de4d1cc7ea13fcbb63ea990a2.ctex" metadata={ "vram_texture": false } [deps] -source_file="res://scenes/эмс2/Квадрат салатный ГО.png" -dest_files=["res://.godot/imported/Квадрат салатный ГО.png-2d7ca17d2db7cbf24be68cf04fe1ab8d.ctex"] +source_file="res://data/Квадрат салатный ГО.png" +dest_files=["res://.godot/imported/Квадрат салатный ГО.png-26dbf19de4d1cc7ea13fcbb63ea990a2.ctex"] [params] diff --git a/data/Квадрат салатный ОР-63.png b/data/Квадрат салатный ОР-63.png new file mode 100644 index 00000000..6f2e7a58 Binary files /dev/null and b/data/Квадрат салатный ОР-63.png differ diff --git a/scenes/эмс2/Квадрат салатный ОР-63.png.import b/data/Квадрат салатный ОР-63.png.import similarity index 79% rename from scenes/эмс2/Квадрат салатный ОР-63.png.import rename to data/Квадрат салатный ОР-63.png.import index 8d8d472f..091103f3 100644 --- a/scenes/эмс2/Квадрат салатный ОР-63.png.import +++ b/data/Квадрат салатный ОР-63.png.import @@ -3,15 +3,15 @@ importer="texture" type="CompressedTexture2D" uid="uid://d3v1r4r62na8" -path="res://.godot/imported/Квадрат салатный ОР-63.png-d4e729338a9598106bf86dd54b628302.ctex" +path="res://.godot/imported/Квадрат салатный ОР-63.png-7972d0fb6bd0e9b8772b01ce12d8ddec.ctex" metadata={ "vram_texture": false } [deps] -source_file="res://scenes/эмс2/Квадрат салатный ОР-63.png" -dest_files=["res://.godot/imported/Квадрат салатный ОР-63.png-d4e729338a9598106bf86dd54b628302.ctex"] +source_file="res://data/Квадрат салатный ОР-63.png" +dest_files=["res://.godot/imported/Квадрат салатный ОР-63.png-7972d0fb6bd0e9b8772b01ce12d8ddec.ctex"] [params] diff --git a/data/Квадрат салатный РЛС1.png b/data/Квадрат салатный РЛС1.png new file mode 100644 index 00000000..e4c8f0cf Binary files /dev/null and b/data/Квадрат салатный РЛС1.png differ diff --git a/scenes/эмс2/Квадрат салатный РЛС1.png.import b/data/Квадрат салатный РЛС1.png.import similarity index 79% rename from scenes/эмс2/Квадрат салатный РЛС1.png.import rename to data/Квадрат салатный РЛС1.png.import index 60d5f960..eba3d356 100644 --- a/scenes/эмс2/Квадрат салатный РЛС1.png.import +++ b/data/Квадрат салатный РЛС1.png.import @@ -3,15 +3,15 @@ importer="texture" type="CompressedTexture2D" uid="uid://ddm55bo28sxcs" -path="res://.godot/imported/Квадрат салатный РЛС1.png-4ef0fdea9acb1266f7ae514ab0ba0e5b.ctex" +path="res://.godot/imported/Квадрат салатный РЛС1.png-25515f6d11c8ad1cdcb538334e983dfb.ctex" metadata={ "vram_texture": false } [deps] -source_file="res://scenes/эмс2/Квадрат салатный РЛС1.png" -dest_files=["res://.godot/imported/Квадрат салатный РЛС1.png-4ef0fdea9acb1266f7ae514ab0ba0e5b.ctex"] +source_file="res://data/Квадрат салатный РЛС1.png" +dest_files=["res://.godot/imported/Квадрат салатный РЛС1.png-25515f6d11c8ad1cdcb538334e983dfb.ctex"] [params] diff --git a/data/Квадрат салатный РЛС2.png b/data/Квадрат салатный РЛС2.png new file mode 100644 index 00000000..c7f33d66 Binary files /dev/null and b/data/Квадрат салатный РЛС2.png differ diff --git a/scenes/эмс2/Квадрат салатный РЛС2.png.import b/data/Квадрат салатный РЛС2.png.import similarity index 79% rename from scenes/эмс2/Квадрат салатный РЛС2.png.import rename to data/Квадрат салатный РЛС2.png.import index f9ee27f7..a0eae0d8 100644 --- a/scenes/эмс2/Квадрат салатный РЛС2.png.import +++ b/data/Квадрат салатный РЛС2.png.import @@ -3,15 +3,15 @@ importer="texture" type="CompressedTexture2D" uid="uid://dneqjcul4ipub" -path="res://.godot/imported/Квадрат салатный РЛС2.png-6f204becbb933eb3257ab57b1e48e989.ctex" +path="res://.godot/imported/Квадрат салатный РЛС2.png-603f91d45a0b3f844ece171f2660fcb6.ctex" metadata={ "vram_texture": false } [deps] -source_file="res://scenes/эмс2/Квадрат салатный РЛС2.png" -dest_files=["res://.godot/imported/Квадрат салатный РЛС2.png-6f204becbb933eb3257ab57b1e48e989.ctex"] +source_file="res://data/Квадрат салатный РЛС2.png" +dest_files=["res://.godot/imported/Квадрат салатный РЛС2.png-603f91d45a0b3f844ece171f2660fcb6.ctex"] [params] diff --git a/data/Квадрат салатный с трубкой.png b/data/Квадрат салатный с трубкой.png new file mode 100644 index 00000000..c32ec861 Binary files /dev/null and b/data/Квадрат салатный с трубкой.png differ diff --git a/scenes/эмс2/Квадрат салатный с трубкой.png.import b/data/Квадрат салатный с трубкой.png.import similarity index 76% rename from scenes/эмс2/Квадрат салатный с трубкой.png.import rename to data/Квадрат салатный с трубкой.png.import index b6a4dd99..bc3b6dc5 100644 --- a/scenes/эмс2/Квадрат салатный с трубкой.png.import +++ b/data/Квадрат салатный с трубкой.png.import @@ -3,15 +3,15 @@ importer="texture" type="CompressedTexture2D" uid="uid://cw8sd7v5f31ww" -path="res://.godot/imported/Квадрат салатный с трубкой.png-9894f02231d3497fee203635233b6b05.ctex" +path="res://.godot/imported/Квадрат салатный с трубкой.png-8e08214e9c34521ff40b67f238679272.ctex" metadata={ "vram_texture": false } [deps] -source_file="res://scenes/эмс2/Квадрат салатный с трубкой.png" -dest_files=["res://.godot/imported/Квадрат салатный с трубкой.png-9894f02231d3497fee203635233b6b05.ctex"] +source_file="res://data/Квадрат салатный с трубкой.png" +dest_files=["res://.godot/imported/Квадрат салатный с трубкой.png-8e08214e9c34521ff40b67f238679272.ctex"] [params] diff --git a/data/Кнопка подтверждения01.png b/data/Кнопка подтверждения01.png new file mode 100644 index 00000000..f2d71a93 Binary files /dev/null and b/data/Кнопка подтверждения01.png differ diff --git a/scenes/эмс2/Кнопка подтверждения01.png.import b/data/Кнопка подтверждения01.png.import similarity index 78% rename from scenes/эмс2/Кнопка подтверждения01.png.import rename to data/Кнопка подтверждения01.png.import index ad913288..432b998d 100644 --- a/scenes/эмс2/Кнопка подтверждения01.png.import +++ b/data/Кнопка подтверждения01.png.import @@ -3,15 +3,15 @@ importer="texture" type="CompressedTexture2D" uid="uid://carr8bw5rwiwj" -path="res://.godot/imported/Кнопка подтверждения01.png-1ab43fd4153a66afae313da856500257.ctex" +path="res://.godot/imported/Кнопка подтверждения01.png-bf773cf38c449bd0458ee1c4b8a72fb9.ctex" metadata={ "vram_texture": false } [deps] -source_file="res://scenes/эмс2/Кнопка подтверждения01.png" -dest_files=["res://.godot/imported/Кнопка подтверждения01.png-1ab43fd4153a66afae313da856500257.ctex"] +source_file="res://data/Кнопка подтверждения01.png" +dest_files=["res://.godot/imported/Кнопка подтверждения01.png-bf773cf38c449bd0458ee1c4b8a72fb9.ctex"] [params] diff --git a/scenes/эмс2/Кнопка подтверждения11.png b/data/Кнопка подтверждения11.png similarity index 100% rename from scenes/эмс2/Кнопка подтверждения11.png rename to data/Кнопка подтверждения11.png diff --git a/scenes/эмс2/Кнопка подтверждения11.png.import b/data/Кнопка подтверждения11.png.import similarity index 78% rename from scenes/эмс2/Кнопка подтверждения11.png.import rename to data/Кнопка подтверждения11.png.import index f2b7ccdc..4bd47e25 100644 --- a/scenes/эмс2/Кнопка подтверждения11.png.import +++ b/data/Кнопка подтверждения11.png.import @@ -3,15 +3,15 @@ importer="texture" type="CompressedTexture2D" uid="uid://da3qlv3jwui06" -path="res://.godot/imported/Кнопка подтверждения11.png-fd9d763c31ce1ff07e7a519e299ab321.ctex" +path="res://.godot/imported/Кнопка подтверждения11.png-adefa13c7e382af578ddeed190be31cb.ctex" metadata={ "vram_texture": false } [deps] -source_file="res://scenes/эмс2/Кнопка подтверждения11.png" -dest_files=["res://.godot/imported/Кнопка подтверждения11.png-fd9d763c31ce1ff07e7a519e299ab321.ctex"] +source_file="res://data/Кнопка подтверждения11.png" +dest_files=["res://.godot/imported/Кнопка подтверждения11.png-adefa13c7e382af578ddeed190be31cb.ctex"] [params] diff --git a/scenes/эмс2/ННВС.png b/data/ННВС.png similarity index 100% rename from scenes/эмс2/ННВС.png rename to data/ННВС.png diff --git a/scenes/эмс2/ННВС.png.import b/data/ННВС.png.import similarity index 72% rename from scenes/эмс2/ННВС.png.import rename to data/ННВС.png.import index f57389ba..7124f2c6 100644 --- a/scenes/эмс2/ННВС.png.import +++ b/data/ННВС.png.import @@ -3,15 +3,15 @@ importer="texture" type="CompressedTexture2D" uid="uid://duu8q7sv0jwfh" -path="res://.godot/imported/ННВС.png-6758726dbf560196d6b2e61e00a7fd08.ctex" +path="res://.godot/imported/ННВС.png-899547e5381a581ad6c02127847ea1e9.ctex" metadata={ "vram_texture": false } [deps] -source_file="res://scenes/эмс2/ННВС.png" -dest_files=["res://.godot/imported/ННВС.png-6758726dbf560196d6b2e61e00a7fd08.ctex"] +source_file="res://data/ННВС.png" +dest_files=["res://.godot/imported/ННВС.png-899547e5381a581ad6c02127847ea1e9.ctex"] [params] diff --git a/scenes/эмс2/ННВС3.png b/data/ННВС3.png similarity index 100% rename from scenes/эмс2/ННВС3.png rename to data/ННВС3.png diff --git a/scenes/эмс2/ННВС3.png.import b/data/ННВС3.png.import similarity index 71% rename from scenes/эмс2/ННВС3.png.import rename to data/ННВС3.png.import index 28f5d064..a2e24a5f 100644 --- a/scenes/эмс2/ННВС3.png.import +++ b/data/ННВС3.png.import @@ -3,15 +3,15 @@ importer="texture" type="CompressedTexture2D" uid="uid://cyaj6t3dhpsk0" -path="res://.godot/imported/ННВС3.png-2faf3fcf8c20abef9791ca942927269e.ctex" +path="res://.godot/imported/ННВС3.png-a3f5d59f56552b63d617ee348bab87ad.ctex" metadata={ "vram_texture": false } [deps] -source_file="res://scenes/эмс2/ННВС3.png" -dest_files=["res://.godot/imported/ННВС3.png-2faf3fcf8c20abef9791ca942927269e.ctex"] +source_file="res://data/ННВС3.png" +dest_files=["res://.godot/imported/ННВС3.png-a3f5d59f56552b63d617ee348bab87ad.ctex"] [params] diff --git a/scenes/эмс2/ННВС4.png b/data/ННВС4.png similarity index 100% rename from scenes/эмс2/ННВС4.png rename to data/ННВС4.png diff --git a/scenes/эмс2/ННВС4.png.import b/data/ННВС4.png.import similarity index 71% rename from scenes/эмс2/ННВС4.png.import rename to data/ННВС4.png.import index b4210f03..9c4b9598 100644 --- a/scenes/эмс2/ННВС4.png.import +++ b/data/ННВС4.png.import @@ -3,15 +3,15 @@ importer="texture" type="CompressedTexture2D" uid="uid://ctd836iecgm6i" -path="res://.godot/imported/ННВС4.png-2c62b993d70aa66b8bc1556f3d939848.ctex" +path="res://.godot/imported/ННВС4.png-86b688feaa02c70e0050733e163ce38c.ctex" metadata={ "vram_texture": false } [deps] -source_file="res://scenes/эмс2/ННВС4.png" -dest_files=["res://.godot/imported/ННВС4.png-2c62b993d70aa66b8bc1556f3d939848.ctex"] +source_file="res://data/ННВС4.png" +dest_files=["res://.godot/imported/ННВС4.png-86b688feaa02c70e0050733e163ce38c.ctex"] [params] diff --git a/data/Окно частот0.png b/data/Окно частот0.png new file mode 100644 index 00000000..37c9874a Binary files /dev/null and b/data/Окно частот0.png differ diff --git a/scenes/эмс2/Окно частот0.png.import b/data/Окно частот0.png.import similarity index 68% rename from scenes/эмс2/Окно частот0.png.import rename to data/Окно частот0.png.import index bf26cc64..3b53336a 100644 --- a/scenes/эмс2/Окно частот0.png.import +++ b/data/Окно частот0.png.import @@ -3,15 +3,15 @@ importer="texture" type="CompressedTexture2D" uid="uid://b1dw06ahtftq2" -path="res://.godot/imported/Окно частот0.png-6b01791c971bddb01337caf9077bf060.ctex" +path="res://.godot/imported/Окно частот0.png-79ada2e7504614b9bdf58bce1aff61fb.ctex" metadata={ "vram_texture": false } [deps] -source_file="res://scenes/эмс2/Окно частот0.png" -dest_files=["res://.godot/imported/Окно частот0.png-6b01791c971bddb01337caf9077bf060.ctex"] +source_file="res://data/Окно частот0.png" +dest_files=["res://.godot/imported/Окно частот0.png-79ada2e7504614b9bdf58bce1aff61fb.ctex"] [params] diff --git a/data/Приём.png b/data/Приём.png new file mode 100644 index 00000000..bc17234b Binary files /dev/null and b/data/Приём.png differ diff --git a/scenes/эмс2/Приём.png.import b/data/Приём.png.import similarity index 71% rename from scenes/эмс2/Приём.png.import rename to data/Приём.png.import index d6692410..b759f50c 100644 --- a/scenes/эмс2/Приём.png.import +++ b/data/Приём.png.import @@ -3,15 +3,15 @@ importer="texture" type="CompressedTexture2D" uid="uid://xux3mch12733" -path="res://.godot/imported/Приём.png-af57c0588e4ebcb32efb13136889a605.ctex" +path="res://.godot/imported/Приём.png-a0eeba566cb65134a3fa9d0a8bf0fc39.ctex" metadata={ "vram_texture": false } [deps] -source_file="res://scenes/эмс2/Приём.png" -dest_files=["res://.godot/imported/Приём.png-af57c0588e4ebcb32efb13136889a605.ctex"] +source_file="res://data/Приём.png" +dest_files=["res://.godot/imported/Приём.png-a0eeba566cb65134a3fa9d0a8bf0fc39.ctex"] [params] diff --git a/scenes/эмс2/РЛС1.png b/data/РЛС1.png similarity index 100% rename from scenes/эмс2/РЛС1.png rename to data/РЛС1.png diff --git a/scenes/эмс2/РЛС1.png.import b/data/РЛС1.png.import similarity index 72% rename from scenes/эмс2/РЛС1.png.import rename to data/РЛС1.png.import index 0f25c3b6..9daf6c1c 100644 --- a/scenes/эмс2/РЛС1.png.import +++ b/data/РЛС1.png.import @@ -3,15 +3,15 @@ importer="texture" type="CompressedTexture2D" uid="uid://kyrnn1mqpc08" -path="res://.godot/imported/РЛС1.png-968d2455d9f1615a54bf6eb2a5d01f60.ctex" +path="res://.godot/imported/РЛС1.png-6e9247da587619066278ce8ab7a0d447.ctex" metadata={ "vram_texture": false } [deps] -source_file="res://scenes/эмс2/РЛС1.png" -dest_files=["res://.godot/imported/РЛС1.png-968d2455d9f1615a54bf6eb2a5d01f60.ctex"] +source_file="res://data/РЛС1.png" +dest_files=["res://.godot/imported/РЛС1.png-6e9247da587619066278ce8ab7a0d447.ctex"] [params] diff --git a/scenes/эмс2/РЛС2.png b/data/РЛС2.png similarity index 100% rename from scenes/эмс2/РЛС2.png rename to data/РЛС2.png diff --git a/scenes/эмс2/РЛС2.png.import b/data/РЛС2.png.import similarity index 72% rename from scenes/эмс2/РЛС2.png.import rename to data/РЛС2.png.import index d88a30fa..813c7e8f 100644 --- a/scenes/эмс2/РЛС2.png.import +++ b/data/РЛС2.png.import @@ -3,15 +3,15 @@ importer="texture" type="CompressedTexture2D" uid="uid://cx0f3wcx76u1k" -path="res://.godot/imported/РЛС2.png-d9b21b8070ca878f5ca8a0f9f503e8f8.ctex" +path="res://.godot/imported/РЛС2.png-e18689f9e2e7955f0059efdf1a8ca2a4.ctex" metadata={ "vram_texture": false } [deps] -source_file="res://scenes/эмс2/РЛС2.png" -dest_files=["res://.godot/imported/РЛС2.png-d9b21b8070ca878f5ca8a0f9f503e8f8.ctex"] +source_file="res://data/РЛС2.png" +dest_files=["res://.godot/imported/РЛС2.png-e18689f9e2e7955f0059efdf1a8ca2a4.ctex"] [params] diff --git a/scenes/эмс2/РЛС201.png b/data/РЛС201.png similarity index 100% rename from scenes/эмс2/РЛС201.png rename to data/РЛС201.png diff --git a/scenes/эмс2/РЛС201.png.import b/data/РЛС201.png.import similarity index 71% rename from scenes/эмс2/РЛС201.png.import rename to data/РЛС201.png.import index 15401e9a..464c53cc 100644 --- a/scenes/эмс2/РЛС201.png.import +++ b/data/РЛС201.png.import @@ -3,15 +3,15 @@ importer="texture" type="CompressedTexture2D" uid="uid://bv0g3wqf0s2qf" -path="res://.godot/imported/РЛС201.png-75592e26f7acf4bf836259584bde429f.ctex" +path="res://.godot/imported/РЛС201.png-fbbdcf37ef542e078a0b387ef1eba88b.ctex" metadata={ "vram_texture": false } [deps] -source_file="res://scenes/эмс2/РЛС201.png" -dest_files=["res://.godot/imported/РЛС201.png-75592e26f7acf4bf836259584bde429f.ctex"] +source_file="res://data/РЛС201.png" +dest_files=["res://.godot/imported/РЛС201.png-fbbdcf37ef542e078a0b387ef1eba88b.ctex"] [params] diff --git a/data/Скруглённый квадрат белый.png b/data/Скруглённый квадрат белый.png new file mode 100644 index 00000000..c470bd35 Binary files /dev/null and b/data/Скруглённый квадрат белый.png differ diff --git a/scenes/эмс2/Скруглённый квадрат белый.png.import b/data/Скруглённый квадрат белый.png.import similarity index 76% rename from scenes/эмс2/Скруглённый квадрат белый.png.import rename to data/Скруглённый квадрат белый.png.import index 71bda3c3..d2064921 100644 --- a/scenes/эмс2/Скруглённый квадрат белый.png.import +++ b/data/Скруглённый квадрат белый.png.import @@ -3,15 +3,15 @@ importer="texture" type="CompressedTexture2D" uid="uid://djv8fkddcjucs" -path="res://.godot/imported/Скруглённый квадрат белый.png-84c153e87da8cd3b65ff5d0a5a0ea7ca.ctex" +path="res://.godot/imported/Скруглённый квадрат белый.png-4793c453fe49bfbe7c9affd223331345.ctex" metadata={ "vram_texture": false } [deps] -source_file="res://scenes/эмс2/Скруглённый квадрат белый.png" -dest_files=["res://.godot/imported/Скруглённый квадрат белый.png-84c153e87da8cd3b65ff5d0a5a0ea7ca.ctex"] +source_file="res://data/Скруглённый квадрат белый.png" +dest_files=["res://.godot/imported/Скруглённый квадрат белый.png-4793c453fe49bfbe7c9affd223331345.ctex"] [params] diff --git a/data/Скруглённый квадрат серый.png b/data/Скруглённый квадрат серый.png new file mode 100644 index 00000000..d4779b41 Binary files /dev/null and b/data/Скруглённый квадрат серый.png differ diff --git a/scenes/эмс2/Скруглённый квадрат серый.png.import b/data/Скруглённый квадрат серый.png.import similarity index 76% rename from scenes/эмс2/Скруглённый квадрат серый.png.import rename to data/Скруглённый квадрат серый.png.import index b0ed6347..c348d23a 100644 --- a/scenes/эмс2/Скруглённый квадрат серый.png.import +++ b/data/Скруглённый квадрат серый.png.import @@ -3,15 +3,15 @@ importer="texture" type="CompressedTexture2D" uid="uid://bymxiptkbufvs" -path="res://.godot/imported/Скруглённый квадрат серый.png-4655829309cca3b1dec2c9ae01376d54.ctex" +path="res://.godot/imported/Скруглённый квадрат серый.png-2111d7338e52a03a41f05d6ffbbc3eb6.ctex" metadata={ "vram_texture": false } [deps] -source_file="res://scenes/эмс2/Скруглённый квадрат серый.png" -dest_files=["res://.godot/imported/Скруглённый квадрат серый.png-4655829309cca3b1dec2c9ae01376d54.ctex"] +source_file="res://data/Скруглённый квадрат серый.png" +dest_files=["res://.godot/imported/Скруглённый квадрат серый.png-2111d7338e52a03a41f05d6ffbbc3eb6.ctex"] [params] diff --git a/data/Скруглённый прямоуг салатный.png b/data/Скруглённый прямоуг салатный.png new file mode 100644 index 00000000..38f308c3 Binary files /dev/null and b/data/Скруглённый прямоуг салатный.png differ diff --git a/scenes/эмс2/Скруглённый прямоуг салатный.png.import b/data/Скруглённый прямоуг салатный.png.import similarity index 75% rename from scenes/эмс2/Скруглённый прямоуг салатный.png.import rename to data/Скруглённый прямоуг салатный.png.import index 2bd44155..582915bb 100644 --- a/scenes/эмс2/Скруглённый прямоуг салатный.png.import +++ b/data/Скруглённый прямоуг салатный.png.import @@ -3,15 +3,15 @@ importer="texture" type="CompressedTexture2D" uid="uid://busl8rb38lis" -path="res://.godot/imported/Скруглённый прямоуг салатный.png-6f841ceab8a518839c1455ba064067fd.ctex" +path="res://.godot/imported/Скруглённый прямоуг салатный.png-e10b4e8820d45ab6e79c4fba522af854.ctex" metadata={ "vram_texture": false } [deps] -source_file="res://scenes/эмс2/Скруглённый прямоуг салатный.png" -dest_files=["res://.godot/imported/Скруглённый прямоуг салатный.png-6f841ceab8a518839c1455ba064067fd.ctex"] +source_file="res://data/Скруглённый прямоуг салатный.png" +dest_files=["res://.godot/imported/Скруглённый прямоуг салатный.png-e10b4e8820d45ab6e79c4fba522af854.ctex"] [params] diff --git a/data/Скруглённый прямоугольник белый.png b/data/Скруглённый прямоугольник белый.png new file mode 100644 index 00000000..c17d762d Binary files /dev/null and b/data/Скруглённый прямоугольник белый.png differ diff --git a/scenes/эмс2/Скруглённый прямоугольник белый.png.import b/data/Скруглённый прямоугольник белый.png.import similarity index 74% rename from scenes/эмс2/Скруглённый прямоугольник белый.png.import rename to data/Скруглённый прямоугольник белый.png.import index 099aaf4f..ff4ba64e 100644 --- a/scenes/эмс2/Скруглённый прямоугольник белый.png.import +++ b/data/Скруглённый прямоугольник белый.png.import @@ -3,15 +3,15 @@ importer="texture" type="CompressedTexture2D" uid="uid://3siondd3feev" -path="res://.godot/imported/Скруглённый прямоугольник белый.png-5c31693454260983c7c649f3f4a01f32.ctex" +path="res://.godot/imported/Скруглённый прямоугольник белый.png-758adbfc4fc135ed0095e711422b8c0e.ctex" metadata={ "vram_texture": false } [deps] -source_file="res://scenes/эмс2/Скруглённый прямоугольник белый.png" -dest_files=["res://.godot/imported/Скруглённый прямоугольник белый.png-5c31693454260983c7c649f3f4a01f32.ctex"] +source_file="res://data/Скруглённый прямоугольник белый.png" +dest_files=["res://.godot/imported/Скруглённый прямоугольник белый.png-758adbfc4fc135ed0095e711422b8c0e.ctex"] [params] diff --git a/data/Скруглённый прямоугольник серый.png b/data/Скруглённый прямоугольник серый.png new file mode 100644 index 00000000..6b6dfbe6 Binary files /dev/null and b/data/Скруглённый прямоугольник серый.png differ diff --git a/scenes/эмс2/Скруглённый прямоугольник серый.png.import b/data/Скруглённый прямоугольник серый.png.import similarity index 74% rename from scenes/эмс2/Скруглённый прямоугольник серый.png.import rename to data/Скруглённый прямоугольник серый.png.import index 3cc928c5..6c47408a 100644 --- a/scenes/эмс2/Скруглённый прямоугольник серый.png.import +++ b/data/Скруглённый прямоугольник серый.png.import @@ -3,15 +3,15 @@ importer="texture" type="CompressedTexture2D" uid="uid://7ody4v7qy36g" -path="res://.godot/imported/Скруглённый прямоугольник серый.png-28e37efcf12b47a405f349df02752b2e.ctex" +path="res://.godot/imported/Скруглённый прямоугольник серый.png-318eedc8abeb0fd535304028648863b7.ctex" metadata={ "vram_texture": false } [deps] -source_file="res://scenes/эмс2/Скруглённый прямоугольник серый.png" -dest_files=["res://.godot/imported/Скруглённый прямоугольник серый.png-28e37efcf12b47a405f349df02752b2e.ctex"] +source_file="res://data/Скруглённый прямоугольник серый.png" +dest_files=["res://.godot/imported/Скруглённый прямоугольник серый.png-318eedc8abeb0fd535304028648863b7.ctex"] [params] diff --git a/scenes/эмс2/Состояние РЭС 1.png b/data/Состояние РЭС 1.png similarity index 100% rename from scenes/эмс2/Состояние РЭС 1.png rename to data/Состояние РЭС 1.png diff --git a/scenes/эмс2/Состояние РЭС 1.png.import b/data/Состояние РЭС 1.png.import similarity index 74% rename from scenes/эмс2/Состояние РЭС 1.png.import rename to data/Состояние РЭС 1.png.import index a905e759..bb0516cc 100644 --- a/scenes/эмс2/Состояние РЭС 1.png.import +++ b/data/Состояние РЭС 1.png.import @@ -3,15 +3,15 @@ importer="texture" type="CompressedTexture2D" uid="uid://di30dfvbbdnms" -path="res://.godot/imported/Состояние РЭС 1.png-f5ba95ce2831b151364b58132bcfd6d3.ctex" +path="res://.godot/imported/Состояние РЭС 1.png-e2474563fa9b74812f9b4b5205383ee9.ctex" metadata={ "vram_texture": false } [deps] -source_file="res://scenes/эмс2/Состояние РЭС 1.png" -dest_files=["res://.godot/imported/Состояние РЭС 1.png-f5ba95ce2831b151364b58132bcfd6d3.ctex"] +source_file="res://data/Состояние РЭС 1.png" +dest_files=["res://.godot/imported/Состояние РЭС 1.png-e2474563fa9b74812f9b4b5205383ee9.ctex"] [params] diff --git a/scenes/эмс2/Состояние РЭС 20.png b/data/Состояние РЭС 20.png similarity index 100% rename from scenes/эмс2/Состояние РЭС 20.png rename to data/Состояние РЭС 20.png diff --git a/scenes/эмс2/Состояние РЭС 20.png.import b/data/Состояние РЭС 20.png.import similarity index 74% rename from scenes/эмс2/Состояние РЭС 20.png.import rename to data/Состояние РЭС 20.png.import index f35014ae..8f7f660b 100644 --- a/scenes/эмс2/Состояние РЭС 20.png.import +++ b/data/Состояние РЭС 20.png.import @@ -3,15 +3,15 @@ importer="texture" type="CompressedTexture2D" uid="uid://bu88bqq7hrotv" -path="res://.godot/imported/Состояние РЭС 20.png-f2c617484d1f6763a642eced01c2530c.ctex" +path="res://.godot/imported/Состояние РЭС 20.png-069ed59768371127a84d24ab449b9eef.ctex" metadata={ "vram_texture": false } [deps] -source_file="res://scenes/эмс2/Состояние РЭС 20.png" -dest_files=["res://.godot/imported/Состояние РЭС 20.png-f2c617484d1f6763a642eced01c2530c.ctex"] +source_file="res://data/Состояние РЭС 20.png" +dest_files=["res://.godot/imported/Состояние РЭС 20.png-069ed59768371127a84d24ab449b9eef.ctex"] [params] diff --git a/scenes/эмс2/Состояние РЭС 40.png b/data/Состояние РЭС 40.png similarity index 100% rename from scenes/эмс2/Состояние РЭС 40.png rename to data/Состояние РЭС 40.png diff --git a/scenes/эмс2/Состояние РЭС 40.png.import b/data/Состояние РЭС 40.png.import similarity index 74% rename from scenes/эмс2/Состояние РЭС 40.png.import rename to data/Состояние РЭС 40.png.import index 10ef2176..feaf2913 100644 --- a/scenes/эмс2/Состояние РЭС 40.png.import +++ b/data/Состояние РЭС 40.png.import @@ -3,15 +3,15 @@ importer="texture" type="CompressedTexture2D" uid="uid://coxhivvc6uibs" -path="res://.godot/imported/Состояние РЭС 40.png-886d83ec227e25459a7d06a06ebe7ee5.ctex" +path="res://.godot/imported/Состояние РЭС 40.png-b9da524e7dee045c108d7beba04deb67.ctex" metadata={ "vram_texture": false } [deps] -source_file="res://scenes/эмс2/Состояние РЭС 40.png" -dest_files=["res://.godot/imported/Состояние РЭС 40.png-886d83ec227e25459a7d06a06ebe7ee5.ctex"] +source_file="res://data/Состояние РЭС 40.png" +dest_files=["res://.godot/imported/Состояние РЭС 40.png-b9da524e7dee045c108d7beba04deb67.ctex"] [params] diff --git a/scenes/эмс2/Состояние ЭМС слабый сигнал.png b/data/Состояние ЭМС слабый сигнал.png similarity index 100% rename from scenes/эмс2/Состояние ЭМС слабый сигнал.png rename to data/Состояние ЭМС слабый сигнал.png diff --git a/scenes/эмс2/Состояние ЭМС слабый сигнал.png.import b/data/Состояние ЭМС слабый сигнал.png.import similarity index 76% rename from scenes/эмс2/Состояние ЭМС слабый сигнал.png.import rename to data/Состояние ЭМС слабый сигнал.png.import index e87d339e..b8f28515 100644 --- a/scenes/эмс2/Состояние ЭМС слабый сигнал.png.import +++ b/data/Состояние ЭМС слабый сигнал.png.import @@ -3,15 +3,15 @@ importer="texture" type="CompressedTexture2D" uid="uid://c1nld5t17kws3" -path="res://.godot/imported/Состояние ЭМС слабый сигнал.png-a3138d5b7588d42d7d634dd5be83f042.ctex" +path="res://.godot/imported/Состояние ЭМС слабый сигнал.png-790a07b3c7b97e83dff4c8521b52600d.ctex" metadata={ "vram_texture": false } [deps] -source_file="res://scenes/эмс2/Состояние ЭМС слабый сигнал.png" -dest_files=["res://.godot/imported/Состояние ЭМС слабый сигнал.png-a3138d5b7588d42d7d634dd5be83f042.ctex"] +source_file="res://data/Состояние ЭМС слабый сигнал.png" +dest_files=["res://.godot/imported/Состояние ЭМС слабый сигнал.png-790a07b3c7b97e83dff4c8521b52600d.ctex"] [params] diff --git a/data/Угловой квадрат2.png b/data/Угловой квадрат2.png new file mode 100644 index 00000000..4208f4c5 Binary files /dev/null and b/data/Угловой квадрат2.png differ diff --git a/scenes/эмс2/Угловой квадрат2.png.import b/data/Угловой квадрат2.png.import similarity index 73% rename from scenes/эмс2/Угловой квадрат2.png.import rename to data/Угловой квадрат2.png.import index 57867d7c..2d640915 100644 --- a/scenes/эмс2/Угловой квадрат2.png.import +++ b/data/Угловой квадрат2.png.import @@ -3,15 +3,15 @@ importer="texture" type="CompressedTexture2D" uid="uid://hd76uw2shjtn" -path="res://.godot/imported/Угловой квадрат2.png-3be907bbab67ff1fca7419325907734c.ctex" +path="res://.godot/imported/Угловой квадрат2.png-1c5299ac0e361e5550fd41c2978f5871.ctex" metadata={ "vram_texture": false } [deps] -source_file="res://scenes/эмс2/Угловой квадрат2.png" -dest_files=["res://.godot/imported/Угловой квадрат2.png-3be907bbab67ff1fca7419325907734c.ctex"] +source_file="res://data/Угловой квадрат2.png" +dest_files=["res://.godot/imported/Угловой квадрат2.png-1c5299ac0e361e5550fd41c2978f5871.ctex"] [params] diff --git a/scenes/эмс2/вид сверху.png b/data/вид сверху.png similarity index 100% rename from scenes/эмс2/вид сверху.png rename to data/вид сверху.png diff --git a/scenes/эмс2/вид сверху.png.import b/data/вид сверху.png.import similarity index 69% rename from scenes/эмс2/вид сверху.png.import rename to data/вид сверху.png.import index 599c115b..fc969647 100644 --- a/scenes/эмс2/вид сверху.png.import +++ b/data/вид сверху.png.import @@ -3,15 +3,15 @@ importer="texture" type="CompressedTexture2D" uid="uid://hkcvl2waf63s" -path="res://.godot/imported/вид сверху.png-df889aaf419148be7d78418fb80ab875.ctex" +path="res://.godot/imported/вид сверху.png-a9d3755329663b9b1744cd62029637cb.ctex" metadata={ "vram_texture": false } [deps] -source_file="res://scenes/эмс2/вид сверху.png" -dest_files=["res://.godot/imported/вид сверху.png-df889aaf419148be7d78418fb80ab875.ctex"] +source_file="res://data/вид сверху.png" +dest_files=["res://.godot/imported/вид сверху.png-a9d3755329663b9b1744cd62029637cb.ctex"] [params] diff --git a/export_presets.cfg b/export_presets.cfg new file mode 100644 index 00000000..dc12e8f0 --- /dev/null +++ b/export_presets.cfg @@ -0,0 +1,112 @@ +[preset.0] + +name="Linux-X11" +platform="Linux" +runnable=true +advanced_options=true +dedicated_server=false +custom_features="" +export_filter="all_resources" +include_filter="" +exclude_filter="" +export_path="bin/uarep-ctl.linux.x86_64" +patches=PackedStringArray() +encryption_include_filters="" +encryption_exclude_filters="" +seed=0 +encrypt_pck=false +encrypt_directory=false +script_export_mode=0 + +[preset.0.options] + +custom_template/debug="" +custom_template/release="" +debug/export_console_wrapper=2 +binary_format/embed_pck=true +texture_format/s3tc_bptc=true +texture_format/etc2_astc=false +binary_format/architecture="x86_64" +ssh_remote_deploy/enabled=true +ssh_remote_deploy/host="user@192.168.11.105" +ssh_remote_deploy/port="22" +ssh_remote_deploy/extra_args_ssh="" +ssh_remote_deploy/extra_args_scp="" +ssh_remote_deploy/run_script="#!/usr/bin/env bash +export DISPLAY=:0 +unzip -o -q \"{temp_dir}/{archive_name}\" -d \"{temp_dir}\" +\"{temp_dir}/{exe_name}\" {cmd_args}" +ssh_remote_deploy/cleanup_script="#!/usr/bin/env bash +kill $(pgrep -x -f \"{temp_dir}/{exe_name} {cmd_args}\") +rm -rf \"{temp_dir}\"" +texture_format/bptc=true +texture_format/s3tc=true +texture_format/etc=false +texture_format/etc2=false + +[preset.1] + +name="Windows Desktop" +platform="Windows Desktop" +runnable=true +advanced_options=true +dedicated_server=false +custom_features="" +export_filter="all_resources" +include_filter="" +exclude_filter="" +export_path="bin/uarep-ctl.exe" +patches=PackedStringArray() +encryption_include_filters="" +encryption_exclude_filters="" +seed=0 +encrypt_pck=false +encrypt_directory=false +script_export_mode=0 + +[preset.1.options] + +custom_template/debug="" +custom_template/release="" +debug/export_console_wrapper=1 +binary_format/embed_pck=true +texture_format/s3tc_bptc=true +texture_format/etc2_astc=false +binary_format/architecture="x86_64" +codesign/enable=false +codesign/timestamp=true +codesign/timestamp_server_url="" +codesign/digest_algorithm=1 +codesign/description="" +codesign/custom_options=PackedStringArray() +application/modify_resources=true +application/icon="" +application/console_wrapper_icon="" +application/icon_interpolation=4 +application/file_version="" +application/product_version="" +application/company_name="" +application/product_name="" +application/file_description="" +application/copyright="" +application/trademarks="" +application/export_angle=0 +application/export_d3d12=0 +application/d3d12_agility_sdk_multiarch=true +ssh_remote_deploy/enabled=false +ssh_remote_deploy/host="user@host_ip" +ssh_remote_deploy/port="22" +ssh_remote_deploy/extra_args_ssh="" +ssh_remote_deploy/extra_args_scp="" +ssh_remote_deploy/run_script="Expand-Archive -LiteralPath '{temp_dir}\\{archive_name}' -DestinationPath '{temp_dir}' +$action = New-ScheduledTaskAction -Execute '{temp_dir}\\{exe_name}' -Argument '{cmd_args}' +$trigger = New-ScheduledTaskTrigger -Once -At 00:00 +$settings = New-ScheduledTaskSettingsSet +$task = New-ScheduledTask -Action $action -Trigger $trigger -Settings $settings +Register-ScheduledTask godot_remote_debug -InputObject $task -Force:$true +Start-ScheduledTask -TaskName godot_remote_debug +while (Get-ScheduledTask -TaskName godot_remote_debug | ? State -eq running) { Start-Sleep -Milliseconds 100 } +Unregister-ScheduledTask -TaskName godot_remote_debug -Confirm:$false -ErrorAction:SilentlyContinue" +ssh_remote_deploy/cleanup_script="Stop-ScheduledTask -TaskName godot_remote_debug -ErrorAction:SilentlyContinue +Unregister-ScheduledTask -TaskName godot_remote_debug -Confirm:$false -ErrorAction:SilentlyContinue +Remove-Item -Recurse -Force '{temp_dir}'" diff --git a/project.godot b/project.godot index 922bfd47..39bda023 100644 --- a/project.godot +++ b/project.godot @@ -28,7 +28,7 @@ interfer/center_offset=Vector2(200, 225) interfer/default_color0=Color(0.38, 0.47, 0.51, 1) interfer/default_color1=Color(0.39, 0.44, 0.5, 1) interfer/select_color=Color(1, 1, 1, 1) -interfer/interfer_color=Color(0.9, 0.1, 0.25, 0.9) +interfer/interfer_color=Color(0.58, 0.47, 0.51, 1) interfer/resend_timeout=1000.0 config/external_cu=false config/unit_rr_request_period=20.0 @@ -36,7 +36,7 @@ config/kems_files_path="user://kems/" config/emsg_files_path="user://emsg/" config/settings_path="user://settings.json" config/unit_bpo_request_period=20.0 -interfer/emit_color=Color(0.9, 0.1, 0.25, 0.5) +interfer/emit_color=Color(0.58, 0.471, 0.51, 0.2) interfer/closed_sectors=Color(0, 0, 0, 1) [autoload] diff --git a/scenes/diagram/diagram.gd b/scenes/diagram/diagram.gd index d33a1599..97d5035d 100644 --- a/scenes/diagram/diagram.gd +++ b/scenes/diagram/diagram.gd @@ -35,10 +35,8 @@ func get_radius_outter() -> float: return material.get('shader_parameter/radius func get_radius_inner_0() -> float: return material.get('shader_parameter/radius_inner_0') func get_radius_inner_1() -> float: return material.get('shader_parameter/radius_inner_1') -func get_band_colors(_val: Array): return material.get('shader_parameter/ant_band_c') -func get_band_failures(_val: Array): return material.get('shader_parameter/ant_band_m') func set_band_colors(val: Array): material.set('shader_parameter/ant_band_c', val) -func set_band_failures(val: Array): material.set('shader_parameter/ant_band_m', val) + ## Добавляет сектор запрета[br] ## [param id] - Индекс сектора запрета.[br] diff --git a/scenes/frame-ecm-list/scroll-ecm-list.gd b/scenes/frame-ecm-list/scroll-ecm-list.gd index 8ad0a9fd..8aebe74e 100644 --- a/scenes/frame-ecm-list/scroll-ecm-list.gd +++ b/scenes/frame-ecm-list/scroll-ecm-list.gd @@ -7,8 +7,8 @@ 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_HEADERS_TEXT = ['Номер', 'Название', 'Пеленг', 'Состояние' ] ## Заголовки таблицы. +const TABLE_COLUMN_SIZE = [ 75, 100, 95, 180 ] ## Ширины колонок. ## Состояние выполнения сеанса помехи const INTERFER_STATE = { @@ -122,8 +122,7 @@ func on_interfer_new(ecm, table_index): # Будем надеяться, что отложенные вызовы производятся в том же порядке $table.call_deferred('clear_rows_selected') $table.call_deferred('set_row_selected', i_row, true) - if not interfer.auto_enabled: - signaller.emit_signal('interfer_selected', ecm) + signaller.emit_signal('interfer_selected', ecm) func on_interfer_off(ecm, table_index): diff --git a/scenes/frame-threats/frame-threats.tscn b/scenes/frame-threats/frame-threats.tscn index f3cba685..e357f458 100644 --- a/scenes/frame-threats/frame-threats.tscn +++ b/scenes/frame-threats/frame-threats.tscn @@ -35,5 +35,5 @@ script = ExtResource("2_empn3") [node name="table" type="GridContainer" parent="scroll"] layout_mode = 2 -columns = 5 +columns = 4 script = ExtResource("3_4bupu") diff --git a/scenes/frame-threats/scroll-threats.gd b/scenes/frame-threats/scroll-threats.gd index be9dc979..377be5bc 100644 --- a/scenes/frame-threats/scroll-threats.gd +++ b/scenes/frame-threats/scroll-threats.gd @@ -5,16 +5,14 @@ class_name scroll_threats extends ScrollContainer const CellLineEdit = preload('res://table/ячейка-2.tscn') ## Ячейка таблицы. const TableHeader = preload('res://table/header.tscn') ## Ячейка заголовок таблицы. -const EmitLed = preload('res://scenes/frame-threats/emit-led.tscn') ## Ячейка заголовок таблицы. -const TABLE_HEADER = [ TableHeader, TableHeader, TableHeader, TableHeader , TableHeader ] ## Описание ряда заголовка. -const TABLE_ROW = [ CellLineEdit, CellLineEdit, CellLineEdit, CellLineEdit, EmitLed ] ## Описание ряда. -const TABLE_COLUMN_PARAM = ['id', 'aoa', 'freq', 'proto', 'emit' ] ## Параметры цели отображаемые в таблице. -const TABLE_HEADERS_TEXT = ['№', 'Пеленг', 'Частота, МГц', 'Протокол', 'Помеха' ] ## Заголовки таблицы. -const TABLE_COLUMN_SIZE = [ 65, 70, 110, 140, 65] ## Ширины колонок. -const TABLE_TEXT_ROWS = 4 -const EMIT_STATE_COL = 4 +const TABLE_HEADER = [ TableHeader, TableHeader, TableHeader, TableHeader ] ## Описание ряда заголовка. +const TABLE_ROW = [ CellLineEdit, CellLineEdit, CellLineEdit, CellLineEdit ] ## Описание ряда. +const TABLE_COLUMN_PARAM = ['id', 'aoa', 'freq', 'proto' ] ## Параметры цели отображаемые в таблице. +const TABLE_HEADERS_TEXT = ['Номер', 'Пеленг', 'Частота, МГц', 'Протокол' ] ## Заголовки таблицы. +const TABLE_COLUMN_SIZE = [ 65, 145, 145, 90 ] ## Ширины колонок. + ## Снимает выделение цели. func on_rto_threat_unsel(_th_id): $table.clear_rows_selected() @@ -65,17 +63,6 @@ func on_threat_update(th, table_index: Dictionary): var row = map_th_to_row(th) var i_row = table_index[th.id] $table.set_row_text(i_row, row) - var emit_node = $table.get_node2(EMIT_STATE_COL, i_row) - var emit_txr = emit_node.get_node('texture-led') - if th.emit_state == 0: - emit_txr.visible = false - elif th.emit_state == 1: - emit_txr.visible = true - emit_txr.self_modulate = Color.ORANGE - elif th.emit_state == 2: - emit_txr.visible = true - emit_txr.self_modulate = Color.RED - ## Обрабатывает сигнал [b]threat_lost[/b]. @@ -91,7 +78,7 @@ func on_threat_new(th, table_index): $table.add_row(TABLE_ROW) var row = map_th_to_row(th) $table.set_row_text(i_row, row) - disable_edit($table, TABLE_TEXT_ROWS, i_row) + $table.set_row_editable(i_row, false) $table.set_node_user_data(0, i_row, th) table_index[th.id] = i_row @@ -99,11 +86,10 @@ func on_threat_new(th, table_index): ## Преобразует цель в строку таблицы. func map_th_to_row(th) -> Array: var row: = Array() - row.resize(TABLE_TEXT_ROWS) + row.resize(TABLE_COLUMN_PARAM.size()) var i_col: int = 0 for param_name in TABLE_COLUMN_PARAM: var val = th.get(param_name) - if val == null: continue row[i_col] = '%0.1f' % val if val is float else '%s' % val if not th.fflags[param_name]: row[i_col] = '' @@ -118,13 +104,3 @@ func on_rto_threat_sel(th_id, tbl): if node.text.to_int() == th_id: row_pressed(i) break - - -## Отключает возможность редактирования LineEdit в таблице.[br] -## [param tbl] - таблица,[br] -## [param num_col] - номер колонки,[br] -## [param i_row] - номер столбца.[br] -func disable_edit(tbl, num_col: int, i_row: int): - for col in num_col: - var node: LineEdit = tbl.get_node2(col, i_row) - node.editable = false diff --git a/scenes/tabs-switch/tab-switch.tscn b/scenes/tabs-switch/tab-switch.tscn index 1c958ecf..46db7467 100644 --- a/scenes/tabs-switch/tab-switch.tscn +++ b/scenes/tabs-switch/tab-switch.tscn @@ -80,13 +80,15 @@ layout_mode = 2 metadata/_tab_index = 5 [node name="remote_control" type="Label" parent="."] +visible = false layout_mode = 2 -offset_left = 1242.0 -offset_right = 1402.0 +offset_left = 1358.0 +offset_right = 1501.0 offset_bottom = 27.0 tooltip_text = "Комплекс находится под внешним управлением" mouse_filter = 0 theme_override_colors/font_color = Color(0, 0, 0, 1) +theme_override_font_sizes/font_size = 14 theme_override_styles/normal = SubResource("StyleBoxFlat_o1r22") text = "Внешнее управление" horizontal_alignment = 1 diff --git a/scenes/tilemap/mark.tscn b/scenes/tilemap/mark.tscn index 8fc00fe2..4cbfc0c2 100644 --- a/scenes/tilemap/mark.tscn +++ b/scenes/tilemap/mark.tscn @@ -1,6 +1,6 @@ [gd_scene load_steps=2 format=3 uid="uid://ce5mtxqd1ndru"] -[ext_resource type="Texture2D" uid="uid://cgqo5gucd2be0" path="res://scenes/tilemap/dot.png" id="2_rq0y0"] +[ext_resource type="Texture2D" uid="uid://cgqo5gucd2be0" path="res://data/dot.png" id="2_rq0y0"] [node name="rect" type="TextureRect"] offset_left = -16.0 diff --git a/scenes/tilemap/ship_mark.tscn b/scenes/tilemap/ship_mark.tscn index fbf25584..8187a82b 100644 --- a/scenes/tilemap/ship_mark.tscn +++ b/scenes/tilemap/ship_mark.tscn @@ -1,7 +1,8 @@ [gd_scene load_steps=2 format=3 uid="uid://c2523fcn14gn4"] -[ext_resource type="Texture2D" uid="uid://cj1f2uy6qfvki" path="res://scenes/tilemap/23900.png" id="1_v0nwa"] +[ext_resource type="Texture2D" uid="uid://cj1f2uy6qfvki" path="res://data/23900.png" id="1_v0nwa"] [node name="23900" type="Sprite2D"] +rotation = 4.71239 scale = Vector2(0.496934, 0.496934) texture = ExtResource("1_v0nwa") diff --git a/scenes/tilemap/threat.tscn b/scenes/tilemap/threat.tscn index 1457760c..d671ae2a 100644 --- a/scenes/tilemap/threat.tscn +++ b/scenes/tilemap/threat.tscn @@ -1,6 +1,6 @@ [gd_scene load_steps=2 format=3 uid="uid://cv342kc1jj5hb"] -[ext_resource type="Texture2D" uid="uid://mobingoxskg1" path="res://scenes/tilemap/threat.png" id="1_pvxsy"] +[ext_resource type="Texture2D" uid="uid://mobingoxskg1" path="res://data/threat.png" id="1_pvxsy"] [node name="Threat" type="Sprite2D"] scale = Vector2(0.0244268, 0.0244268) diff --git a/scenes/tilemap/tilemap.gd b/scenes/tilemap/tilemap.gd index 39b0e0d3..0a787ff8 100644 --- a/scenes/tilemap/tilemap.gd +++ b/scenes/tilemap/tilemap.gd @@ -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 = 'Координаты:\nNS:%f\nEW:%f' % [lat, lon] signaller.emit_signal('update_coordinates_map', coordinates_label) @@ -834,5 +834,4 @@ func draw_ship_radius() -> void: var radius_point_world = Vector2(ship_world_pos.x + radius_world, ship_world_pos.y) var radius_point_screen = world_to_screen(radius_point_world) var radius_screen = ship_screen_pos.distance_to(radius_point_screen) - #draw_arc(ship_screen_pos, radius_screen, 0, TAU, 64, Color.ORANGE, 2.0) # отрисовка контура draw_circle(ship_screen_pos, radius_screen, Color.ORANGE_RED * Color(1, 1, 1, 0.1)) # отрисовка заливки diff --git a/scenes/контроль/контроль.tscn b/scenes/контроль/контроль.tscn index 58bc869e..873ab275 100644 --- a/scenes/контроль/контроль.tscn +++ b/scenes/контроль/контроль.tscn @@ -107,7 +107,7 @@ func _ready(): prd_module.unit_control.connect('control_is_over', Callable(self, 'on_control_is_over')) if item == 'уарэп-эмс': signaller.connect('update_uf_serviceability', Callable(self, 'on_update_uf_serviceability').bind(pribor_node)) - + # Пиктограммы приборов, которые отображают состояние подключения только for pribor_node in get_tree().get_nodes_in_group('pribor_pics'): var unit_name = pribor_node.get_meta('unit_name') @@ -170,6 +170,7 @@ func on_serviceability_changed(state: int, prd_pribor_node: Node)-> void: func on_update_uf_serviceability(uf_serviceaability: bool, uf_pribor: Node)-> void: + uf_pribor.state = 1 if uf_serviceaability else 2 diff --git a/scenes/настройки/настройки.tscn b/scenes/настройки/настройки.tscn index d115368b..69def70e 100644 --- a/scenes/настройки/настройки.tscn +++ b/scenes/настройки/настройки.tscn @@ -65,7 +65,7 @@ const SETTING_TABLE = [ ['Адрес БПО правого борта', TableEdit, TableEdit, 'http-адрес для запроса состояния прибора БПО'], ['Период опроса состояния БПО, секунды', TableEdit, TableEdit, 'Время в секундах' ], ['Период опроса состояния АФСП, секунды', TableEdit, TableEdit, 'Время в секундах' ], - ['уарэп-трасса', TableEdit, TableEdit, 'IP-адрес для связи с Трассой [<адрес этого узла>, <адрес удалённого узла>, <порт этого узла>, <порт удалённого узла>]'], + ['уареп-трасса', TableEdit, TableEdit, 'IP-адрес для связи с Трассой [<адрес этого узла>, <адрес удалённого узла>, <порт этого узла>, <порт удалённого узла>]'], ['Включить работу по своим целям', TableEdit, TableToggle, 'Разрешает работу в секторе со своей целью'], ['Список своих протоколов', TableEdit, TableEdit, 'Список протоколов целей, по которым запрещено работать' ], ] diff --git a/scenes/работа/работа.gd b/scenes/работа/работа.gd index 6ae374b5..5a4662c0 100644 --- a/scenes/работа/работа.gd +++ b/scenes/работа/работа.gd @@ -31,8 +31,7 @@ var strob_band_begin: float ## Ширина строба в моме var strob_dir_begin: float ## Направление антенны в момент начала перетаскивания. var strob_width_begin: float ## Ширина строба по углу в момент начала перетаскивания. var view_mode: MapViewMode ## Режим отображения карты -var thrs_dict: Dictionary ## Ссылка на словарь целей -var gos_flag = true ## Флаг работать по своим целям +var thrs_dict: Dictionary ## Ссылка на словарь целей var color_ecm: Color var color_select: Color var color_emit: Color @@ -56,7 +55,6 @@ var fs_selected: Dictionary ## Словарь выбранных сектор var fs_active: Dictionary ## Словарь секторов назначенных на подавление var fs_emit: Dictionary ## Словарь секторов назначенных на подавление var fs_closed: Dictionary ## Словарь для секторов запрета -var fs_failed: Array ## Индикация сломанных секторов (модули ФС). AntBandState.ANT_BAND_READY - исправен, AntBandState.ANT_BAND_FAILURE - сломан. ## Состояние перетаскивания. enum DragFSM { @@ -80,11 +78,6 @@ enum MapViewMode { } -enum AntBandState { - ANT_BAND_READY = 1, - ANT_BAND_FAILED = 0 -} - const VAL_TO_EVENT = { false: 'manual_control', ## Выбор целей и установка помех вручную. true: 'full_auto' } ## Выбор целей и установка помех автоматически. @@ -98,14 +91,7 @@ func on_threat_selected(th, ecm_btns): on_rto_threat_sel(th.id, ecm_btns) func on_enter_tree() -> void: call_deferred('on_button_strobe_pressed') -func clear_all_klaster(): $canvas.clear_all_seczap() - - -func on_user_panning(): $btn_center.button_pressed = false - - func on_settings_changed(): - gos_flag = ProjectSettings.get_setting('application/config/Включить работу по своим целям', true) color_emit = ProjectSettings.get_setting('application/interfer/emit_color', Color(0.58, 0.47, 0.51, 1.0)) color_ecm = ProjectSettings.get_setting('application/interfer/interfer_color', Color(0.58, 0.47, 0.51, 1.0)) color_select = ProjectSettings.get_setting('application/interfer/select_color', Color(1.0, 1.0, 1.0, 1.0)) @@ -123,7 +109,9 @@ func on_settings_changed(): ## Обработчик сигнала изменения списка целей. func on_threats_resized(ths: Dictionary): - count_threats(ths) + $count_all_pad/count_all.text = '%02d' % ths.size() + var c: int = ths.values().filter(func(th: threats.Threat): return th.proto != '').size() + $count_danger_pad/count_danger.text = '%02d' % c thrs_dict = ths @@ -156,18 +144,10 @@ func _exit_tree() -> void: timer1.queue_free() -func init_fs_failed(): - var sectors_count = $canvas.fs_default_colors.size() - fs_failed.resize(sectors_count) - for i in fs_failed.size(): - fs_failed[i] = AntBandState.ANT_BAND_READY - - ## Производит инициализацию. func _ready(): ProjectSettings.connect('settings_changed', on_settings_changed) on_settings_changed() - init_fs_failed() min_zoom = ProjectSettings.get_setting('application/config/map_minimum_zoom', 5) max_zoom = ProjectSettings.get_setting('application/config/map_maximum_zoom', 19) drag_fsm = DragFSM.OFF @@ -187,7 +167,6 @@ func _ready(): signaller.connect('threat_selected', Callable(self, 'on_threat_selected').bind(nodes)) signaller.connect('interfer_selected', Callable(self, 'on_interfer_selected').bind(nodes)) signaller.connect('interfer_new', Callable(self, 'on_interfer_new')) - signaller.connect('on_prog_ecm_off', Callable(self, 'on_interfer_new')) signaller.connect('interfer_off_all', Callable(self, 'on_interfer_off_all')) signaller.connect('interfer_prinuditelno', Callable(self, 'on_interfer_prinuditelno').bind(nodes)) signaller.connect('fs_selected', Callable(self, 'on_fs_selected')) @@ -200,7 +179,6 @@ func _ready(): signaller.connect('update_scale_map', Callable(self, 'on_update_scale_label')) signaller.connect('sector_klaster', Callable(self, 'sector_klaster')) signaller.connect('clear_klaster', Callable(self, 'clear_all_klaster')) - signaller.connect('th_aoa_update', Callable(self, 'on_th_aoa_update')) var unit_nav = network.get_unit_instance('навигация') unit_nav.connect('data_received', on_navi_data_received) on_btn_center_toggled(true) @@ -208,13 +186,16 @@ func _ready(): func sector_klaster(sector_data): - if sector_data['draw']: - var rect: Rect2 = sector_data['rect'] - var color: Color = sector_data['color'] - var id: int = sector_data['index'] + if sector_data["draw"]: + var rect: Rect2 = sector_data["rect"] + var color: Color = sector_data["color"] + var id: int = sector_data["index"] $canvas.add_seczap(id, Vector4(rect.position.x, rect.position.y, rect.size.x, rect.size.y)) $canvas.set_seczap_color(id, color) + else: + pass +func clear_all_klaster(): $canvas.clear_all_seczap() func on_navi_data_received(data: Dictionary): var k = data.get('k', 0.0) @@ -222,6 +203,10 @@ func on_navi_data_received(data: Dictionary): course = k +func on_user_panning(): + $btn_center.button_pressed = false + + func on_chk_interfer_prinuditelno(_interfer_sectors): $chk_auto.set_pressed_no_signal(false) on_value_changed(false) @@ -535,14 +520,6 @@ func update_fs_colors(): else: fs_colors[key] = color_select $canvas.set_band_colors(fs_colors) - $canvas.set_band_failures(fs_failed) - if fs_emit.size(): - if $btn_activate.pressed: - $btn_activate.self_modulate = Color.RED - else: - $btn_activate.self_modulate = Color.WHITE - else: - $btn_activate.self_modulate = Color.WHITE func unsel_fs_all(need_btns_off: bool): @@ -591,9 +568,8 @@ func on_interfer_prinuditelno(prenuditelno_sectors, btns): ## Вызывается при получении информации о состоянии модулей ФС от КАПС РПБ. -func on_fs_update_state(fs_dict: Dictionary): - for key in fs_dict.keys(): - fs_failed[key] = fs_dict[key].isg +func on_fs_update_state(_fs_dict: Dictionary): + pass func on_btn_center_toggled(toggled_on: bool) -> void: @@ -604,8 +580,6 @@ func on_btn_center_toggled(toggled_on: bool) -> void: func on_btn_activate_toggled(toggled_on: bool) -> void: $btn_activate.tooltip_text = 'Включает подавление (%s)' % ('включено' if toggled_on else 'отключено') signaller.emit_signal('emit_changed', toggled_on) - if not toggled_on: - $btn_activate.self_modulate = Color.WHITE func on_update_coordinates_label(coordinates_label) -> void: @@ -622,7 +596,6 @@ func on_btn_close(btn): fs_closed.merge(fs_selected) signaller.emit_signal('update_fs_closed', fs_closed) - func on_btn_work(btn): await get_tree().create_timer(0.2).timeout btn.pressed = false @@ -632,21 +605,6 @@ func on_btn_work(btn): fs_closed[fs_index] = null signaller.emit_signal('update_fs_closed', fs_closed) - func _on_btn_all_work_pressed() -> void: fs_closed.clear() signaller.emit_signal('update_fs_closed', fs_closed) - - -func on_th_aoa_update(ths): - count_threats(ths) - - -func count_threats(ths): - $count_all_pad/count_all.text = '%02d' % ths.size() - var c: int = 0 - if gos_flag: - c = ths.values().filter(func(th: threats.Threat): return th.proto != '').size() - else: - c = ths.values().filter(func(th: threats.Threat): return ((th.proto != '') and th.proto not in interfer.gos_protocols)).size() - $count_danger_pad/count_danger.text = '%02d' % c diff --git a/scenes/работа/работа.tscn b/scenes/работа/работа.tscn index 8282d3fc..ba079435 100644 --- a/scenes/работа/работа.tscn +++ b/scenes/работа/работа.tscn @@ -306,18 +306,18 @@ 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 = 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 = 1003.0 -offset_top = -24.0 -offset_right = 1113.0 -offset_bottom = -3.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="."] @@ -383,8 +383,8 @@ texture_normal = ExtResource("14_ggrwd") [connection signal="toggled" from="btn_activate" to="." method="on_btn_activate_toggled"] [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_plus_button_up"] [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"] diff --git a/scenes/эмс2/Излучение.png b/scenes/эмс2/Излучение.png deleted file mode 100644 index 8758f6f3..00000000 Binary files a/scenes/эмс2/Излучение.png and /dev/null differ diff --git a/scenes/эмс2/Квадрат марс 454.png b/scenes/эмс2/Квадрат марс 454.png deleted file mode 100644 index 670d2dec..00000000 Binary files a/scenes/эмс2/Квадрат марс 454.png and /dev/null differ diff --git a/scenes/эмс2/Квадрат марс ГО.png b/scenes/эмс2/Квадрат марс ГО.png deleted file mode 100644 index 2bf79149..00000000 Binary files a/scenes/эмс2/Квадрат марс ГО.png and /dev/null differ diff --git a/scenes/эмс2/Квадрат марс ОР-63.png b/scenes/эмс2/Квадрат марс ОР-63.png deleted file mode 100644 index 821dad95..00000000 Binary files a/scenes/эмс2/Квадрат марс ОР-63.png and /dev/null differ diff --git a/scenes/эмс2/Квадрат марс РЛС1.png b/scenes/эмс2/Квадрат марс РЛС1.png deleted file mode 100644 index 4be19b5f..00000000 Binary files a/scenes/эмс2/Квадрат марс РЛС1.png and /dev/null differ diff --git a/scenes/эмс2/Квадрат марс РЛС2.png b/scenes/эмс2/Квадрат марс РЛС2.png deleted file mode 100644 index 7f6c0be0..00000000 Binary files a/scenes/эмс2/Квадрат марс РЛС2.png and /dev/null differ diff --git a/scenes/эмс2/Квадрат марс с трубкой.png b/scenes/эмс2/Квадрат марс с трубкой.png deleted file mode 100644 index 06466be2..00000000 Binary files a/scenes/эмс2/Квадрат марс с трубкой.png and /dev/null differ diff --git a/scenes/эмс2/Квадрат салатный 454.png b/scenes/эмс2/Квадрат салатный 454.png deleted file mode 100644 index fda1e654..00000000 Binary files a/scenes/эмс2/Квадрат салатный 454.png and /dev/null differ diff --git a/scenes/эмс2/Квадрат салатный ГО.png b/scenes/эмс2/Квадрат салатный ГО.png deleted file mode 100644 index 46f2795d..00000000 Binary files a/scenes/эмс2/Квадрат салатный ГО.png and /dev/null differ diff --git a/scenes/эмс2/Квадрат салатный ОР-63.png b/scenes/эмс2/Квадрат салатный ОР-63.png deleted file mode 100644 index 1e9e6c98..00000000 Binary files a/scenes/эмс2/Квадрат салатный ОР-63.png and /dev/null differ diff --git a/scenes/эмс2/Квадрат салатный РЛС1.png b/scenes/эмс2/Квадрат салатный РЛС1.png deleted file mode 100644 index f57560f3..00000000 Binary files a/scenes/эмс2/Квадрат салатный РЛС1.png and /dev/null differ diff --git a/scenes/эмс2/Квадрат салатный РЛС2.png b/scenes/эмс2/Квадрат салатный РЛС2.png deleted file mode 100644 index 119b3c8d..00000000 Binary files a/scenes/эмс2/Квадрат салатный РЛС2.png and /dev/null differ diff --git a/scenes/эмс2/Квадрат салатный с трубкой.png b/scenes/эмс2/Квадрат салатный с трубкой.png deleted file mode 100644 index 4509564f..00000000 Binary files a/scenes/эмс2/Квадрат салатный с трубкой.png and /dev/null differ diff --git a/scenes/эмс2/Кнопка подтверждения01.png b/scenes/эмс2/Кнопка подтверждения01.png deleted file mode 100644 index 8449777f..00000000 Binary files a/scenes/эмс2/Кнопка подтверждения01.png and /dev/null differ diff --git a/scenes/эмс2/Окно частот0.png b/scenes/эмс2/Окно частот0.png deleted file mode 100644 index 18d7d280..00000000 Binary files a/scenes/эмс2/Окно частот0.png and /dev/null differ diff --git a/scenes/эмс2/Приём.png b/scenes/эмс2/Приём.png deleted file mode 100644 index 776df102..00000000 Binary files a/scenes/эмс2/Приём.png and /dev/null differ diff --git a/scenes/эмс2/Скруглённый квадрат белый.png b/scenes/эмс2/Скруглённый квадрат белый.png deleted file mode 100644 index d0959be3..00000000 Binary files a/scenes/эмс2/Скруглённый квадрат белый.png and /dev/null differ diff --git a/scenes/эмс2/Скруглённый квадрат серый.png b/scenes/эмс2/Скруглённый квадрат серый.png deleted file mode 100644 index 35d08ee1..00000000 Binary files a/scenes/эмс2/Скруглённый квадрат серый.png and /dev/null differ diff --git a/scenes/эмс2/Скруглённый прямоуг салатный.png b/scenes/эмс2/Скруглённый прямоуг салатный.png deleted file mode 100644 index f2ba3418..00000000 Binary files a/scenes/эмс2/Скруглённый прямоуг салатный.png and /dev/null differ diff --git a/scenes/эмс2/Скруглённый прямоугольник белый.png b/scenes/эмс2/Скруглённый прямоугольник белый.png deleted file mode 100644 index f734b978..00000000 Binary files a/scenes/эмс2/Скруглённый прямоугольник белый.png and /dev/null differ diff --git a/scenes/эмс2/Скруглённый прямоугольник серый.png b/scenes/эмс2/Скруглённый прямоугольник серый.png deleted file mode 100644 index c1684d86..00000000 Binary files a/scenes/эмс2/Скруглённый прямоугольник серый.png and /dev/null differ diff --git a/scenes/эмс2/Угловой квадрат2.png b/scenes/эмс2/Угловой квадрат2.png deleted file mode 100644 index ca73f105..00000000 Binary files a/scenes/эмс2/Угловой квадрат2.png and /dev/null differ diff --git a/scenes/эмс2/эмс-тг.tscn b/scenes/эмс2/эмс-тг.tscn index 8b449139..4a39180c 100644 --- a/scenes/эмс2/эмс-тг.tscn +++ b/scenes/эмс2/эмс-тг.tscn @@ -1,12 +1,12 @@ [gd_scene load_steps=11 format=3 uid="uid://cyhrdjoylh8tj"] -[ext_resource type="Texture2D" uid="uid://hkcvl2waf63s" path="res://scenes/эмс2/вид сверху.png" id="1_4em3i"] -[ext_resource type="Texture2D" uid="uid://0w6q4vfst0ry" path="res://scenes/эмс2/OP-63.png" id="3_eq8fj"] -[ext_resource type="Texture2D" uid="uid://073el51yholj" path="res://scenes/эмс2/454.png" id="4_528aa"] -[ext_resource type="Texture2D" uid="uid://cckk3jk5r32bh" path="res://scenes/эмс2/ГО.png" id="5_qxr47"] -[ext_resource type="Texture2D" uid="uid://kyrnn1mqpc08" path="res://scenes/эмс2/РЛС1.png" id="6_8sxps"] -[ext_resource type="Texture2D" uid="uid://cx0f3wcx76u1k" path="res://scenes/эмс2/РЛС2.png" id="7_0bfmy"] -[ext_resource type="Texture2D" uid="uid://duu8q7sv0jwfh" path="res://scenes/эмс2/ННВС.png" id="8_aiy4x"] +[ext_resource type="Texture2D" uid="uid://hkcvl2waf63s" path="res://data/вид сверху.png" id="1_4em3i"] +[ext_resource type="Texture2D" uid="uid://0w6q4vfst0ry" path="res://data/OP-63.png" id="3_eq8fj"] +[ext_resource type="Texture2D" uid="uid://073el51yholj" path="res://data/454.png" id="4_528aa"] +[ext_resource type="Texture2D" uid="uid://cckk3jk5r32bh" path="res://data/ГО.png" id="5_qxr47"] +[ext_resource type="Texture2D" uid="uid://kyrnn1mqpc08" path="res://data/РЛС1.png" id="6_8sxps"] +[ext_resource type="Texture2D" uid="uid://cx0f3wcx76u1k" path="res://data/РЛС2.png" id="7_0bfmy"] +[ext_resource type="Texture2D" uid="uid://duu8q7sv0jwfh" path="res://data/ННВС.png" id="8_aiy4x"] [sub_resource type="CompressedTexture2D" id="CompressedTexture2D_5u4bk"] load_path = "res://.godot/imported/Окно частот0.png-6b01791c971bddb01337caf9077bf060.ctex" diff --git a/scenes/эмс2/эмс2.tscn b/scenes/эмс2/эмс2.tscn index 81fd3a08..28dc925b 100644 --- a/scenes/эмс2/эмс2.tscn +++ b/scenes/эмс2/эмс2.tscn @@ -1,49 +1,43 @@ -[gd_scene load_steps=35 format=3 uid="uid://musb21x2u0xs"] +[gd_scene load_steps=34 format=3 uid="uid://musb21x2u0xs"] -[ext_resource type="Texture2D" uid="uid://hkcvl2waf63s" path="res://scenes/эмс2/вид сверху.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://0w6q4vfst0ry" path="res://scenes/эмс2/OP-63.png" id="3_8gk36"] -[ext_resource type="Texture2D" uid="uid://coxhivvc6uibs" path="res://scenes/эмс2/Состояние РЭС 40.png" id="4_b3mus"] -[ext_resource type="Texture2D" uid="uid://073el51yholj" path="res://scenes/эмс2/454.png" id="4_nqi0i"] -[ext_resource type="Texture2D" uid="uid://cckk3jk5r32bh" path="res://scenes/эмс2/ГО.png" id="5_e7tlv"] -[ext_resource type="Texture2D" uid="uid://bu88bqq7hrotv" path="res://scenes/эмс2/Состояние РЭС 20.png" id="5_yqn2y"] -[ext_resource type="Texture2D" uid="uid://di30dfvbbdnms" path="res://scenes/эмс2/Состояние РЭС 1.png" id="6_m57px"] -[ext_resource type="Texture2D" uid="uid://kyrnn1mqpc08" path="res://scenes/эмс2/РЛС1.png" id="6_y58bl"] -[ext_resource type="Texture2D" uid="uid://cx0f3wcx76u1k" path="res://scenes/эмс2/РЛС2.png" id="7_mxw8g"] -[ext_resource type="Texture2D" uid="uid://duu8q7sv0jwfh" path="res://scenes/эмс2/ННВС.png" id="8_q16jd"] -[ext_resource type="Texture2D" uid="uid://c1nld5t17kws3" path="res://scenes/эмс2/Состояние ЭМС слабый сигнал.png" id="9_5u4bk"] -[ext_resource type="Texture2D" uid="uid://djv8fkddcjucs" path="res://scenes/эмс2/Скруглённый квадрат белый.png" id="15_2spgl"] -[ext_resource type="Texture2D" uid="uid://hd76uw2shjtn" path="res://scenes/эмс2/Угловой квадрат2.png" id="16_b5v2s"] -[ext_resource type="Texture2D" uid="uid://d3qui21aom1ac" path="res://scenes/эмс2/Квадрат марс 454.png" id="17_p41nv"] -[ext_resource type="Texture2D" uid="uid://cxrggrvx6l22q" path="res://scenes/эмс2/Квадрат марс ОР-63.png" id="18_5ifkb"] -[ext_resource type="Texture2D" uid="uid://by6a12oahbg82" path="res://scenes/эмс2/Квадрат марс РЛС1.png" id="19_vyjnq"] -[ext_resource type="Texture2D" uid="uid://dwgqofj6yae1v" path="res://scenes/эмс2/Квадрат марс РЛС2.png" id="20_68srw"] -[ext_resource type="Texture2D" uid="uid://36xjgea2n22q" path="res://scenes/эмс2/Квадрат марс ГО.png" id="21_v6otu"] -[ext_resource type="Texture2D" uid="uid://dsuiytxdnole7" path="res://scenes/эмс2/Квадрат марс с трубкой.png" id="22_ufy3d"] -[ext_resource type="Texture2D" uid="uid://b1kuhj03yigih" path="res://scenes/эмс2/Квадрат салатный 454.png" id="23_h11e0"] -[ext_resource type="Texture2D" uid="uid://d3v1r4r62na8" path="res://scenes/эмс2/Квадрат салатный ОР-63.png" id="24_2pcsf"] -[ext_resource type="Texture2D" uid="uid://ddm55bo28sxcs" path="res://scenes/эмс2/Квадрат салатный РЛС1.png" id="25_wmu4u"] -[ext_resource type="Texture2D" uid="uid://dneqjcul4ipub" path="res://scenes/эмс2/Квадрат салатный РЛС2.png" id="26_w5eif"] -[ext_resource type="Texture2D" uid="uid://cyb60nh23ys6k" path="res://scenes/эмс2/Квадрат салатный ГО.png" id="27_2ft3r"] -[ext_resource type="Texture2D" uid="uid://cw8sd7v5f31ww" path="res://scenes/эмс2/Квадрат салатный с трубкой.png" id="28_rra4y"] -[ext_resource type="Texture2D" uid="uid://busl8rb38lis" path="res://scenes/эмс2/Скруглённый прямоуг салатный.png" id="29_5u4bk"] -[ext_resource type="Texture2D" uid="uid://xux3mch12733" path="res://scenes/эмс2/Приём.png" id="30_l3ueu"] -[ext_resource type="Texture2D" uid="uid://bw2sx5d0mcu53" path="res://scenes/эмс2/Излучение.png" id="31_2spgl"] -[ext_resource type="Texture2D" uid="uid://7ody4v7qy36g" path="res://scenes/эмс2/Скруглённый прямоугольник серый.png" id="31_b5v2s"] -[ext_resource type="Texture2D" uid="uid://carr8bw5rwiwj" path="res://scenes/эмс2/Кнопка подтверждения01.png" id="32_p41nv"] -[ext_resource type="Texture2D" uid="uid://3siondd3feev" path="res://scenes/эмс2/Скруглённый прямоугольник белый.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" +[ext_resource type="Texture2D" uid="uid://hkcvl2waf63s" path="res://data/вид сверху.png" id="1_b7vcf"] +[ext_resource type="Texture2D" uid="uid://b1dw06ahtftq2" path="res://data/Окно частот0.png" id="2_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"] +[ext_resource type="Texture2D" uid="uid://cckk3jk5r32bh" path="res://data/ГО.png" id="5_e7tlv"] +[ext_resource type="Texture2D" uid="uid://bu88bqq7hrotv" path="res://data/Состояние РЭС 20.png" id="5_yqn2y"] +[ext_resource type="Texture2D" uid="uid://di30dfvbbdnms" path="res://data/Состояние РЭС 1.png" id="6_m57px"] +[ext_resource type="Texture2D" uid="uid://kyrnn1mqpc08" path="res://data/РЛС1.png" id="6_y58bl"] +[ext_resource type="Texture2D" uid="uid://cx0f3wcx76u1k" path="res://data/РЛС2.png" id="7_mxw8g"] +[ext_resource type="Texture2D" uid="uid://duu8q7sv0jwfh" path="res://data/ННВС.png" id="8_q16jd"] +[ext_resource type="Texture2D" uid="uid://c1nld5t17kws3" path="res://data/Состояние ЭМС слабый сигнал.png" id="9_5u4bk"] +[ext_resource type="Texture2D" uid="uid://djv8fkddcjucs" path="res://data/Скруглённый квадрат белый.png" id="15_2spgl"] +[ext_resource type="Texture2D" uid="uid://hd76uw2shjtn" path="res://data/Угловой квадрат2.png" id="16_b5v2s"] +[ext_resource type="Texture2D" uid="uid://d3qui21aom1ac" path="res://data/Квадрат марс 454.png" id="17_p41nv"] +[ext_resource type="Texture2D" uid="uid://cxrggrvx6l22q" path="res://data/Квадрат марс ОР-63.png" id="18_5ifkb"] +[ext_resource type="Texture2D" uid="uid://by6a12oahbg82" path="res://data/Квадрат марс РЛС1.png" id="19_vyjnq"] +[ext_resource type="Texture2D" uid="uid://dwgqofj6yae1v" path="res://data/Квадрат марс РЛС2.png" id="20_68srw"] +[ext_resource type="Texture2D" uid="uid://36xjgea2n22q" path="res://data/Квадрат марс ГО.png" id="21_v6otu"] +[ext_resource type="Texture2D" uid="uid://dsuiytxdnole7" path="res://data/Квадрат марс с трубкой.png" id="22_ufy3d"] +[ext_resource type="Texture2D" uid="uid://b1kuhj03yigih" path="res://data/Квадрат салатный 454.png" id="23_h11e0"] +[ext_resource type="Texture2D" uid="uid://d3v1r4r62na8" path="res://data/Квадрат салатный ОР-63.png" id="24_2pcsf"] +[ext_resource type="Texture2D" uid="uid://ddm55bo28sxcs" path="res://data/Квадрат салатный РЛС1.png" id="25_wmu4u"] +[ext_resource type="Texture2D" uid="uid://bymxiptkbufvs" path="res://data/Скруглённый квадрат серый.png" id="26_b5v2s"] +[ext_resource type="Texture2D" uid="uid://dneqjcul4ipub" path="res://data/Квадрат салатный РЛС2.png" id="26_w5eif"] +[ext_resource type="Texture2D" uid="uid://cyb60nh23ys6k" path="res://data/Квадрат салатный ГО.png" id="27_2ft3r"] +[ext_resource type="Texture2D" uid="uid://cw8sd7v5f31ww" path="res://data/Квадрат салатный с трубкой.png" id="28_rra4y"] +[ext_resource type="Texture2D" uid="uid://busl8rb38lis" path="res://data/Скруглённый прямоуг салатный.png" id="29_5u4bk"] +[ext_resource type="Texture2D" uid="uid://xux3mch12733" path="res://data/Приём.png" id="30_l3ueu"] +[ext_resource type="Texture2D" uid="uid://bw2sx5d0mcu53" path="res://data/Излучение.png" id="31_2spgl"] +[ext_resource type="Texture2D" uid="uid://7ody4v7qy36g" path="res://data/Скруглённый прямоугольник серый.png" id="31_b5v2s"] +[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"] [node name="Panel" type="Panel"] -script = ExtResource("1_l3ueu") [node name="Sprite2D" type="Sprite2D" parent="."] -modulate = Color(1, 0.596078, 0.4, 1) +modulate = Color(0.8, 0.533333, 0.27451, 1) position = Vector2(792, 120) rotation = 1.5708 scale = Vector2(0.325, 0.325) @@ -56,7 +50,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("2_2spgl") expand_mode = 1 [node name="Op-63" type="TextureRect" parent="."] @@ -108,15 +102,6 @@ position = Vector2(275.641, 38.4615) scale = Vector2(3.20513, 3.20513) texture = ExtResource("6_m57px") -[node name="lbl_trassa" type="Label" parent="454"] -layout_mode = 0 -offset_left = -42.0 -offset_top = -135.0 -offset_right = 221.0 -offset_bottom = -36.0 -theme_override_font_sizes/font_size = 100 -text = "Трасса" - [node name="Го" type="TextureRect" parent="."] layout_mode = 0 offset_left = 488.0 @@ -262,7 +247,7 @@ texture = ExtResource("28_rra4y") [node name="СкруглённыйКвадрат" type="Sprite2D" parent="."] position = Vector2(1299, 873) -texture = SubResource("CompressedTexture2D_l3ueu") +texture = ExtResource("26_b5v2s") [node name="СкруглённыйКвадратБелый" type="Sprite2D" parent="СкруглённыйКвадрат"] position = Vector2(0, 49) @@ -386,23 +371,23 @@ texture = ExtResource("15_2spgl") [node name="СкруглённыйКвадратСерый2" type="Sprite2D" parent="СкруглённыйКвадрат"] position = Vector2(49, 49) -texture = SubResource("CompressedTexture2D_l3ueu") +texture = ExtResource("26_b5v2s") [node name="СкруглённыйКвадратСерый3" type="Sprite2D" parent="СкруглённыйКвадрат"] position = Vector2(98, 98) -texture = SubResource("CompressedTexture2D_l3ueu") +texture = ExtResource("26_b5v2s") [node name="СкруглённыйКвадратСерый4" type="Sprite2D" parent="СкруглённыйКвадрат"] position = Vector2(147, 147) -texture = SubResource("CompressedTexture2D_l3ueu") +texture = ExtResource("26_b5v2s") [node name="СкруглённыйКвадратСерый5" type="Sprite2D" parent="СкруглённыйКвадрат"] position = Vector2(245, 245) -texture = SubResource("CompressedTexture2D_l3ueu") +texture = ExtResource("26_b5v2s") [node name="СкруглённыйКвадратСерый6" type="Sprite2D" parent="СкруглённыйКвадрат"] position = Vector2(196, 196) -texture = SubResource("CompressedTexture2D_l3ueu") +texture = ExtResource("26_b5v2s") [node name="Label" type="Label" parent="."] layout_mode = 0 diff --git a/scenes/эмс2/эмс_тг.gd b/scenes/эмс2/эмс_тг.gd index 88c93a61..e556388a 100644 --- a/scenes/эмс2/эмс_тг.gd +++ b/scenes/эмс2/эмс_тг.gd @@ -1,38 +1,39 @@ extends Panel - - +# +# func _ready() -> void: - var unit_trassa = network.get_unit_instance('уарэп-трасса') - unit_trassa.connect('line_changed', Callable(self, 'on_trassa_line_changed')) - signaller.connect('sector_klaster', Callable(self, 'on_sector_klaster').bind(unit_trassa)) - - -func on_trassa_line_changed(unit_trassa): - if unit_trassa.online: - $'454/СостояниеРэс3'.self_modulate = Color.WEB_GREEN - $'СкруглённыйПрямоугольникБелый/Label3'.text = 'Трасса' - $'СкруглённыйПрямоугольникБелый/Label4'.text = 'Трасса' - $'СкруглённыйПрямоугольникБелый/Label5'.text = 'Активный' - $'СкруглённыйПрямоугольникБелый/Label6'.text = str(unit_trassa.daa) - $'СкруглённыйПрямоугольникБелый/Label7'.text = str(unit_trassa.dap) - $'СкруглённыйПрямоугольникБелый/Label8'.text = '1' - $'СкруглённыйПрямоугольникБелый/Label9'.text = str(unit_trassa.lfb) - $'СкруглённыйПрямоугольникБелый/Label10'.text = str(unit_trassa.lfb) - else: - $'454/СостояниеРэс3'.self_modulate = Color.WHITE - $'СкруглённыйПрямоугольникБелый/Label3'.text = '-' - $'СкруглённыйПрямоугольникБелый/Label4'.text = '-' - $'СкруглённыйПрямоугольникБелый/Label5'.text = '-' - $'СкруглённыйПрямоугольникБелый/Label6'.text = '-' - $'СкруглённыйПрямоугольникБелый/Label7'.text = '-' - $'СкруглённыйПрямоугольникБелый/Label8'.text = '-' - $'СкруглённыйПрямоугольникБелый/Label9'.text = '-' - $'СкруглённыйПрямоугольникБелый/Label10'.text = '-' - - -func on_sector_klaster(_data, unit_trassa): - $'СкруглённыйПрямоугольникБелый/Label6'.text = str(unit_trassa.dap) - $'СкруглённыйПрямоугольникБелый/Label7'.text = str(unit_trassa.daa) - $'СкруглённыйПрямоугольникБелый/Label8'.text = '1' - $'СкруглённыйПрямоугольникБелый/Label9'.text = str(unit_trassa.lfb) - $'СкруглённыйПрямоугольникБелый/Label10'.text = str(unit_trassa.hfb) + pass + #var unit_trassa = network.get_unit_instance('уарэп-трасса') + #unit_trassa.connect('line_changed', Callable(self, 'on_trassa_line_changed')) + #signaller.connect('sector_klaster', Callable(self, 'on_sector_klaster').bind(unit_trassa)) +# +# +#func on_trassa_line_changed(unit_trassa): + #if unit_trassa.online: + #$'454/СостояниеРэс3'.self_modulate = Color.WEB_GREEN + #$'СкруглённыйПрямоугольникБелый/Label3'.text = 'Трасса' + #$'СкруглённыйПрямоугольникБелый/Label4'.text = 'Трасса' + #$'СкруглённыйПрямоугольникБелый/Label5'.text = 'Активный' + #$'СкруглённыйПрямоугольникБелый/Label6'.text = str(unit_trassa.daa) + #$'СкруглённыйПрямоугольникБелый/Label7'.text = str(unit_trassa.dap) + #$'СкруглённыйПрямоугольникБелый/Label8'.text = '1' + #$'СкруглённыйПрямоугольникБелый/Label9'.text = str(unit_trassa.lfb) + #$'СкруглённыйПрямоугольникБелый/Label10'.text = str(unit_trassa.lfb) + #else: + #$'454/СостояниеРэс3'.self_modulate = Color.WHITE + #$'СкруглённыйПрямоугольникБелый/Label3'.text = '-' + #$'СкруглённыйПрямоугольникБелый/Label4'.text = '-' + #$'СкруглённыйПрямоугольникБелый/Label5'.text = '-' + #$'СкруглённыйПрямоугольникБелый/Label6'.text = '-' + #$'СкруглённыйПрямоугольникБелый/Label7'.text = '-' + #$'СкруглённыйПрямоугольникБелый/Label8'.text = '-' + #$'СкруглённыйПрямоугольникБелый/Label9'.text = '-' + #$'СкруглённыйПрямоугольникБелый/Label10'.text = '-' +# +# +#func on_sector_klaster(data, unit_trassa): + #$'СкруглённыйПрямоугольникБелый/Label6'.text = str(unit_trassa.dap) + #$'СкруглённыйПрямоугольникБелый/Label7'.text = str(unit_trassa.daa) + #$'СкруглённыйПрямоугольникБелый/Label8'.text = '1' + #$'СкруглённыйПрямоугольникБелый/Label9'.text = str(unit_trassa.lfb) + #$'СкруглённыйПрямоугольникБелый/Label10'.text = str(unit_trassa.hfb) diff --git a/scripts/interfer.gd b/scripts/interfer.gd index 405dacbe..01c7f527 100644 --- a/scripts/interfer.gd +++ b/scripts/interfer.gd @@ -93,7 +93,6 @@ const ID_INTERFERS_LEN = 63 ## Размер пула номеров целе const INTERFER_OFF = 'off' const INTERFER_IQFILE = 'IQ-файл' const POW_DEFAULT: float = 50.0 -const PERIOD_DEFAULT = 7.5 var msg6_num: int = 0 ## Счётчик сообщений "тип 6" var msg8_num: int = 0 ## Счётчик сообщений "тип 8" var id_array: Array ## Массив id воздействий. @@ -126,7 +125,6 @@ class Interfer: var modulation: bool ## Модуляция для включения усилителей var um: float ## Угол места для помехи. var nmfs: int = 0 ## Номер модуля ФС в нумерации СТЦ - var priority: int = 0 ## Приоритет помехи func _to_string() -> String: return 'номер: %d название: %s частота: %0.1f МГц пеленг: %0.1f гр.' % [ispp, ITERFER_MODE[krp][0], params['freq'], kni] @@ -216,7 +214,7 @@ func _ready() -> void: threats.connect('threats_resized', Callable(self, 'on_threats_resized')) threats.connect('threat_update', Callable(self, 'on_threats_update').bind(ecms, unit_caps)) ProjectSettings.connect('settings_changed', on_settings_changed) - var unit_nav: = network.get_unit_instance('навигация') + var unit_nav = network.get_unit_instance('навигация') unit_nav.connect('data_received', on_nav_data_received.bind(unit_caps)) @@ -259,34 +257,22 @@ func on_timer_check_state(unit_instance, ecms, resend_timeout) -> void: func on_th_aoa_update(threats: Dictionary, ecms: Dictionary, unit_instance) -> void: gos_nmfs.clear() for thr in threats.values(): - var fs_arr: Array = [] - var th_aoa = fposmod(thr.aoa - course, 360) - prd.find_fs_index(th_aoa, thr.freq, fs_arr) - if fs_arr.size(): - for item in fs_arr: - var nmfs = prd.FS_PRD[item][1] - thr.nmfs = nmfs - if (thr.proto in gos_protocols) and thr.fflags.proto and (not gos_flag): - gos_nmfs.append(nmfs) - - thr.emit_state = 0 - for ecm in ecms.values(): - if thr.nmfs == ecm.nmfs: - set_th_emit(thr, ecm) - var ecm_active = true - if not gos_flag: - if ecm.nmfs in gos_nmfs: - interfer_off(ecm, unit_instance) - ecm_active = false - if ecm_active and (prd.fs_caps_id[ecm.nmfs] in fs_closed): - interfer_off(ecm, unit_instance) - + if not gos_flag: # Составляется список запретных секторов работы + if (thr.proto in gos_protocols) and thr.fflags.proto: + var fs_arr: Array = [] + prd.find_fs_index(thr.aoa, thr.freq, fs_arr) + if fs_arr.size(): + for item in fs_arr: + var nmfs = prd.FS_PRD[item][1] + gos_nmfs.append(nmfs) var th_id = thr.id for ecm_i in thrs.keys(): if thrs[ecm_i] == th_id: var ecm = ecms[ecm_i] ecm.params['freq'] = thr.freq - ecm.kni = fposmod(thr.aoa - course, 360) + ecm.kni = thr.aoa - course + if ecm.kni < 0: + ecm.kni += 360 call_ecm_proc(ecm) if ecm.nmfs in gos_nmfs: interfer_off(ecm, unit_instance) @@ -297,11 +283,23 @@ func on_th_aoa_update(threats: Dictionary, ecms: Dictionary, unit_instance) -> v signaller.emit_signal('fs_update_color', ecms) prd.update_fs_state(ecms, trenazh_mode) + + for ecm in ecms.values(): + var ecm_active = true + if not gos_flag: + if ecm.nmfs in gos_nmfs: + interfer_off(ecm, unit_instance) + ecm_active = false + if ecm_active and (prd.fs_caps_id[ecm.nmfs] in fs_closed): + interfer_off(ecm, unit_instance) + + if not auto_enabled: + return + if auto_enabled: for thr in threats.values(): var fs_arr: Array = [] - var th_aoa = fposmod(thr.aoa - course, 360) - prd.find_fs_index(th_aoa, thr.freq, fs_arr) + prd.find_fs_index(thr.aoa, thr.freq, fs_arr) if fs_arr.size(): var need_continue = false for item in fs_arr: @@ -368,29 +366,22 @@ func map_mpchf_to_seczaps(unit_instance: unit.Unit, _seczaps: Dictionary): ## Вызыватся, когда пользователь выбрал помеху и выбраны цели. func on_interfer_create(interfer_name, sel_threats, fs_arr, power, u, ecms) -> void: for item in sel_threats: - if auto_enabled: - var need_continue = false - for ecm in ecms.values(): - if ecm.nmfs == item.nmfs: - if item.priority > ecm.priority: - interfer_off(ecm, u) - elif item.priority < ecm.priority: - need_continue = true - break - if need_continue: continue var param: Dictionary = {} var kni: float = item.aoa - course if kni < 0: kni += 360.0 var id = item.id param['freq'] = item.freq - param['width'] = item.width * 1.5 + param['width'] = item.width if (item.rkrp != '') and item.fflags.rkrp and auto_enabled: var krp = get_krp(item) if krp != '': interfer_name = krp set_rparams(item, param) - check_width(param) + if (param['width'] < settings.WIDTH_MIN): + param['width'] = settings.WIDTH_MIN + elif (param['width'] > settings.WIDTH_MAX): + param['width'] = settings.WIDTH_MAX interfer_create(u, interfer_name, ecms, param, kni, id, thrs, SOURCE_INTERFER[0], power) for item in fs_arr: @@ -399,7 +390,10 @@ func on_interfer_create(interfer_name, sel_threats, fs_arr, power, u, ecms) -> v var id = item[3] param['freq'] = item[1] param['width'] = item[2] - check_width(param) + if (param['width'] < settings.WIDTH_MIN): + param['width'] = settings.WIDTH_MIN + elif (param['width'] > settings.WIDTH_MAX): + param['width'] = settings.WIDTH_MAX interfer_create(u, interfer_name, ecms, param, kni, id, fs, SOURCE_INTERFER[1], power) @@ -439,7 +433,7 @@ func interfer_create(u, interfer_name, ecms, param, kni, id, dict, source_interf var sz = ecms.size() var ispp: int = 0 param['dur'] = 1.0 # Необходимо добавить параметры управления - param['period'] = param.get('period', PERIOD_DEFAULT) + param['period'] = 1.0 # Необходимо добавить параметры управления var key = dict.find_key(id) if source_interfer != SOURCE_INTERFER[2]: if key != null: @@ -460,16 +454,13 @@ func interfer_create(u, interfer_name, ecms, param, kni, id, dict, source_interf ecm = Interfer.new() ecm.ispp = ispp ecms[ispp] = ecm - ecm.modulation = emit_enable ecm.kni = kni ecm.krp = interfer_name ecm.params = param ecm.powp = power ecm.source_interfer = source_interfer + ecm.modulation = emit_enable ecm.um = param.get('um', 15.0) # Значение по умолчанию - if source_interfer == SOURCE_INTERFER[0]: - if thrs_dict.has(dict[ispp]): - ecm.priority = thrs_dict[dict[ispp]].priority call_ecm_proc(ecm) var set_nmfs_ok = set_nmfs(ecm) if set_nmfs_ok != Error.OK: @@ -486,7 +477,7 @@ func interfer_create(u, interfer_name, ecms, param, kni, id, dict, source_interf func send_ecm(ecm, unit0) -> void: if ecm.krp != INTERFER_OFF: - if not ecm.modulation: + if not emit_enable: ecm.svk = 0 call_deferred('emit_signal', 'interfer_update', ecm) return @@ -521,10 +512,8 @@ func push_id(id: int) -> void: id_array.sort() -func on_emit_changed(state, ecms) -> void: +func on_emit_changed(state, _ecms) -> void: emit_enable = state - for ecm in ecms.values(): - ecm.modulation = state func call_all_diap(ecm, ecm_params: Dictionary): @@ -572,11 +561,8 @@ func on_threats_update(threat, ecms, unit_caps): for ecm_i in thrs.keys(): if thrs[ecm_i] == th_id: ecm = ecms[ecm_i] - ecm.priority = threat.priority ecm.params['freq'] = threat.freq - var width = threat.width * 1.5 - ecm.params['width'] = width - check_width(ecm.params) + ecm.params['width'] = threat.width if (threat.rkrp != '') and threat.fflags.rkrp and auto_enabled: var krp = get_krp(threat) if krp != '': @@ -590,8 +576,58 @@ func on_threats_update(threat, ecms, unit_caps): if ecm.kni < 0: ecm.kni += 360 set_nmfs(ecm) - if ecm != null: - send_ecm(ecm, unit_caps) + if threat.tmod != 'fm': + if ecm != null: + send_ecm(ecm, unit_caps) + return + var th_fm_dict: Dictionary + var fs_index_arr: Array + prd.find_fs_index(threat.aoa, threat.freq, fs_index_arr) + if fs_index_arr.size() == 0: + if ecm != null: + send_ecm(ecm, unit_caps) + return + var fs_index = fs_index_arr[0] + var nmfs = prd.FS_PRD[fs_index][1] + if ecm == null: + for ecm_i in ecms.values(): + if nmfs != ecm_i.nmfs: continue + if ecm_i.svk != 1: continue + ecm = ecm_i + if ecm == null: return + + for th_index in thrs_dict: + if thrs_dict[th_index].tmod != 'fm': continue + fs_index_arr = [] + prd.find_fs_index(thrs_dict[th_index].aoa, thrs_dict[th_index].freq, fs_index_arr) + if fs_index_arr.size() == 0: continue + if fs_index_arr[0] != fs_index: continue + th_fm_dict[th_index] = thrs_dict[th_index] + if len(th_fm_dict) > 1: + pass + send_ecm(ecm, unit_caps) + + +func get_freq_range(freq_range_dict: Dictionary, th_dict: Dictionary): + for key_i in th_dict: + var min_range: int = 6000 + var key_min = null + for key_j in th_dict: + if key_i == key_j: continue + var width = (th_dict[key_i].width / 2) + (th_dict[key_j].width / 2) + var freq_range = abs(th_dict[key_i].freq - th_dict[key_j].freq) + width + if freq_range < min_range: + key_min = key_j + min_range = freq_range + var max_width = 0 + for key in PDCHM_PARAMS['files'].keys(): + if max_width < key: max_width = key + if min_range > max_width: + th_dict.erase(key_i) + continue + else: + if key_min == null: continue + freq_range_dict[key_i] = [th_dict[key_i], th_dict[key_min], min_range] func find_threat(freq: int, aoa: float): @@ -613,11 +649,12 @@ func set_rparams(threat: threats.Threat, params: Dictionary): params['freq'] = threat.rparams['freq'] else: params['freq'] = threat.freq + if threat.rparams.has('period'): + params['period'] = threat.rparams['period'] if threat.rparams.has('width'): - params['width'] = threat.rparams['width'] * 1.5 + params['width'] = threat.rparams['width'] else: - params['width'] = threat.width * 1.5 - check_width(params) + params['width'] = threat.width if threat.rparams.has('filename'): params['filename'] = threat.rparams['filename'] @@ -640,7 +677,6 @@ func get_krp(threat: threats.Threat): func on_interfer_off(ecm: Interfer, ecms): var sz = ecms.size() - signaller.emit_signal('on_prog_ecm_off', ecm) ecms.erase(ecm.ispp) thrs.erase(ecm.ispp) interfer.cu.erase(ecm.ispp) @@ -676,20 +712,3 @@ func call_ecm_proc(ecm): func on_update_fs_closed(fs_dict): fs_closed = fs_dict - - -func set_th_emit(th: threats.Threat, ecm: Interfer): - var freq_min = ecm.params['freq'] - ecm.params.get('width', settings.WIDTH_MAX)/2 - var freq_max = ecm.params['freq'] + ecm.params.get('width', settings.WIDTH_MAX)/2 - if (th.freq >= freq_min) and (th.freq <= freq_max): - if ecm.svk == 1: - th.emit_state = 2 - elif th.emit_state == 2: - return - else: - th.emit_state = 1 - - -func check_width(param: Dictionary): - if (param['width'] < settings.WIDTH_MIN): param['width'] = settings.WIDTH_MIN - elif (param['width'] > settings.WIDTH_MAX): param['width'] = settings.WIDTH_MAX diff --git a/scripts/network.gd b/scripts/network.gd index dd0d31b4..18fa8d32 100644 --- a/scripts/network.gd +++ b/scripts/network.gd @@ -402,7 +402,7 @@ func _process(_delta: float) -> void: RenderingServer.global_shader_parameter_set('tick_curent', tick) for unit_name: StringName in units_udptx: var unit_udptx: = units_udptx[unit_name] - if Error.OK == unit_udptx.process(tick): + while (Error.OK == unit_udptx.process(tick)): var sock: = send_sockets[unit_name] var tx_data: = unit_udptx.tx_data.slice(0, unit_udptx.tx_len) var dst_port: = dst_ports[unit_name] diff --git a/scripts/settings.gd b/scripts/settings.gd index 15d0ddc8..17e62c9d 100644 --- a/scripts/settings.gd +++ b/scripts/settings.gd @@ -51,7 +51,7 @@ var UnitProfiles: Dictionary[StringName, Array] = { \ const FREQ_MAX: = 6000.0 const FREQ_MIN: = 400.0 const WIDTH_MAX: = 120.0 -const WIDTH_MIN: = 5.0 +const WIDTH_MIN: = 0.0 const DUR_MAX: = 1000000.0 const PERIOD_MAX: = 1000000.0 const UM_MIN: = -5.0 diff --git a/scripts/signaller.gd b/scripts/signaller.gd index 434df1ea..7746fc08 100644 --- a/scripts/signaller.gd +++ b/scripts/signaller.gd @@ -30,8 +30,6 @@ signal режим_журнал() ## Вызывается при переходе в режим [b]ЭМС[/b]. signal режим_эмс() -## Вызывается при переходе в режим [b]ЭМС ТГ[/b]. -signal режим_эмс2() ## Вызывается при переходе в режим [b]Настройка[/b]. signal режим_настройки() diff --git a/scripts/tcp5p28.gd b/scripts/tcp5p28.gd index a86f7755..999c2125 100644 --- a/scripts/tcp5p28.gd +++ b/scripts/tcp5p28.gd @@ -29,9 +29,9 @@ const MOD_TYPES: Array = [ const CU_STATE: Dictionary = { 0: 2, # Подготовка к выполнению 1: 1, # Выполняется - 2: 3, # Ошибка в команде + 2: 9, # Ошибка в команде 3: 7, # Занят выполнением другого ЦУ - 4: 2, # Неисправность + 4: 9, # Неисправность } class TCP5P28 extends unit.Unit: @@ -135,7 +135,7 @@ class TCP5P28 extends unit.Unit: continue var cu = ecms[id] cu_data.encode_u16(0, cu.ispp) - var state: int = CU_STATE[cu.svk] if CU_STATE.has(cu.svk) else 8 + var state: int = CU_STATE[cu.svk] if CU_STATE.has(cu.svk) else 9 cu_data.encode_u8(2, state) # Состояние выполнения команды cu_data.encode_u8(3, 0xFF) # Эффективность работы помехи data.append_array(cu_data) diff --git a/scripts/threats.gd b/scripts/threats.gd index 1070cd29..28f6dea5 100644 --- a/scripts/threats.gd +++ b/scripts/threats.gd @@ -28,9 +28,6 @@ class Threat: var width: float ## Ширина занимаемого диапазона частот, МГц. var selected: bool ## Флаг, что цель выбрана. var auto_selected: bool = false ## Флаг автомата для целей - var emit_state: int = 0 ## 0 - подавление не назначено, 1 - назначено, 2 - выполняется - var nmfs: int ## Индекс модуля ФС, в зону действия которого попала цель - var priority: int ## Приоритет опасности цели func _init(): clear_fflags() func _to_string() -> String: return 'номер: %d пеленг: %0.1f частота: %0.1f МГц' % [id, aoa, freq] @@ -143,10 +140,6 @@ func on_data_capsrpb_received(unit: capsrpb.CapsRpb, threats: Dictionary): th.clear_fflags() th.set_from_dic(dic_th) th.tick_rx = unit.tick - if th.fflags.proto and th.proto != '': - th.priority = 1 - else: - th.priority = 0 call_deferred('emit_signal', 'threat_update', th) else: var th: = Threat.new() diff --git a/scripts/trassa.gd b/scripts/trassa.gd index d9b0fbf6..bd94b610 100644 --- a/scripts/trassa.gd +++ b/scripts/trassa.gd @@ -35,10 +35,6 @@ class Trassa extends unit.Unit: [2000, 6000, 500, 100], [3500, 6000, 524, 50], [390, 6000, 374, 50*7]] - var lfb = 0 - var hfb = 0 - var dap = 0 - var daa = 0 # Инициализация func _init(nm: StringName, buttons: Array = []) -> void: @@ -109,10 +105,10 @@ class Trassa extends unit.Unit: if txe == true or rxe == true: sector_data["draw"] = true if data.has("lfb") and data.has("hfb") and data.has("dap") and data.has("daa"): - lfb = int(data["lfb"]) - hfb = int(data["hfb"]) - dap = int(data["dap"]) - daa = int(data["daa"]) + var lfb = int(data["lfb"]) + var hfb = int(data["hfb"]) + var dap = int(data["dap"]) + var daa = int(data["daa"]) for i in range(set_klaster.size()): var mapping = set_klaster[i] if lfb == mapping[0] and hfb == mapping[1]: diff --git a/shaders/antenas.tres b/shaders/antenas.tres index 1dd2f46b..2c689e09 100644 --- a/shaders/antenas.tres +++ b/shaders/antenas.tres @@ -7,9 +7,6 @@ code = "shader_type canvas_item; #define RADIUS_INNER_0 200.0 /* Радиус внутренний для режима приоритет РТО */ #define RADIUS_INNER_1 480.0 /* Радиус внутренний для режима приоритет РЛС */ -#define ANTENAS_COUNT 28 /* Количество антенн */ -#define ANT_BAND_READY 1U /* Антенна (модуль ФС) готова или исправна */ -#define ANT_BAND_FAILED 0U /* Антенна (модуль ФС) не исправно */ uniform vec2 pc0 = vec2(560, 560); /* Центр сетки антенн */ uniform float rotation: hint_range(0.0, 360.0) = 0.0; /* */ @@ -17,13 +14,9 @@ uniform vec4 color0: source_color = vec4(0.38, 0.47, 0.51, 0.4); uniform vec4 color1: source_color = vec4(0.39, 0.44, 0.50, 0.4); uniform float radius_inner_0 = RADIUS_INNER_0; uniform float radius_inner_1 = RADIUS_INNER_1; -uniform float radius_outter = 550.0; /* Радиус внешний. Должно быть равно ant_band_r1_6 */ +uniform float radius_outter = 550.0; /* Радиус внешний. Должно быть равно ant_band_r1_6 */ uniform float alpha: hint_range(0.0, 1.0) = 0.5; -uniform int mode = 0; /* Режим отображения. Приоритет РТО - 0, приоритет РЛС - 1 */ -uniform float ffr: hint_range(0.0, 1.0) = 0.2; /* Индикация неисправности модулей ФС. Заметность штриховки. */ -uniform float sfr: hint_range(0.0, 10.0) = 0.0; /* Индикация неисправности модулей ФС. Скорость движения штрховки */ -uniform float afr: hint_range(0.0, 180.0) = 0.0; /* Индикация неисправности модулей ФС. Наклон штрховки */ -uniform float pfr: hint_range(1.0, 20.0) = 10.0; /* Индикация неисправности модулей ФС. Частота штриховки */ +uniform int mode = 0; /* Режим отображения. Приоритет РТО - 0, приоритет РЛС - 1 */ const int ant_band_count_0 = 2; const int ant_band_count_1 = 2; @@ -49,8 +42,7 @@ const float ant_band_r1_4[] = {450.0, 530.0}; const float ant_band_r1_5[] = {500.0, 540.0}; const float ant_band_r1_6[] = {550.0, 550.0}; -uniform vec4 ant_band_c[ANTENAS_COUNT]; -uniform uint ant_band_m[ANTENAS_COUNT]; +uniform vec4 ant_band_c[28]; const float d4 = 90.0; const float ds = 1.0; @@ -87,12 +79,6 @@ void antenas(inout vec4 c, vec2 uv, vec2 p0, int cnt, float r0, float r1, inout col.rgb = ant_band_c[j].rgb; index++; col.a = alpha + (random_timed(uv) - 0.5f) * ant_band_c[j].a; - if (ant_band_m[j] == ANT_BAND_FAILED) - { - vec2 uvr = uv; - rotate_vec2(uvr, radians(afr), pc0); - col.a *= (1.0 - ffr) + tanh(10.0 * sin(TIME * sfr + 2.0 * PI * uvr.x / pfr)) * ffr; - } float v = float(i & 1); vec4 color = v * col + (1.0f - v) * col; sector(c, uv, p0, float(i) * da, da, r0, r1, color); @@ -134,9 +120,4 @@ shader_parameter/radius_inner_1 = 480.0 shader_parameter/radius_outter = 550.0 shader_parameter/alpha = 0.5 shader_parameter/mode = 0 -shader_parameter/ffr = 0.2 -shader_parameter/sfr = 0.0 -shader_parameter/afr = 0.0 -shader_parameter/pfr = 10.0 shader_parameter/ant_band_c = PackedVector4Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0) -shader_parameter/ant_band_m = PackedInt32Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1) diff --git a/shaders/blur.gdshader b/shaders/blur.gdshader new file mode 100644 index 00000000..3934e950 --- /dev/null +++ b/shaders/blur.gdshader @@ -0,0 +1,9 @@ +// A Gaussian blur shader for Godot 4.3 +shader_type canvas_item; +uniform sampler2D SCREEN_TEXTURE : hint_screen_texture, filter_linear_mipmap; +uniform float lod: hint_range(0.0, 3.0) = 2.0; + +void fragment() +{ + COLOR.rgb = texture(SCREEN_TEXTURE, SCREEN_UV, lod).rgb; +} diff --git a/shaders/blur.gdshader.uid b/shaders/blur.gdshader.uid new file mode 100644 index 00000000..4cbd52a6 --- /dev/null +++ b/shaders/blur.gdshader.uid @@ -0,0 +1 @@ +uid://qe0q7aqqbe4u diff --git a/shaders/two-color.gdshader b/shaders/two-color.gdshader index 570725e2..fd0f624b 100644 --- a/shaders/two-color.gdshader +++ b/shaders/two-color.gdshader @@ -1,7 +1,7 @@ shader_type canvas_item; -uniform vec3 grey = vec3(0.14, 0.13, 0.13); -uniform vec3 orange = vec3(0.95, 0.55, 0.05); +uniform vec3 white = vec3(0.14, 0.13, 0.13); +uniform vec3 black = vec3(0.95, 0.55, 0.05); uniform float gamma = 2.0; vec3 bw_to_2color(vec3 c, vec3 dark, vec3 light) @@ -13,5 +13,5 @@ vec3 bw_to_2color(vec3 c, vec3 dark, vec3 light) void fragment() { - COLOR.rgb = bw_to_2color(texture(TEXTURE, UV).rgb, grey, orange); + COLOR.rgb = bw_to_2color(texture(TEXTURE, UV).rgb, white, black); } diff --git a/table/color-picker.tscn b/table/color-picker.tscn new file mode 100644 index 00000000..458b07ef --- /dev/null +++ b/table/color-picker.tscn @@ -0,0 +1,5 @@ +[gd_scene format=3 uid="uid://cy6jtnr8jhwtk"] + +[node name="ColorPickerButton" type="ColorPickerButton"] +offset_right = 64.0 +offset_bottom = 24.0 diff --git a/table/nine-patch.png.import b/table/nine-patch.png.import index 2d8c80aa..f8aba14a 100644 --- a/table/nine-patch.png.import +++ b/table/nine-patch.png.import @@ -2,7 +2,7 @@ importer="texture" type="CompressedTexture2D" -uid="uid://bw3yv3smvaxqn" +uid="uid://vqajxsh5xamt" path="res://.godot/imported/nine-patch.png-798f7950fb3126b4e1ed0c39d9e4beba.ctex" metadata={ "vram_texture": false diff --git a/table/table.gd b/table/table.gd index f17dbfe2..2379d434 100644 --- a/table/table.gd +++ b/table/table.gd @@ -325,9 +325,7 @@ func _set_row_selected(i_row: int, selected: bool = true) -> void: var selector = nodes[selector_key] nodes.erase(selector_key) if is_instance_valid(selector): - var prnt = selector.get_parent_control() - if prnt: - prnt.remove_child(selector) + node.remove_child(selector) selector.queue_free() else: push_warning('обращение к удалённому элементу \"%s\"' % selector_key) @@ -391,13 +389,17 @@ func add_row(row_types: Array) -> void: add_child(node) if allow_set_size: node.custom_minimum_size.x = columns_min_size[i_col] - node.size.x = columns_min_size[i_col] + node.set_deferred('size', Vector2(columns_min_size[i_col], node.size.y)) nodes[node_key] = node var conn = Callable(self, '_on_focus_entered').bind(node) node.connect('focus_entered', conn) set_node_meta(i_col, i_row, 'callable_focus_entered', conn) +func _set_size_x_defered(node: Control, val: int): + node.size.x = val + + ## func _on_focus_entered(node): var indexes = get_key_indexes(node.name)