Доработка. Кнопка "Вид" заменена на чек "Обзорная карта"
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=11 format=3 uid="uid://3slb0i3pvowc"]
|
||||
[gd_scene load_steps=14 format=3 uid="uid://3slb0i3pvowc"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://bvo6tcreqyuex" path="res://scenes/tabs-switch/tab-switch.gd" id="1_fg0vd"]
|
||||
[ext_resource type="PackedScene" uid="uid://b276iygic5itk" path="res://scenes/работа/работа.tscn" id="2_u7p16"]
|
||||
|
||||
@@ -105,7 +105,6 @@ func _ready():
|
||||
var btns_select: Array = $btns_select.get_children()
|
||||
$btn_activate.button_connect('pressed', Callable(self, 'on_btn_activate').bind($btn_activate))
|
||||
btns_select.any(func(btn): btn.button_connect('pressed', Callable(self, 'on_button_select').bind(btn, btns_select)))
|
||||
$btn_view.button_connect('toggled', Callable(self, 'on_button_view_toggled'))
|
||||
var nodes: Array = get_tree().get_nodes_in_group('группа-режим-помехи')
|
||||
nodes.any(func(btn): btn.button_connect('pressed', Callable(self, 'on_button_pressed').bind(btn, nodes)))
|
||||
threats.connect('threat_new', Callable(self, 'on_threat_new'))
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=12 format=3 uid="uid://b276iygic5itk"]
|
||||
[gd_scene load_steps=11 format=3 uid="uid://b276iygic5itk"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://daudc0s3oox3i" path="res://scenes/работа/работа.gd" id="1_niok4"]
|
||||
[ext_resource type="PackedScene" uid="uid://nl1vklubr5kr" path="res://scenes/bip/bip.tscn" id="2_br3s6"]
|
||||
@@ -11,8 +11,6 @@
|
||||
[ext_resource type="PackedScene" uid="uid://b5kjdyxuwsot5" path="res://scenes/diagram/diagram.tscn" id="11_b6su4"]
|
||||
[ext_resource type="Script" uid="uid://c560choneojy8" path="res://scenes/работа/sld-mode.gd" id="12_gqdkl"]
|
||||
|
||||
[sub_resource type="ImageTexture" id="ImageTexture_cnmvt"]
|
||||
|
||||
[node name="Работа" type="Panel"]
|
||||
script = ExtResource("1_niok4")
|
||||
Bip = ExtResource("2_br3s6")
|
||||
@@ -31,6 +29,15 @@ strob_min_band = 0.1
|
||||
strob_min_width = 5.0
|
||||
metadata/_edit_vertical_guides_ = []
|
||||
|
||||
[node name="btn_view" type="CheckBox" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 795.0
|
||||
offset_top = 5.0
|
||||
offset_right = 954.0
|
||||
offset_bottom = 32.0
|
||||
action_mode = 0
|
||||
text = "Обзорная карта"
|
||||
|
||||
[node name="canvas" parent="." instance=ExtResource("11_b6su4")]
|
||||
|
||||
[node name="tilemap" parent="." instance=ExtResource("10_gtwyg")]
|
||||
@@ -211,4 +218,5 @@ vertical_alignment = 1
|
||||
|
||||
[connection signal="drag_begin" from="." to="." method="_on_drag_begin"]
|
||||
[connection signal="drag_continue" from="." to="." method="_on_drag_continue"]
|
||||
[connection signal="toggled" from="btn_view" to="." method="on_button_view_toggled"]
|
||||
[connection signal="value_changed" from="vslider" to="vslider" method="on_value_changed"]
|
||||
|
||||
Reference in New Issue
Block a user