Merge remote-tracking branch 'MaD_CaT/master'
# Conflicts: # Control.tscn # project.godot
This commit is contained in:
0
Control.tscn
Normal file
0
Control.tscn
Normal file
21
consts.gd
Normal file
21
consts.gd
Normal file
@@ -0,0 +1,21 @@
|
||||
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'
|
||||
15
main.gd
Normal file
15
main.gd
Normal file
@@ -0,0 +1,15 @@
|
||||
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
|
||||
10
pribor_afsp_l.tscn
Normal file
10
pribor_afsp_l.tscn
Normal file
@@ -0,0 +1,10 @@
|
||||
[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 = "Здесь будет схема прибора АФСП Левый"
|
||||
10
pribor_afsp_r.tscn
Normal file
10
pribor_afsp_r.tscn
Normal file
@@ -0,0 +1,10 @@
|
||||
[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 = "Здесь будет схема прибора АФСП Правый"
|
||||
10
pribor_afsp_sch3.tscn
Normal file
10
pribor_afsp_sch3.tscn
Normal file
@@ -0,0 +1,10 @@
|
||||
[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"
|
||||
10
pribor_prd_k_1.tscn
Normal file
10
pribor_prd_k_1.tscn
Normal file
@@ -0,0 +1,10 @@
|
||||
[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"
|
||||
10
pribor_prd_k_2.tscn
Normal file
10
pribor_prd_k_2.tscn
Normal file
@@ -0,0 +1,10 @@
|
||||
[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"
|
||||
10
pribor_prd_k_3.tscn
Normal file
10
pribor_prd_k_3.tscn
Normal file
@@ -0,0 +1,10 @@
|
||||
[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"
|
||||
10
pribor_prd_k_4.tscn
Normal file
10
pribor_prd_k_4.tscn
Normal file
@@ -0,0 +1,10 @@
|
||||
[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"
|
||||
10
pribor_prd_n_1.tscn
Normal file
10
pribor_prd_n_1.tscn
Normal file
@@ -0,0 +1,10 @@
|
||||
[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"
|
||||
10
pribor_prd_n_2.tscn
Normal file
10
pribor_prd_n_2.tscn
Normal file
@@ -0,0 +1,10 @@
|
||||
[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"
|
||||
10
pribor_prd_n_3.tscn
Normal file
10
pribor_prd_n_3.tscn
Normal file
@@ -0,0 +1,10 @@
|
||||
[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"
|
||||
10
pribor_prd_n_4.tscn
Normal file
10
pribor_prd_n_4.tscn
Normal file
@@ -0,0 +1,10 @@
|
||||
[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"
|
||||
10
pribor_prd_v_1.tscn
Normal file
10
pribor_prd_v_1.tscn
Normal file
@@ -0,0 +1,10 @@
|
||||
[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"
|
||||
10
pribor_prd_v_2.tscn
Normal file
10
pribor_prd_v_2.tscn
Normal file
@@ -0,0 +1,10 @@
|
||||
[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"
|
||||
10
pribor_prd_v_3.tscn
Normal file
10
pribor_prd_v_3.tscn
Normal file
@@ -0,0 +1,10 @@
|
||||
[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"
|
||||
10
pribor_prd_v_4.tscn
Normal file
10
pribor_prd_v_4.tscn
Normal file
@@ -0,0 +1,10 @@
|
||||
[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"
|
||||
10
pribor_rtr.tscn
Normal file
10
pribor_rtr.tscn
Normal file
@@ -0,0 +1,10 @@
|
||||
[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 = "Здесь будет схема прибора РТР"
|
||||
10
pribor_sch3.tscn
Normal file
10
pribor_sch3.tscn
Normal file
@@ -0,0 +1,10 @@
|
||||
[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"
|
||||
10
pribor_spt_l.tscn
Normal file
10
pribor_spt_l.tscn
Normal file
@@ -0,0 +1,10 @@
|
||||
[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 = "Здесь будет схема прибора СПТ Левый"
|
||||
10
pribor_spt_r.tscn
Normal file
10
pribor_spt_r.tscn
Normal file
@@ -0,0 +1,10 @@
|
||||
[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 = "Здесь будет схема прибора СПТ Правый"
|
||||
10
pribor_uf.tscn
Normal file
10
pribor_uf.tscn
Normal file
@@ -0,0 +1,10 @@
|
||||
[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 = "Здесь будет схема прибора УФ"
|
||||
42
Контроль.gd
Normal file
42
Контроль.gd
Normal file
@@ -0,0 +1,42 @@
|
||||
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
|
||||
Reference in New Issue
Block a user