diff --git a/scenes/pribor-afsp-l/pribor-afsp-l.tscn b/scenes/pribor-afsp-l/pribor-afsp-l.tscn index 6f23471..c2a3b9d 100644 --- a/scenes/pribor-afsp-l/pribor-afsp-l.tscn +++ b/scenes/pribor-afsp-l/pribor-afsp-l.tscn @@ -17,6 +17,7 @@ patch_margin_right = 16 patch_margin_bottom = 16 [node name="ref_block_la1" type="NinePatchRect" parent="ref_A1_lpa"] +layout_mode = 0 offset_left = 32.0 offset_top = 70.0 offset_right = 332.0 @@ -28,6 +29,7 @@ patch_margin_right = 16 patch_margin_bottom = 16 [node name="ref_mshu1" parent="ref_A1_lpa/ref_block_la1" instance=ExtResource("2_wgsuv")] +layout_mode = 0 offset_left = 20.0 offset_top = 211.0 offset_right = 280.0 @@ -36,6 +38,7 @@ fname = "МШУ" rname = "А5" [node name="ref_mshu2" parent="ref_A1_lpa/ref_block_la1" instance=ExtResource("2_wgsuv")] +layout_mode = 0 offset_left = 20.0 offset_top = 89.0 offset_right = 280.0 @@ -44,6 +47,7 @@ fname = "МШУ" rname = "А2" [node name="ref_mshu3" parent="ref_A1_lpa/ref_block_la1" instance=ExtResource("2_wgsuv")] +layout_mode = 0 offset_left = 20.0 offset_top = 130.0 offset_right = 280.0 @@ -52,6 +56,7 @@ fname = "МШУ" rname = "А3" [node name="ref_mshu4" parent="ref_A1_lpa/ref_block_la1" instance=ExtResource("2_wgsuv")] +layout_mode = 0 offset_left = 20.0 offset_top = 171.0 offset_right = 280.0 @@ -60,6 +65,7 @@ fname = "МШУ" rname = "А4" [node name="ref_mshu5" parent="ref_A1_lpa/ref_block_la1" instance=ExtResource("2_wgsuv")] +layout_mode = 0 offset_left = 20.0 offset_top = 252.0 offset_right = 280.0 @@ -68,6 +74,7 @@ fname = "МШУ" rname = "А6" [node name="ref_mshu6" parent="ref_A1_lpa/ref_block_la1" instance=ExtResource("2_wgsuv")] +layout_mode = 0 offset_left = 20.0 offset_top = 48.0 offset_right = 280.0 @@ -76,6 +83,7 @@ fname = "МШУ" rname = "А1" [node name="ref_mshu7" parent="ref_A1_lpa/ref_block_la1" instance=ExtResource("2_wgsuv")] +layout_mode = 0 offset_left = 20.0 offset_top = 291.0 offset_right = 280.0 @@ -84,6 +92,7 @@ fname = "МШУ" rname = "А7" [node name="ref_mshu8" parent="ref_A1_lpa/ref_block_la1" instance=ExtResource("2_wgsuv")] +layout_mode = 0 offset_left = 20.0 offset_top = 334.0 offset_right = 280.0 @@ -100,6 +109,7 @@ offset_bottom = 41.0 text = "Модули ЛА6А45" [node name="ref_bpch" type="NinePatchRect" parent="ref_A1_lpa"] +layout_mode = 0 offset_left = 32.0 offset_top = 458.0 offset_right = 332.0 @@ -111,6 +121,7 @@ patch_margin_right = 16 patch_margin_bottom = 16 [node name="lbl_bpch" type="Label" parent="ref_A1_lpa/ref_bpch"] +layout_mode = 0 offset_left = 135.0 offset_top = 16.0 offset_right = 167.0 @@ -127,6 +138,7 @@ fname = "Модуль ОГ" rname = "А23" [node name="ref_geterodin" parent="ref_A1_lpa/ref_bpch" instance=ExtResource("2_wgsuv")] +layout_mode = 0 offset_left = 20.0 offset_top = 85.0 offset_right = 280.0 @@ -135,6 +147,7 @@ fname = "Гетеродин" rname = "А10" [node name="ref_block_la2" type="NinePatchRect" parent="ref_A1_lpa"] +layout_mode = 0 offset_left = 33.0 offset_top = 605.0 offset_right = 333.0 @@ -146,6 +159,7 @@ patch_margin_right = 16 patch_margin_bottom = 16 [node name="ref_mshu9" parent="ref_A1_lpa/ref_block_la2" instance=ExtResource("2_wgsuv")] +layout_mode = 0 offset_left = 20.0 offset_top = 48.0 offset_right = 280.0 @@ -154,6 +168,7 @@ fname = "МШУ" rname = "А9" [node name="ref_mshu10" parent="ref_A1_lpa/ref_block_la2" instance=ExtResource("2_wgsuv")] +layout_mode = 0 offset_left = 20.0 offset_top = 89.0 offset_right = 280.0 @@ -162,6 +177,7 @@ fname = "МШУ" rname = "А10" [node name="ref_mshu11" parent="ref_A1_lpa/ref_block_la2" instance=ExtResource("2_wgsuv")] +layout_mode = 0 offset_left = 20.0 offset_top = 130.0 offset_right = 280.0 @@ -170,6 +186,7 @@ fname = "МШУ" rname = "А11" [node name="ref_mshu12" parent="ref_A1_lpa/ref_block_la2" instance=ExtResource("2_wgsuv")] +layout_mode = 0 offset_left = 20.0 offset_top = 171.0 offset_right = 280.0 @@ -178,6 +195,7 @@ fname = "МШУ" rname = "А12" [node name="ref_mshu13" parent="ref_A1_lpa/ref_block_la2" instance=ExtResource("2_wgsuv")] +layout_mode = 0 offset_left = 20.0 offset_top = 211.0 offset_right = 280.0 @@ -186,6 +204,7 @@ fname = "МШУ" rname = "А13" [node name="ref_mshu14" parent="ref_A1_lpa/ref_block_la2" instance=ExtResource("2_wgsuv")] +layout_mode = 0 offset_left = 20.0 offset_top = 252.0 offset_right = 280.0 @@ -194,6 +213,7 @@ fname = "МШУ" rname = "А14" [node name="ref_mshu15" parent="ref_A1_lpa/ref_block_la2" instance=ExtResource("2_wgsuv")] +layout_mode = 0 offset_left = 20.0 offset_top = 291.0 offset_right = 280.0 @@ -202,6 +222,7 @@ fname = "МШУ" rname = "А15" [node name="ref_mshu16" parent="ref_A1_lpa/ref_block_la2" instance=ExtResource("2_wgsuv")] +layout_mode = 0 offset_left = 20.0 offset_top = 334.0 offset_right = 280.0 @@ -218,6 +239,7 @@ offset_bottom = 41.0 text = "Модули ЛА6А45" [node name="lbl_lpa" type="Label" parent="ref_A1_lpa"] +layout_mode = 0 offset_left = 169.0 offset_top = 28.0 offset_right = 197.0 @@ -225,6 +247,7 @@ offset_bottom = 52.0 text = "ЛПА" [node name="lbl_A" type="Label" parent="ref_A1_lpa"] +layout_mode = 0 offset_left = 302.0 offset_top = 16.0 offset_right = 330.0 @@ -243,6 +266,7 @@ patch_margin_right = 16 patch_margin_bottom = 16 [node name="ref_block_la1" type="NinePatchRect" parent="ref_A2_lpa"] +layout_mode = 0 offset_left = 32.0 offset_top = 70.0 offset_right = 332.0 @@ -254,6 +278,7 @@ patch_margin_right = 16 patch_margin_bottom = 16 [node name="ref_mshu1" parent="ref_A2_lpa/ref_block_la1" instance=ExtResource("2_wgsuv")] +layout_mode = 0 offset_left = 20.0 offset_top = 211.0 offset_right = 280.0 @@ -262,6 +287,7 @@ fname = "МШУ" rname = "А5" [node name="ref_mshu2" parent="ref_A2_lpa/ref_block_la1" instance=ExtResource("2_wgsuv")] +layout_mode = 0 offset_left = 20.0 offset_top = 89.0 offset_right = 280.0 @@ -270,6 +296,7 @@ fname = "МШУ" rname = "А2" [node name="ref_mshu3" parent="ref_A2_lpa/ref_block_la1" instance=ExtResource("2_wgsuv")] +layout_mode = 0 offset_left = 20.0 offset_top = 130.0 offset_right = 280.0 @@ -278,6 +305,7 @@ fname = "МШУ" rname = "А3" [node name="ref_mshu4" parent="ref_A2_lpa/ref_block_la1" instance=ExtResource("2_wgsuv")] +layout_mode = 0 offset_left = 20.0 offset_top = 171.0 offset_right = 280.0 @@ -286,6 +314,7 @@ fname = "МШУ" rname = "А4" [node name="ref_mshu5" parent="ref_A2_lpa/ref_block_la1" instance=ExtResource("2_wgsuv")] +layout_mode = 0 offset_left = 20.0 offset_top = 252.0 offset_right = 280.0 @@ -294,6 +323,7 @@ fname = "МШУ" rname = "А6" [node name="ref_mshu6" parent="ref_A2_lpa/ref_block_la1" instance=ExtResource("2_wgsuv")] +layout_mode = 0 offset_left = 20.0 offset_top = 48.0 offset_right = 280.0 @@ -302,6 +332,7 @@ fname = "МШУ" rname = "А1" [node name="ref_mshu7" parent="ref_A2_lpa/ref_block_la1" instance=ExtResource("2_wgsuv")] +layout_mode = 0 offset_left = 20.0 offset_top = 291.0 offset_right = 280.0 @@ -310,6 +341,7 @@ fname = "МШУ" rname = "А7" [node name="ref_mshu8" parent="ref_A2_lpa/ref_block_la1" instance=ExtResource("2_wgsuv")] +layout_mode = 0 offset_left = 20.0 offset_top = 334.0 offset_right = 280.0 @@ -326,6 +358,7 @@ offset_bottom = 41.0 text = "Модули ЛА6А45" [node name="ref_bpch" type="NinePatchRect" parent="ref_A2_lpa"] +layout_mode = 0 offset_left = 32.0 offset_top = 458.0 offset_right = 332.0 @@ -337,6 +370,7 @@ patch_margin_right = 16 patch_margin_bottom = 16 [node name="lbl_bpch" type="Label" parent="ref_A2_lpa/ref_bpch"] +layout_mode = 0 offset_left = 135.0 offset_top = 16.0 offset_right = 167.0 @@ -353,6 +387,7 @@ fname = "Модуль ОГ" rname = "А23" [node name="ref_geterodin" parent="ref_A2_lpa/ref_bpch" instance=ExtResource("2_wgsuv")] +layout_mode = 0 offset_left = 20.0 offset_top = 85.0 offset_right = 280.0 @@ -361,6 +396,7 @@ fname = "Гетеродин" rname = "А10" [node name="ref_block_la2" type="NinePatchRect" parent="ref_A2_lpa"] +layout_mode = 0 offset_left = 33.0 offset_top = 605.0 offset_right = 333.0 @@ -372,6 +408,7 @@ patch_margin_right = 16 patch_margin_bottom = 16 [node name="ref_mshu9" parent="ref_A2_lpa/ref_block_la2" instance=ExtResource("2_wgsuv")] +layout_mode = 0 offset_left = 20.0 offset_top = 48.0 offset_right = 280.0 @@ -380,6 +417,7 @@ fname = "МШУ" rname = "А9" [node name="ref_mshu10" parent="ref_A2_lpa/ref_block_la2" instance=ExtResource("2_wgsuv")] +layout_mode = 0 offset_left = 20.0 offset_top = 89.0 offset_right = 280.0 @@ -388,6 +426,7 @@ fname = "МШУ" rname = "А10" [node name="ref_mshu11" parent="ref_A2_lpa/ref_block_la2" instance=ExtResource("2_wgsuv")] +layout_mode = 0 offset_left = 20.0 offset_top = 130.0 offset_right = 280.0 @@ -396,6 +435,7 @@ fname = "МШУ" rname = "А11" [node name="ref_mshu12" parent="ref_A2_lpa/ref_block_la2" instance=ExtResource("2_wgsuv")] +layout_mode = 0 offset_left = 20.0 offset_top = 171.0 offset_right = 280.0 @@ -404,6 +444,7 @@ fname = "МШУ" rname = "А12" [node name="ref_mshu13" parent="ref_A2_lpa/ref_block_la2" instance=ExtResource("2_wgsuv")] +layout_mode = 0 offset_left = 20.0 offset_top = 211.0 offset_right = 280.0 @@ -412,6 +453,7 @@ fname = "МШУ" rname = "А13" [node name="ref_mshu14" parent="ref_A2_lpa/ref_block_la2" instance=ExtResource("2_wgsuv")] +layout_mode = 0 offset_left = 20.0 offset_top = 252.0 offset_right = 280.0 @@ -420,6 +462,7 @@ fname = "МШУ" rname = "А14" [node name="ref_mshu15" parent="ref_A2_lpa/ref_block_la2" instance=ExtResource("2_wgsuv")] +layout_mode = 0 offset_left = 20.0 offset_top = 291.0 offset_right = 280.0 @@ -428,6 +471,7 @@ fname = "МШУ" rname = "А15" [node name="ref_mshu16" parent="ref_A2_lpa/ref_block_la2" instance=ExtResource("2_wgsuv")] +layout_mode = 0 offset_left = 20.0 offset_top = 334.0 offset_right = 280.0 @@ -444,6 +488,7 @@ offset_bottom = 41.0 text = "Модули ЛА6А45" [node name="lbl_lpa" type="Label" parent="ref_A2_lpa"] +layout_mode = 0 offset_left = 169.0 offset_top = 28.0 offset_right = 197.0 @@ -451,6 +496,7 @@ offset_bottom = 52.0 text = "ЛПА" [node name="lbl_A" type="Label" parent="ref_A2_lpa"] +layout_mode = 0 offset_left = 302.0 offset_top = 16.0 offset_right = 330.0 diff --git a/scenes/pribor-rtr/pribor-rtr.tscn b/scenes/pribor-rtr/pribor-rtr.tscn index ebf0fe6..a58f09f 100644 --- a/scenes/pribor-rtr/pribor-rtr.tscn +++ b/scenes/pribor-rtr/pribor-rtr.tscn @@ -17,6 +17,7 @@ patch_margin_right = 16 patch_margin_bottom = 16 [node name="ref_A23" parent="ref_G1" instance=ExtResource("2_e75yj")] +layout_mode = 0 offset_left = 105.0 offset_top = 28.0 offset_right = 265.0 @@ -37,6 +38,7 @@ patch_margin_right = 16 patch_margin_bottom = 16 [node name="ref_A24" parent="ref_A1" instance=ExtResource("2_e75yj")] +layout_mode = 0 offset_left = 334.0 offset_top = 74.0 offset_right = 644.0 @@ -46,6 +48,7 @@ rname = "A24" state = 1 [node name="ref_A25" parent="ref_A1" instance=ExtResource("2_e75yj")] +layout_mode = 0 offset_left = 70.0 offset_top = 115.0 offset_right = 275.0 @@ -66,6 +69,7 @@ patch_margin_right = 16 patch_margin_bottom = 16 [node name="ref_A26" parent="ref_A2" instance=ExtResource("2_e75yj")] +layout_mode = 0 offset_left = 336.0 offset_top = 68.0 offset_right = 646.0 @@ -75,6 +79,7 @@ rname = "A27" state = 1 [node name="ref_A27" parent="ref_A2" instance=ExtResource("2_e75yj")] +layout_mode = 0 offset_left = 68.0 offset_top = 112.0 offset_right = 273.0 diff --git a/scenes/pribor-sch3/pribor-sch3.tscn b/scenes/pribor-sch3/pribor-sch3.tscn index 67dc6f7..6b0138e 100644 --- a/scenes/pribor-sch3/pribor-sch3.tscn +++ b/scenes/pribor-sch3/pribor-sch3.tscn @@ -50,6 +50,7 @@ state = 1 [node name="lbl_legend1" type="Label" parent="ref_G1"] self_modulate = Color(1, 1, 1, 0.627451) +layout_mode = 0 offset_left = 32.0 offset_top = 880.0 offset_right = 105.0 @@ -58,6 +59,7 @@ theme_override_font_sizes/font_size = 17 text = "Исправно" [node name="txr_legend0" type="TextureRect" parent="ref_G1"] +layout_mode = 0 offset_left = 204.0 offset_top = 880.0 offset_right = 428.0 @@ -67,6 +69,7 @@ texture = ExtResource("3_vvbft") [node name="lbl_legend0" type="Label" parent="ref_G1"] self_modulate = Color(1, 1, 1, 0.627451) +layout_mode = 0 offset_left = 232.0 offset_top = 880.0 offset_right = 388.0 @@ -75,6 +78,7 @@ theme_override_font_sizes/font_size = 17 text = "Ожидание результата" [node name="txr_legend2" type="TextureRect" parent="ref_G1"] +layout_mode = 0 offset_left = 461.0 offset_top = 880.0 offset_right = 685.0 @@ -84,6 +88,7 @@ texture = ExtResource("4_ly6ja") [node name="lbl_legend2" type="Label" parent="ref_G1"] self_modulate = Color(1, 1, 1, 0.627451) +layout_mode = 0 offset_left = 489.0 offset_top = 880.0 offset_right = 645.0 @@ -93,6 +98,7 @@ text = "Сбой" [node name="Label" type="Label" parent="ref_G1"] self_modulate = Color(0.835294, 0.141176, 0.286275, 1) +layout_mode = 0 offset_left = 146.0 offset_top = 855.0 offset_right = 521.0 diff --git a/scenes/pribor-uf/pribor-uf.tscn b/scenes/pribor-uf/pribor-uf.tscn index dd8b218..9158fae 100644 --- a/scenes/pribor-uf/pribor-uf.tscn +++ b/scenes/pribor-uf/pribor-uf.tscn @@ -17,6 +17,7 @@ patch_margin_right = 16 patch_margin_bottom = 16 [node name="ref_bu1" type="NinePatchRect" parent="ref_uf"] +layout_mode = 0 offset_left = 281.0 offset_top = 138.0 offset_right = 591.0 @@ -47,6 +48,7 @@ fname = "ВК-110" state = 1 [node name="А8" type="Label" parent="ref_uf/ref_bu1"] +layout_mode = 0 offset_left = 21.0 offset_top = 12.0 offset_right = 39.0 @@ -54,6 +56,7 @@ offset_bottom = 31.0 text = "А8" [node name="А1" type="Label" parent="ref_uf/ref_bu1"] +layout_mode = 0 offset_left = 140.0 offset_top = 13.0 offset_right = 174.0 @@ -61,6 +64,7 @@ offset_bottom = 32.0 text = "БУ-1" [node name="ref_kassetav13" type="NinePatchRect" parent="ref_uf"] +layout_mode = 0 offset_left = 8.0 offset_top = 517.0 offset_right = 597.0 @@ -152,6 +156,7 @@ rname = "A12" state = 1 [node name="А1" type="Label" parent="ref_uf/ref_kassetav13"] +layout_mode = 0 offset_left = 21.0 offset_top = 15.0 offset_right = 55.0 @@ -159,6 +164,7 @@ offset_bottom = 34.0 text = "А1" [node name="А2" type="Label" parent="ref_uf/ref_kassetav13"] +layout_mode = 0 offset_left = 244.0 offset_top = 16.0 offset_right = 337.0 diff --git a/scenes/работа/работа.gd b/scenes/работа/работа.gd index 5a83c1b..082aa7d 100644 --- a/scenes/работа/работа.gd +++ b/scenes/работа/работа.gd @@ -133,6 +133,7 @@ func on_interfer_new(ecm): bip.set_track_visible(false) +## Обработчик выключения всех помех func interfer_off_all(): var bips: Array = get_children().filter(func(item): return item.name.is_valid_int()) for bip in bips: @@ -269,8 +270,10 @@ func _input(event) -> void: drag_fsm = DragFSM.DRAG emit_signal('drag_begin', event) else: + sel_fs_sector(event) drag_fsm = DragFSM.IDLE emit_signal('drag_end', event) + elif event is InputEventKey: if event.physical_keycode == KEY_SHIFT: shift_pressed = event.pressed @@ -288,3 +291,8 @@ func _on_zoom_complete(zoom: int) -> void: var prefix = $btn_zoom.get_meta('prefix') $btn_zoom/lbl.text = '%s %d' % [prefix, zoom] $btn_zoom.set_meta('zoom', zoom) + + +# Обработчик нажатия по сектору формирователя сигналов +func sel_fs_sector(event): + print_debug(event.position)