Рефактор.
|
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 3.3 KiB |
|
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 3.0 KiB |
|
Before Width: | Height: | Size: 4.9 KiB After Width: | Height: | Size: 4.1 KiB |
|
Before Width: | Height: | Size: 5.4 KiB After Width: | Height: | Size: 4.5 KiB |
|
Before Width: | Height: | Size: 4.6 KiB After Width: | Height: | Size: 3.8 KiB |
|
Before Width: | Height: | Size: 4.5 KiB After Width: | Height: | Size: 3.6 KiB |
|
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 3.1 KiB |
|
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 2.9 KiB |
|
Before Width: | Height: | Size: 4.9 KiB After Width: | Height: | Size: 4.1 KiB |
|
Before Width: | Height: | Size: 5.4 KiB After Width: | Height: | Size: 4.5 KiB |
|
Before Width: | Height: | Size: 4.6 KiB After Width: | Height: | Size: 3.9 KiB |
|
Before Width: | Height: | Size: 4.5 KiB After Width: | Height: | Size: 3.7 KiB |
|
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 3.0 KiB |
|
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 7.8 KiB |
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 16 KiB |
BIN
data/Приём.png
|
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 3.7 KiB |
|
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 2.5 KiB |
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.7 KiB |
|
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 6.1 KiB After Width: | Height: | Size: 4.3 KiB |
@@ -8,7 +8,7 @@ const TableHeader = preload('res://table/header.tscn') ## Ячейка за
|
||||
const TABLE_HEADER = [ TableHeader, TableHeader, TableHeader , TableHeader ] ## Описание ряда заголовка.
|
||||
const TABLE_ROW = [ CellLineEdit, CellLineEdit, CellLineEdit , CellLineEdit ] ## Описание ряда.
|
||||
const TABLE_HEADERS_TEXT = ['№', 'Название', 'Пеленг', 'Состояние' ] ## Заголовки таблицы.
|
||||
const TABLE_COLUMN_SIZE = [ 65, 100, 95, 185 ] ## Ширины колонок.
|
||||
const TABLE_COLUMN_SIZE = [ 65, 100, 90, 170 ] ## Ширины колонок.
|
||||
|
||||
## Состояние выполнения сеанса помехи
|
||||
const INTERFER_STATE = {
|
||||
|
||||
@@ -373,7 +373,7 @@ func _process(delta) -> void:
|
||||
remove_child(req)
|
||||
req.queue_free()
|
||||
_req_count -= 1
|
||||
push_error('запрос \"%s\" не отправлен' % tile.url)
|
||||
push_error('запрос \"%s\" не отправлен' % tile.url) #TODO: For Deugs
|
||||
if _queue.is_empty():
|
||||
emit_signal('load_completed')
|
||||
|
||||
@@ -727,7 +727,7 @@ func blend_mask(val: bool) -> void:
|
||||
|
||||
|
||||
func update_coordinates_label(lon: float, lat: float) -> void:
|
||||
coordinates_label = 'Координаты: NS: %f, EW: %f' % [lat, lon]
|
||||
coordinates_label = 'Координаты: NS:%f, EW:%f' % [lat, lon]
|
||||
signaller.emit_signal('update_coordinates_map', coordinates_label)
|
||||
|
||||
|
||||
|
||||
@@ -1,37 +1,90 @@
|
||||
@tool
|
||||
|
||||
extends TextureButton
|
||||
|
||||
@onready var tween: Tween
|
||||
@export var state_colors: Array
|
||||
|
||||
func _on_toggled(toggled_on): $frame.visible = toggled_on
|
||||
|
||||
func _ready():
|
||||
toggle_mode = true
|
||||
focus_mode = Control.FOCUS_ALL
|
||||
connect("focus_entered", _on_focus_entered)
|
||||
connect("focus_exited", _on_focus_exited)
|
||||
|
||||
|
||||
func _enter_tree() -> void:
|
||||
$label.self_modulate = state_colors[state]
|
||||
ProjectSettings.connect('settings_changed', _on_settings_changed)
|
||||
if has_node("label"):
|
||||
$label.self_modulate = state_colors[state]
|
||||
|
||||
|
||||
func _exit_tree() -> void:
|
||||
ProjectSettings.disconnect('settings_changed', _on_settings_changed)
|
||||
func update_progress_bar(target_value) -> void:
|
||||
if tween:
|
||||
tween.kill()
|
||||
tween = create_tween()
|
||||
tween.tween_property($control_progress, "value", target_value, 0.3)
|
||||
|
||||
|
||||
func _on_settings_changed():
|
||||
if not is_inside_tree(): return
|
||||
var white_color = ProjectSettings.get_setting('Схема прибора. Белый цвет', Color.LIGHT_GRAY)
|
||||
var black_color = ProjectSettings.get_setting('Схема прибора. Чёрный цвет', Color.BLACK)
|
||||
$pic_functional.material.set('shader_parameter/white', white_color)
|
||||
$pic_functional.material.set('shader_parameter/black', black_color)
|
||||
func _on_toggled(toggled_on):
|
||||
if has_node("frame"):
|
||||
$frame.visible = toggled_on
|
||||
|
||||
|
||||
func _on_focus_entered():
|
||||
button_pressed = true
|
||||
#enter_press() TODO: Пока что без выбора прибора
|
||||
|
||||
|
||||
func _on_focus_exited():
|
||||
pass
|
||||
|
||||
|
||||
func enter_press():
|
||||
var enter_event = InputEventAction.new()
|
||||
enter_event.action = "ui_accept"
|
||||
enter_event.pressed = true
|
||||
Input.parse_input_event(enter_event)
|
||||
|
||||
|
||||
@export var state: int:
|
||||
set(v):
|
||||
v = 0 if v < 0 else v % state_colors.size()
|
||||
state = v
|
||||
if is_inside_tree():
|
||||
if is_inside_tree() and has_node("label"):
|
||||
$label.self_modulate = state_colors[v]
|
||||
|
||||
|
||||
@export var progress_value: float = 0.0:
|
||||
set(v):
|
||||
progress_value = v
|
||||
|
||||
if is_inside_tree():
|
||||
update_progress_bar(v)
|
||||
var max_val = $control_progress.get('max_value')
|
||||
var percentage = (v / max_val) * 100.0
|
||||
$control_progress.tooltip_text = 'Процесс контроля %01d%%' % percentage
|
||||
|
||||
|
||||
@export var progress_visible: bool:
|
||||
set(v):
|
||||
progress_visible = v
|
||||
if is_inside_tree():
|
||||
$control_progress.visible = v
|
||||
|
||||
|
||||
@export var progress_max_value: int:
|
||||
set(v):
|
||||
progress_max_value = v
|
||||
if is_inside_tree():
|
||||
$control_progress.max_value = v
|
||||
|
||||
|
||||
@export var progress_min_value: int:
|
||||
set(v):
|
||||
progress_min_value = v
|
||||
if is_inside_tree():
|
||||
$control_progress.min_value = v
|
||||
|
||||
|
||||
@export var show_functional: bool:
|
||||
set(v):
|
||||
show_functional = v
|
||||
|
||||
@@ -306,36 +306,36 @@ vertical_alignment = 1
|
||||
|
||||
[node name="coordinates_map" type="Label" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 654.0
|
||||
offset_top = -23.0
|
||||
offset_right = 766.0
|
||||
offset_bottom = -4.0
|
||||
offset_left = 660.0
|
||||
offset_top = -24.0
|
||||
offset_right = 772.0
|
||||
offset_bottom = -5.0
|
||||
text = "Координаты:"
|
||||
|
||||
[node name="scale_map" type="Label" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 1009.0
|
||||
offset_top = -23.0
|
||||
offset_right = 1119.0
|
||||
offset_bottom = -2.0
|
||||
offset_left = 1003.0
|
||||
offset_top = -24.0
|
||||
offset_right = 1113.0
|
||||
offset_bottom = -3.0
|
||||
text = "Масштаб:"
|
||||
|
||||
[node name="zoom_plus" type="Button" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 952.0
|
||||
offset_top = 43.0
|
||||
offset_right = 984.0
|
||||
offset_bottom = 75.0
|
||||
offset_left = 1056.0
|
||||
offset_top = 230.0
|
||||
offset_right = 1088.0
|
||||
offset_bottom = 262.0
|
||||
theme_override_fonts/font = SubResource("SystemFont_5ffal")
|
||||
theme_override_font_sizes/font_size = 20
|
||||
text = "+"
|
||||
|
||||
[node name="zoom_minus" type="Button" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 952.0
|
||||
offset_top = 84.0
|
||||
offset_right = 984.0
|
||||
offset_bottom = 116.0
|
||||
offset_left = 1056.0
|
||||
offset_top = 270.0
|
||||
offset_right = 1088.0
|
||||
offset_bottom = 302.0
|
||||
theme_override_font_sizes/font_size = 20
|
||||
text = "−"
|
||||
|
||||
@@ -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_button_up"]
|
||||
[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_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"]
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://hkcvl2waf63s" path="res://data/вид сверху.png" id="1_b7vcf"]
|
||||
[ext_resource type="Script" uid="uid://bvlqgv7aapebl" path="res://scenes/эмс2/эмс_тг.gd" id="1_l3ueu"]
|
||||
[ext_resource type="Texture2D" uid="uid://b1dw06ahtftq2" path="res://data/Окно частот0.png" id="3_2spgl"]
|
||||
[ext_resource type="Texture2D" uid="uid://0w6q4vfst0ry" path="res://data/OP-63.png" id="3_8gk36"]
|
||||
[ext_resource type="Texture2D" uid="uid://coxhivvc6uibs" path="res://data/Состояние РЭС 40.png" id="4_b3mus"]
|
||||
[ext_resource type="Texture2D" uid="uid://073el51yholj" path="res://data/454.png" id="4_nqi0i"]
|
||||
@@ -34,7 +33,11 @@
|
||||
[ext_resource type="Texture2D" uid="uid://carr8bw5rwiwj" path="res://data/Кнопка подтверждения01.png" id="32_p41nv"]
|
||||
[ext_resource type="Texture2D" uid="uid://3siondd3feev" path="res://data/Скруглённый прямоугольник белый.png" id="33_5ifkb"]
|
||||
|
||||
[sub_resource type="CompressedTexture2D" id="CompressedTexture2D_5u4bk"]
|
||||
load_path = "res://.godot/imported/Окно частот0.png-6b01791c971bddb01337caf9077bf060.ctex"
|
||||
|
||||
[sub_resource type="CompressedTexture2D" id="CompressedTexture2D_l3ueu"]
|
||||
load_path = "res://.godot/imported/Скруглённый квадрат серый.png-4655829309cca3b1dec2c9ae01376d54.ctex"
|
||||
|
||||
[node name="Panel" type="Panel"]
|
||||
script = ExtResource("1_l3ueu")
|
||||
@@ -53,7 +56,7 @@ offset_top = 240.0
|
||||
offset_right = 1649.0
|
||||
offset_bottom = 813.0
|
||||
scale = Vector2(0.95, 0.95)
|
||||
texture = ExtResource("3_2spgl")
|
||||
texture = SubResource("CompressedTexture2D_5u4bk")
|
||||
expand_mode = 1
|
||||
|
||||
[node name="Op-63" type="TextureRect" parent="."]
|
||||
@@ -66,13 +69,13 @@ scale = Vector2(0.312207, 0.312207)
|
||||
texture = ExtResource("3_8gk36")
|
||||
|
||||
[node name="СостояниеРэс44" type="Sprite2D" parent="Op-63"]
|
||||
position = Vector2(285.067, 253.037)
|
||||
scale = Vector2(2.1, 2.1)
|
||||
position = Vector2(277.772, 259.444)
|
||||
scale = Vector2(1.77945, 1.77945)
|
||||
texture = ExtResource("4_b3mus")
|
||||
|
||||
[node name="СостояниеРэс24" type="Sprite2D" parent="Op-63"]
|
||||
position = Vector2(285.067, 150.541)
|
||||
scale = Vector2(2.1, 2.1)
|
||||
position = Vector2(277.772, 192.18)
|
||||
scale = Vector2(1.77945, 1.77945)
|
||||
texture = ExtResource("5_yqn2y")
|
||||
|
||||
[node name="СостояниеРэс2" type="Sprite2D" parent="Op-63"]
|
||||
@@ -91,18 +94,18 @@ scale = Vector2(0.312, 0.312)
|
||||
texture = ExtResource("4_nqi0i")
|
||||
|
||||
[node name="СостояниеРэс45" type="Sprite2D" parent="454"]
|
||||
position = Vector2(287.571, 253.205)
|
||||
scale = Vector2(2.1, 2.1)
|
||||
position = Vector2(277.956, 259.615)
|
||||
scale = Vector2(1.78063, 1.78063)
|
||||
texture = ExtResource("4_b3mus")
|
||||
|
||||
[node name="СостояниеРэс25" type="Sprite2D" parent="454"]
|
||||
position = Vector2(287.571, 153.847)
|
||||
scale = Vector2(2.1, 2.1)
|
||||
position = Vector2(277.956, 192.308)
|
||||
scale = Vector2(1.78063, 1.78063)
|
||||
texture = ExtResource("5_yqn2y")
|
||||
|
||||
[node name="СостояниеРэс3" type="Sprite2D" parent="454"]
|
||||
position = Vector2(285.256, 41.6667)
|
||||
scale = Vector2(4, 4)
|
||||
position = Vector2(275.641, 38.4615)
|
||||
scale = Vector2(3.20513, 3.20513)
|
||||
texture = ExtResource("6_m57px")
|
||||
|
||||
[node name="lbl_trassa" type="Label" parent="454"]
|
||||
@@ -117,25 +120,25 @@ text = "Трасса"
|
||||
[node name="Го" type="TextureRect" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 488.0
|
||||
offset_top = 84.0
|
||||
offset_top = 85.0
|
||||
offset_right = 701.0
|
||||
offset_bottom = 376.0
|
||||
offset_bottom = 377.0
|
||||
scale = Vector2(0.312, 0.312)
|
||||
texture = ExtResource("5_e7tlv")
|
||||
|
||||
[node name="СостояниеРэс40" type="Sprite2D" parent="Го"]
|
||||
position = Vector2(287.66, 253.205)
|
||||
scale = Vector2(2.1, 2.1)
|
||||
position = Vector2(278.045, 253.205)
|
||||
scale = Vector2(1.78063, 1.78063)
|
||||
texture = ExtResource("4_b3mus")
|
||||
|
||||
[node name="СостояниеРэс20" type="Sprite2D" parent="Го"]
|
||||
position = Vector2(287.66, 150.641)
|
||||
scale = Vector2(2.1, 2.1)
|
||||
position = Vector2(278.045, 185.897)
|
||||
scale = Vector2(1.78063, 1.78063)
|
||||
texture = ExtResource("5_yqn2y")
|
||||
|
||||
[node name="СостояниеЭмсСлабыйСигнал" type="Sprite2D" parent="Го"]
|
||||
position = Vector2(284.455, 38.4619)
|
||||
scale = Vector2(4, 3.796)
|
||||
position = Vector2(278.045, 118.59)
|
||||
scale = Vector2(3.37683, 3.20513)
|
||||
texture = ExtResource("9_5u4bk")
|
||||
|
||||
[node name="Рлс1" type="TextureRect" parent="."]
|
||||
@@ -148,18 +151,18 @@ scale = Vector2(0.312, 0.312)
|
||||
texture = ExtResource("6_y58bl")
|
||||
|
||||
[node name="СостояниеРэс41" type="Sprite2D" parent="Рлс1"]
|
||||
position = Vector2(287.661, 253.205)
|
||||
scale = Vector2(2.1, 2.1)
|
||||
position = Vector2(278.045, 259.615)
|
||||
scale = Vector2(1.78063, 1.78063)
|
||||
texture = ExtResource("4_b3mus")
|
||||
|
||||
[node name="СостояниеРэс21" type="Sprite2D" parent="Рлс1"]
|
||||
position = Vector2(287.661, 153.846)
|
||||
scale = Vector2(2.1, 2.1)
|
||||
position = Vector2(278.045, 192.308)
|
||||
scale = Vector2(1.78063, 1.78063)
|
||||
texture = ExtResource("5_yqn2y")
|
||||
|
||||
[node name="СостояниеЭмсСлабыйСигнал2" type="Sprite2D" parent="Рлс1"]
|
||||
position = Vector2(287.66, 38.4615)
|
||||
scale = Vector2(4, 3.796)
|
||||
position = Vector2(278.045, 125)
|
||||
scale = Vector2(3.37683, 3.20513)
|
||||
texture = ExtResource("9_5u4bk")
|
||||
|
||||
[node name="Рлс2" type="TextureRect" parent="."]
|
||||
@@ -172,37 +175,37 @@ scale = Vector2(0.312, 0.312)
|
||||
texture = ExtResource("7_mxw8g")
|
||||
|
||||
[node name="СостояниеРэс42" type="Sprite2D" parent="Рлс2"]
|
||||
position = Vector2(287.661, 253.205)
|
||||
scale = Vector2(2.1, 2.1)
|
||||
position = Vector2(278.045, 259.615)
|
||||
scale = Vector2(1.78063, 1.78063)
|
||||
texture = ExtResource("4_b3mus")
|
||||
|
||||
[node name="СостояниеРэс22" type="Sprite2D" parent="Рлс2"]
|
||||
position = Vector2(287.661, 153.846)
|
||||
scale = Vector2(2.1, 2.1)
|
||||
position = Vector2(278.045, 192.308)
|
||||
scale = Vector2(1.78063, 1.78063)
|
||||
texture = ExtResource("5_yqn2y")
|
||||
|
||||
[node name="СостояниеЭмсСлабыйСигнал3" type="Sprite2D" parent="Рлс2"]
|
||||
position = Vector2(287.66, 38.4615)
|
||||
scale = Vector2(4, 3.796)
|
||||
position = Vector2(278.045, 125)
|
||||
scale = Vector2(3.37683, 3.20513)
|
||||
texture = ExtResource("9_5u4bk")
|
||||
|
||||
[node name="Ннвс" type="TextureRect" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 1240.0
|
||||
offset_top = 84.0
|
||||
offset_top = 88.0
|
||||
offset_right = 1453.0
|
||||
offset_bottom = 376.0
|
||||
offset_bottom = 380.0
|
||||
scale = Vector2(0.312, 0.312)
|
||||
texture = ExtResource("8_q16jd")
|
||||
|
||||
[node name="СостояниеРэс43" type="Sprite2D" parent="Ннвс"]
|
||||
position = Vector2(287.571, 253.205)
|
||||
scale = Vector2(2.1, 2.1)
|
||||
position = Vector2(277.956, 253.205)
|
||||
scale = Vector2(1.78063, 1.78063)
|
||||
texture = ExtResource("4_b3mus")
|
||||
|
||||
[node name="СостояниеРэс23" type="Sprite2D" parent="Ннвс"]
|
||||
position = Vector2(287.571, 153.846)
|
||||
scale = Vector2(2.1, 2.1)
|
||||
position = Vector2(277.956, 185.897)
|
||||
scale = Vector2(1.78063, 1.78063)
|
||||
texture = ExtResource("5_yqn2y")
|
||||
|
||||
[node name="УгловойКвадрат2" type="Sprite2D" parent="."]
|
||||
@@ -403,9 +406,9 @@ texture = SubResource("CompressedTexture2D_l3ueu")
|
||||
|
||||
[node name="Label" type="Label" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 799.0
|
||||
offset_left = 800.0
|
||||
offset_top = 246.0
|
||||
offset_right = 872.0
|
||||
offset_right = 873.0
|
||||
offset_bottom = 265.0
|
||||
theme_override_colors/font_color = Color(0, 0, 0, 1)
|
||||
theme_override_font_sizes/font_size = 16
|
||||
@@ -413,7 +416,7 @@ text = "Излучение"
|
||||
|
||||
[node name="Label2" type="Label" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 814.0
|
||||
offset_left = 813.0
|
||||
offset_top = 503.0
|
||||
offset_right = 861.0
|
||||
offset_bottom = 522.0
|
||||
@@ -481,52 +484,52 @@ theme_override_colors/font_color = Color(0, 0, 0, 1)
|
||||
text = "Изделие"
|
||||
|
||||
[node name="Label" type="Label" parent="СкруглённыйПрямоугСалатный"]
|
||||
offset_left = -33.7501
|
||||
offset_left = -33.0
|
||||
offset_top = -10.2857
|
||||
offset_right = 34.2499
|
||||
offset_bottom = 8.7143
|
||||
offset_right = 35.0
|
||||
offset_bottom = 8.71429
|
||||
theme_override_colors/font_color = Color(0, 0, 0, 1)
|
||||
text = "Комплекс"
|
||||
|
||||
[node name="Label3" type="Label" parent="СкруглённыйПрямоугСалатный"]
|
||||
offset_left = 132.75
|
||||
offset_top = -11.1428
|
||||
offset_right = 179.75
|
||||
offset_bottom = 11.8572
|
||||
offset_left = 133.0
|
||||
offset_top = -10.0
|
||||
offset_right = 180.0
|
||||
offset_bottom = 9.0
|
||||
theme_override_colors/font_color = Color(0, 0, 0, 1)
|
||||
text = "Режим"
|
||||
|
||||
[node name="Label4" type="Label" parent="СкруглённыйПрямоугСалатный"]
|
||||
offset_left = 210.751
|
||||
offset_left = 209.25
|
||||
offset_top = -10.2857
|
||||
offset_right = 259.751
|
||||
offset_right = 258.25
|
||||
offset_bottom = 8.7143
|
||||
theme_override_colors/font_color = Color(0, 0, 0, 1)
|
||||
text = "Азимут"
|
||||
|
||||
[node name="Label5" type="Label" parent="СкруглённыйПрямоугСалатный"]
|
||||
offset_left = 620.252
|
||||
offset_top = -23.1428
|
||||
offset_right = 699.252
|
||||
offset_bottom = 25.8572
|
||||
offset_left = 627.0
|
||||
offset_top = -20.5713
|
||||
offset_right = 693.0
|
||||
offset_bottom = 20.4287
|
||||
theme_override_colors/font_color = Color(0, 0, 0, 1)
|
||||
text = "Запрет
|
||||
передачи"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="Label6" type="Label" parent="СкруглённыйПрямоугСалатный"]
|
||||
offset_left = 518.251
|
||||
offset_top = -12.0
|
||||
offset_right = 576.251
|
||||
offset_bottom = 11.0
|
||||
offset_left = 516.75
|
||||
offset_top = -10.2857
|
||||
offset_right = 574.75
|
||||
offset_bottom = 8.7143
|
||||
theme_override_colors/font_color = Color(0, 0, 0, 1)
|
||||
text = "Верхняя"
|
||||
|
||||
[node name="Label7" type="Label" parent="СкруглённыйПрямоугСалатный"]
|
||||
offset_left = 440.0
|
||||
offset_top = -11.0
|
||||
offset_right = 494.0
|
||||
offset_bottom = 12.0
|
||||
offset_left = 441.0
|
||||
offset_top = -10.2857
|
||||
offset_right = 495.0
|
||||
offset_bottom = 8.7143
|
||||
theme_override_colors/font_color = Color(0, 0, 0, 1)
|
||||
text = "Нижняя"
|
||||
|
||||
@@ -539,14 +542,12 @@ theme_override_colors/font_color = Color(0, 0, 0, 1)
|
||||
text = "Кластер"
|
||||
|
||||
[node name="Label9" type="Label" parent="СкруглённыйПрямоугСалатный"]
|
||||
offset_left = 276.001
|
||||
offset_top = -20.5714
|
||||
offset_right = 350.001
|
||||
offset_bottom = 20.4286
|
||||
offset_left = 275.25
|
||||
offset_top = -10.2857
|
||||
offset_right = 349.25
|
||||
offset_bottom = 8.7143
|
||||
theme_override_colors/font_color = Color(0, 0, 0, 1)
|
||||
text = "Угол
|
||||
места"
|
||||
horizontal_alignment = 1
|
||||
text = "Угол места"
|
||||
|
||||
[node name="Label10" type="Label" parent="СкруглённыйПрямоугСалатный"]
|
||||
offset_left = 747.0
|
||||
|
||||
@@ -405,7 +405,7 @@ func _process(_delta: float) -> void:
|
||||
var sock: = send_sockets[unit_name]
|
||||
var dst_port: = dst_ports[unit_name]
|
||||
var dst_addr: = dst_addrs[unit_name]
|
||||
while (Error.OK == unit_udptx.process(tick)):
|
||||
while Error.OK == unit_udptx.process(tick):
|
||||
var tx_data: = unit_udptx.tx_data.slice(0, unit_udptx.tx_len)
|
||||
sock.send_to([dst_addr, dst_port], tx_data)
|
||||
for unit_name: StringName in units_udprx:
|
||||
|
||||