В процессе. Исправлена загрузка проекта в редактор
This commit is contained in:
@@ -8,13 +8,13 @@
|
||||
[ext_resource type="PackedScene" uid="uid://dymo732qc2doa" path="res://scenes/count_all_pad.tscn" id="6_e3re7"]
|
||||
[ext_resource type="PackedScene" uid="uid://bwti82byphl68" path="res://scenes/count_danger_pad.tscn" id="7_2arls"]
|
||||
[ext_resource type="PackedScene" uid="uid://da7w3vkhadfwe" path="res://scenes/button-flat.tscn" id="8_k0iv2"]
|
||||
[ext_resource type="PackedScene" uid="uid://0uqi1ghf7sma" path="res://scenes/btn_scale.tscn" id="9_oey3x"]
|
||||
[ext_resource type="PackedScene" uid="uid://0uqi1ghf7sma" path="res://scenes/btn_zoom.tscn" id="9_oey3x"]
|
||||
[ext_resource type="PackedScene" uid="uid://bbq6nklh36yij" path="res://scenes/tilemap.tscn" id="10_gtwyg"]
|
||||
[ext_resource type="Shader" path="res://shaders/tilemap.gdshader" id="11_ekapd"]
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_idugi"]
|
||||
resource_local_to_scene = true
|
||||
shader = ExtResource("11_7ohqv")
|
||||
shader = ExtResource("11_ekapd")
|
||||
shader_parameter/radius = 0.39
|
||||
|
||||
[node name="Работа" type="Panel"]
|
||||
@@ -44,10 +44,10 @@ offset_right = 1594.0
|
||||
offset_bottom = 1170.0
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="tilemap" parent="." instance=ExtResource("10_wpi4s")]
|
||||
[node name="tilemap" parent="." instance=ExtResource("10_gtwyg")]
|
||||
material = SubResource("ShaderMaterial_idugi")
|
||||
|
||||
[node name="canvas" parent="." instance=ExtResource("7_pvt8f")]
|
||||
[node name="canvas" parent="." instance=ExtResource("4_lryxs")]
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="grd_btns" parent="." instance=ExtResource("5_2jnbs")]
|
||||
@@ -128,7 +128,7 @@ size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
text = "Вид"
|
||||
|
||||
[node name="btn_zoom" parent="." instance=ExtResource("8_xddop")]
|
||||
[node name="btn_zoom" parent="." instance=ExtResource("9_oey3x")]
|
||||
layout_mode = 0
|
||||
offset_left = 952.0
|
||||
offset_top = 1038.0
|
||||
|
||||
@@ -22,7 +22,7 @@ signal threat_unselected(threats: Dictionary, th)
|
||||
signal full_screen(id: int)
|
||||
|
||||
|
||||
## Вызывается, когда пользователь выбирает цель
|
||||
## Вызывается, когда пользователь выбирает цель
|
||||
## [param bip] - Отметка цели на экране
|
||||
signal rto_threat_sel (bip: Control)
|
||||
|
||||
|
||||
@@ -69,14 +69,14 @@ func on_timer_check_lost(time_lost: int, threats: Dictionary):
|
||||
call_deferred('emit_signal', 'threats_resized', threats)
|
||||
|
||||
|
||||
## Выбирает цель, если нажать по отметке цели.
|
||||
## Выбирает цель, если нажать по отметке цели.
|
||||
func on_rto_threat_sel(bip, threats):
|
||||
for threat in threats.values():
|
||||
threat.selected = false
|
||||
threats[bip.name.to_int()].selected = true
|
||||
|
||||
|
||||
## Выбирает цель, если выбрать в таблице
|
||||
## Выбирает цель, если выбрать в таблице
|
||||
func on_threat_selected(th, threats):
|
||||
for threat in threats.values():
|
||||
threat.selected = false
|
||||
@@ -91,7 +91,7 @@ func on_interfer_init(btn, threats):
|
||||
sel_threats.append(threat)
|
||||
if len(sel_threats):
|
||||
signaller.emit_signal('interfer_create', btn, sel_threats)
|
||||
|
||||
|
||||
|
||||
|
||||
## Производит приём целей
|
||||
|
||||
Reference in New Issue
Block a user