From 28b6c7a86a0309cd80451ebfa4a79ae0e7a66f9c Mon Sep 17 00:00:00 2001 From: sasha80 Date: Tue, 25 Jul 2023 15:34:53 +0300 Subject: [PATCH] =?UTF-8?q?=D0=92=20=D0=BF=D1=80=D0=BE=D1=86=D0=B5=D1=81?= =?UTF-8?q?=D1=81=D0=B5.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Control.tscn | 0 consts.gd | 21 --------------------- main.gd | 15 --------------- pribor_afsp_l.tscn | 10 ---------- pribor_afsp_r.tscn | 10 ---------- pribor_afsp_sch3.tscn | 10 ---------- pribor_prd_k_1.tscn | 10 ---------- pribor_prd_k_2.tscn | 10 ---------- pribor_prd_k_3.tscn | 10 ---------- pribor_prd_k_4.tscn | 10 ---------- pribor_prd_n_1.tscn | 10 ---------- pribor_prd_n_2.tscn | 10 ---------- pribor_prd_n_3.tscn | 10 ---------- pribor_prd_n_4.tscn | 10 ---------- pribor_prd_v_1.tscn | 10 ---------- pribor_prd_v_2.tscn | 10 ---------- pribor_prd_v_3.tscn | 10 ---------- pribor_prd_v_4.tscn | 10 ---------- pribor_rtr.tscn | 10 ---------- pribor_sch3.tscn | 10 ---------- pribor_spt_l.tscn | 10 ---------- pribor_spt_r.tscn | 10 ---------- pribor_uf.tscn | 10 ---------- Контроль.gd | 42 ------------------------------------------ 24 files changed, 278 deletions(-) delete mode 100644 Control.tscn delete mode 100644 consts.gd delete mode 100644 main.gd delete mode 100644 pribor_afsp_l.tscn delete mode 100644 pribor_afsp_r.tscn delete mode 100644 pribor_afsp_sch3.tscn delete mode 100644 pribor_prd_k_1.tscn delete mode 100644 pribor_prd_k_2.tscn delete mode 100644 pribor_prd_k_3.tscn delete mode 100644 pribor_prd_k_4.tscn delete mode 100644 pribor_prd_n_1.tscn delete mode 100644 pribor_prd_n_2.tscn delete mode 100644 pribor_prd_n_3.tscn delete mode 100644 pribor_prd_n_4.tscn delete mode 100644 pribor_prd_v_1.tscn delete mode 100644 pribor_prd_v_2.tscn delete mode 100644 pribor_prd_v_3.tscn delete mode 100644 pribor_prd_v_4.tscn delete mode 100644 pribor_rtr.tscn delete mode 100644 pribor_sch3.tscn delete mode 100644 pribor_spt_l.tscn delete mode 100644 pribor_spt_r.tscn delete mode 100644 pribor_uf.tscn delete mode 100644 Контроль.gd diff --git a/Control.tscn b/Control.tscn deleted file mode 100644 index e69de29b..00000000 diff --git a/consts.gd b/consts.gd deleted file mode 100644 index eaab45fe..00000000 --- a/consts.gd +++ /dev/null @@ -1,21 +0,0 @@ -extends Node - -const PRIBOR_UF = 'res://pribor_uf.tscn' -const PRIBOR_RTR = 'res://pribor_rtr.tscn' -const PRIBOR_AFSP_L = 'res://pribor_afsp_l.tscn' -const PRIBOR_AFSP_R = 'res://pribor_afsp_r.tscn' -const PRIBOR_SCH3 = 'res://pribor_sch3.tscn' -const PRIBOR_SPT_L = 'res://pribor_spt_l.tscn' -const PRIBOR_SPT_R = 'res://pribor_spt_r.tscn' -const PRIBOR_PRD_V_1 = 'res://pribor_prd_v_1.tscn' -const PRIBOR_PRD_N_1 = 'res://pribor_prd_n_1.tscn' -const PRIBOR_PRD_K_1 = 'res://pribor_prd_k_1.tscn' -const PRIBOR_PRD_V_2 = 'res://pribor_prd_v_2.tscn' -const PRIBOR_PRD_N_2 = 'res://pribor_prd_n_2.tscn' -const PRIBOR_PRD_K_2 = 'res://pribor_prd_k_2.tscn' -const PRIBOR_PRD_V_3 = 'res://pribor_prd_v_3.tscn' -const PRIBOR_PRD_N_3 = 'res://pribor_prd_n_3.tscn' -const PRIBOR_PRD_K_3 = 'res://pribor_prd_k_3.tscn' -const PRIBOR_PRD_V_4 = 'res://pribor_prd_v_4.tscn' -const PRIBOR_PRD_N_4 = 'res://pribor_prd_n_4.tscn' -const PRIBOR_PRD_K_4 = 'res://pribor_prd_k_4.tscn' diff --git a/main.gd b/main.gd deleted file mode 100644 index 3afd4007..00000000 --- a/main.gd +++ /dev/null @@ -1,15 +0,0 @@ -extends TabContainer - - -# Called when the node enters the scene tree for the first time. -func _ready(): - pass # Replace with function body. - -func _input(event: InputEvent): - if event is InputEventKey: - if event.pressed and (event.scancode == KEY_F11): - OS.window_fullscreen = !OS.window_fullscreen - -# Called every frame. 'delta' is the elapsed time since the previous frame. -#func _process(delta): -# pass diff --git a/pribor_afsp_l.tscn b/pribor_afsp_l.tscn deleted file mode 100644 index 3b6850a2..00000000 --- a/pribor_afsp_l.tscn +++ /dev/null @@ -1,10 +0,0 @@ -[gd_scene format=2] - -[node name="pribor_UF" type="Node2D"] - -[node name="test_label" type="Label" parent="."] -margin_left = 12.0 -margin_top = 8.0 -margin_right = 154.0 -margin_bottom = 22.0 -text = "Здесь будет схема прибора АФСП Левый" diff --git a/pribor_afsp_r.tscn b/pribor_afsp_r.tscn deleted file mode 100644 index b3559eae..00000000 --- a/pribor_afsp_r.tscn +++ /dev/null @@ -1,10 +0,0 @@ -[gd_scene format=2] - -[node name="pribor_UF" type="Node2D"] - -[node name="test_label" type="Label" parent="."] -margin_left = 12.0 -margin_top = 8.0 -margin_right = 154.0 -margin_bottom = 22.0 -text = "Здесь будет схема прибора АФСП Правый" diff --git a/pribor_afsp_sch3.tscn b/pribor_afsp_sch3.tscn deleted file mode 100644 index 4a16ab1d..00000000 --- a/pribor_afsp_sch3.tscn +++ /dev/null @@ -1,10 +0,0 @@ -[gd_scene format=2] - -[node name="pribor_UF" type="Node2D"] - -[node name="test_label" type="Label" parent="."] -margin_left = 12.0 -margin_top = 8.0 -margin_right = 154.0 -margin_bottom = 22.0 -text = "Здесь будет схема прибора Щ3" diff --git a/pribor_prd_k_1.tscn b/pribor_prd_k_1.tscn deleted file mode 100644 index 7c8ec537..00000000 --- a/pribor_prd_k_1.tscn +++ /dev/null @@ -1,10 +0,0 @@ -[gd_scene format=2] - -[node name="pribor_UF" type="Node2D"] - -[node name="test_label" type="Label" parent="."] -margin_left = 12.0 -margin_top = 8.0 -margin_right = 154.0 -margin_bottom = 22.0 -text = "Здесь будет схема прибора ПРД-К 1" diff --git a/pribor_prd_k_2.tscn b/pribor_prd_k_2.tscn deleted file mode 100644 index 825a9502..00000000 --- a/pribor_prd_k_2.tscn +++ /dev/null @@ -1,10 +0,0 @@ -[gd_scene format=2] - -[node name="pribor_UF" type="Node2D"] - -[node name="test_label" type="Label" parent="."] -margin_left = 12.0 -margin_top = 8.0 -margin_right = 154.0 -margin_bottom = 22.0 -text = "Здесь будет схема прибора ПРД-К 2" diff --git a/pribor_prd_k_3.tscn b/pribor_prd_k_3.tscn deleted file mode 100644 index 69566e11..00000000 --- a/pribor_prd_k_3.tscn +++ /dev/null @@ -1,10 +0,0 @@ -[gd_scene format=2] - -[node name="pribor_UF" type="Node2D"] - -[node name="test_label" type="Label" parent="."] -margin_left = 12.0 -margin_top = 8.0 -margin_right = 154.0 -margin_bottom = 22.0 -text = "Здесь будет схема прибора ПРД-К 3" diff --git a/pribor_prd_k_4.tscn b/pribor_prd_k_4.tscn deleted file mode 100644 index c9e3c4cc..00000000 --- a/pribor_prd_k_4.tscn +++ /dev/null @@ -1,10 +0,0 @@ -[gd_scene format=2] - -[node name="pribor_UF" type="Node2D"] - -[node name="test_label" type="Label" parent="."] -margin_left = 12.0 -margin_top = 8.0 -margin_right = 154.0 -margin_bottom = 22.0 -text = "Здесь будет схема прибора ПРД-К 4" diff --git a/pribor_prd_n_1.tscn b/pribor_prd_n_1.tscn deleted file mode 100644 index cc681670..00000000 --- a/pribor_prd_n_1.tscn +++ /dev/null @@ -1,10 +0,0 @@ -[gd_scene format=2] - -[node name="pribor_UF" type="Node2D"] - -[node name="test_label" type="Label" parent="."] -margin_left = 12.0 -margin_top = 8.0 -margin_right = 154.0 -margin_bottom = 22.0 -text = "Здесь будет схема прибора ПРД-Н 1" diff --git a/pribor_prd_n_2.tscn b/pribor_prd_n_2.tscn deleted file mode 100644 index 4f8efdc3..00000000 --- a/pribor_prd_n_2.tscn +++ /dev/null @@ -1,10 +0,0 @@ -[gd_scene format=2] - -[node name="pribor_UF" type="Node2D"] - -[node name="test_label" type="Label" parent="."] -margin_left = 12.0 -margin_top = 8.0 -margin_right = 154.0 -margin_bottom = 22.0 -text = "Здесь будет схема прибора ПРД-Н 2" diff --git a/pribor_prd_n_3.tscn b/pribor_prd_n_3.tscn deleted file mode 100644 index 157f5c9d..00000000 --- a/pribor_prd_n_3.tscn +++ /dev/null @@ -1,10 +0,0 @@ -[gd_scene format=2] - -[node name="pribor_UF" type="Node2D"] - -[node name="test_label" type="Label" parent="."] -margin_left = 12.0 -margin_top = 8.0 -margin_right = 154.0 -margin_bottom = 22.0 -text = "Здесь будет схема прибора ПРД-Н 3" diff --git a/pribor_prd_n_4.tscn b/pribor_prd_n_4.tscn deleted file mode 100644 index 3896f0a8..00000000 --- a/pribor_prd_n_4.tscn +++ /dev/null @@ -1,10 +0,0 @@ -[gd_scene format=2] - -[node name="pribor_UF" type="Node2D"] - -[node name="test_label" type="Label" parent="."] -margin_left = 12.0 -margin_top = 8.0 -margin_right = 154.0 -margin_bottom = 22.0 -text = "Здесь будет схема прибора ПРД-Н 4" diff --git a/pribor_prd_v_1.tscn b/pribor_prd_v_1.tscn deleted file mode 100644 index 6f6c53bf..00000000 --- a/pribor_prd_v_1.tscn +++ /dev/null @@ -1,10 +0,0 @@ -[gd_scene format=2] - -[node name="pribor_UF" type="Node2D"] - -[node name="test_label" type="Label" parent="."] -margin_left = 12.0 -margin_top = 8.0 -margin_right = 154.0 -margin_bottom = 22.0 -text = "Здесь будет схема прибора ПРД-В 1" diff --git a/pribor_prd_v_2.tscn b/pribor_prd_v_2.tscn deleted file mode 100644 index 50ec6b98..00000000 --- a/pribor_prd_v_2.tscn +++ /dev/null @@ -1,10 +0,0 @@ -[gd_scene format=2] - -[node name="pribor_UF" type="Node2D"] - -[node name="test_label" type="Label" parent="."] -margin_left = 12.0 -margin_top = 8.0 -margin_right = 154.0 -margin_bottom = 22.0 -text = "Здесь будет схема прибора ПРД-В 2" diff --git a/pribor_prd_v_3.tscn b/pribor_prd_v_3.tscn deleted file mode 100644 index 54cf5a80..00000000 --- a/pribor_prd_v_3.tscn +++ /dev/null @@ -1,10 +0,0 @@ -[gd_scene format=2] - -[node name="pribor_UF" type="Node2D"] - -[node name="test_label" type="Label" parent="."] -margin_left = 12.0 -margin_top = 8.0 -margin_right = 154.0 -margin_bottom = 22.0 -text = "Здесь будет схема прибора ПРД-В 3" diff --git a/pribor_prd_v_4.tscn b/pribor_prd_v_4.tscn deleted file mode 100644 index 6f6c53bf..00000000 --- a/pribor_prd_v_4.tscn +++ /dev/null @@ -1,10 +0,0 @@ -[gd_scene format=2] - -[node name="pribor_UF" type="Node2D"] - -[node name="test_label" type="Label" parent="."] -margin_left = 12.0 -margin_top = 8.0 -margin_right = 154.0 -margin_bottom = 22.0 -text = "Здесь будет схема прибора ПРД-В 1" diff --git a/pribor_rtr.tscn b/pribor_rtr.tscn deleted file mode 100644 index 368aea35..00000000 --- a/pribor_rtr.tscn +++ /dev/null @@ -1,10 +0,0 @@ -[gd_scene format=2] - -[node name="pribor_UF" type="Node2D"] - -[node name="test_label" type="Label" parent="."] -margin_left = 12.0 -margin_top = 8.0 -margin_right = 154.0 -margin_bottom = 22.0 -text = "Здесь будет схема прибора РТР" diff --git a/pribor_sch3.tscn b/pribor_sch3.tscn deleted file mode 100644 index 4a16ab1d..00000000 --- a/pribor_sch3.tscn +++ /dev/null @@ -1,10 +0,0 @@ -[gd_scene format=2] - -[node name="pribor_UF" type="Node2D"] - -[node name="test_label" type="Label" parent="."] -margin_left = 12.0 -margin_top = 8.0 -margin_right = 154.0 -margin_bottom = 22.0 -text = "Здесь будет схема прибора Щ3" diff --git a/pribor_spt_l.tscn b/pribor_spt_l.tscn deleted file mode 100644 index 0c9066f8..00000000 --- a/pribor_spt_l.tscn +++ /dev/null @@ -1,10 +0,0 @@ -[gd_scene format=2] - -[node name="pribor_UF" type="Node2D"] - -[node name="test_label" type="Label" parent="."] -margin_left = 12.0 -margin_top = 8.0 -margin_right = 154.0 -margin_bottom = 22.0 -text = "Здесь будет схема прибора СПТ Левый" diff --git a/pribor_spt_r.tscn b/pribor_spt_r.tscn deleted file mode 100644 index 62c03371..00000000 --- a/pribor_spt_r.tscn +++ /dev/null @@ -1,10 +0,0 @@ -[gd_scene format=2] - -[node name="pribor_UF" type="Node2D"] - -[node name="test_label" type="Label" parent="."] -margin_left = 12.0 -margin_top = 8.0 -margin_right = 154.0 -margin_bottom = 22.0 -text = "Здесь будет схема прибора СПТ Правый" diff --git a/pribor_uf.tscn b/pribor_uf.tscn deleted file mode 100644 index a00ecf88..00000000 --- a/pribor_uf.tscn +++ /dev/null @@ -1,10 +0,0 @@ -[gd_scene format=2] - -[node name="pribor_UF" type="Node2D"] - -[node name="test_label" type="Label" parent="."] -margin_left = 12.0 -margin_top = 8.0 -margin_right = 154.0 -margin_bottom = 22.0 -text = "Здесь будет схема прибора УФ" diff --git a/Контроль.gd b/Контроль.gd deleted file mode 100644 index 9f439308..00000000 --- a/Контроль.gd +++ /dev/null @@ -1,42 +0,0 @@ -extends Panel - - -# Called when the node enters the scene tree for the first time. -func _ready(): - $pribor_uf.connect('button_up', self, 'on_pribor_press', [Consts.PRIBOR_UF]) - $pribor_rtr.connect('button_up', self, 'on_pribor_press', [Consts.PRIBOR_RTR]) - $pribor_afsp_l.connect('button_up', self, 'on_pribor_press', [Consts.PRIBOR_AFSP_L]) - $pribor_afsp_r.connect('button_up', self, 'on_pribor_press', [Consts.PRIBOR_AFSP_R]) - $pribor_sch3.connect('button_up', self, 'on_pribor_press', [Consts.PRIBOR_SCH3]) - $pribor_spt_l.connect('button_up', self, 'on_pribor_press', [Consts.PRIBOR_SPT_L]) - $pribor_spt_r.connect('button_up', self, 'on_pribor_press', [Consts.PRIBOR_SPT_R]) - $pribor_prd_v_1.connect('button_up', self, 'on_pribor_press', [Consts.PRIBOR_PRD_V_1]) - $pribor_prd_n_1.connect('button_up', self, 'on_pribor_press', [Consts.PRIBOR_PRD_N_1]) - $pribor_prd_k_1.connect('button_up', self, 'on_pribor_press', [Consts.PRIBOR_PRD_K_1]) - $pribor_prd_v_2.connect('button_up', self, 'on_pribor_press', [Consts.PRIBOR_PRD_V_2]) - $pribor_prd_n_2.connect('button_up', self, 'on_pribor_press', [Consts.PRIBOR_PRD_N_2]) - $pribor_prd_k_2.connect('button_up', self, 'on_pribor_press', [Consts.PRIBOR_PRD_K_2]) - $pribor_prd_v_3.connect('button_up', self, 'on_pribor_press', [Consts.PRIBOR_PRD_V_3]) - $pribor_prd_n_3.connect('button_up', self, 'on_pribor_press', [Consts.PRIBOR_PRD_N_3]) - $pribor_prd_k_3.connect('button_up', self, 'on_pribor_press', [Consts.PRIBOR_PRD_K_3]) - $pribor_prd_v_4.connect('button_up', self, 'on_pribor_press', [Consts.PRIBOR_PRD_V_4]) - $pribor_prd_n_4.connect('button_up', self, 'on_pribor_press', [Consts.PRIBOR_PRD_N_4]) - $pribor_prd_k_4.connect('button_up', self, 'on_pribor_press', [Consts.PRIBOR_PRD_K_4]) - - - -func on_pribor_press(text): - clear_obj($scene) - var scen = load(text).instance() - $scene.add_child(scen) - - -func clear_obj(obj : Object): - var items = $scene.get_children() - for item in items: - $scene.remove_child(item) - item.free() - -# Called every frame. 'delta' is the elapsed time since the previous frame. -#func _process(delta): -# pass