Регрессия. Неверный символ отступа, должен быть "пробел".
This commit is contained in:
@@ -84,7 +84,6 @@ func _ready():
|
|||||||
interfer.connect('interfer_update', Callable(self, 'on_interfer_update').bind(table_index))
|
interfer.connect('interfer_update', Callable(self, 'on_interfer_update').bind(table_index))
|
||||||
$table.connect('row_pressed', Callable(self, 'on_row_pressed'))
|
$table.connect('row_pressed', Callable(self, 'on_row_pressed'))
|
||||||
call_deferred('init_table')
|
call_deferred('init_table')
|
||||||
#$btn_cancel.button_connect('pressed', Callable(self, 'on_btn_cancel_pressed').bind($btn_cancel))
|
|
||||||
|
|
||||||
|
|
||||||
func init_table():
|
func init_table():
|
||||||
|
|||||||
@@ -73,7 +73,6 @@ func _ready():
|
|||||||
log.info('Модуль географической карты готов')
|
log.info('Модуль географической карты готов')
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
func _on_map_mode_changed(mode: int) -> void:
|
func _on_map_mode_changed(mode: int) -> void:
|
||||||
var map_image_size = ProjectSettings.get_setting(MAP_MODES[mode])
|
var map_image_size = ProjectSettings.get_setting(MAP_MODES[mode])
|
||||||
material.set('shader_parameter/radius', MAP_RELATIVE_RADIUSES[mode])
|
material.set('shader_parameter/radius', MAP_RELATIVE_RADIUSES[mode])
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
[gd_scene load_steps=5 format=3 uid="uid://bbq6nklh36yij"]
|
[gd_scene load_steps=4 format=3 uid="uid://bbq6nklh36yij"]
|
||||||
|
|
||||||
[ext_resource type="Script" path="res://scenes/tilemap/tilemap.gd" id="1_mkfgj"]
|
[ext_resource type="Script" path="res://scenes/tilemap/tilemap.gd" id="1_mkfgj"]
|
||||||
[ext_resource type="Shader" path="res://shaders/tilemap.gdshader" id="1_tsdui"]
|
[ext_resource type="Shader" path="res://shaders/tilemap.gdshader" id="1_tsdui"]
|
||||||
@@ -8,32 +8,7 @@ resource_local_to_scene = true
|
|||||||
shader = ExtResource("1_tsdui")
|
shader = ExtResource("1_tsdui")
|
||||||
shader_parameter/radius = 0.39
|
shader_parameter/radius = 0.39
|
||||||
|
|
||||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_ys5v4"]
|
|
||||||
|
|
||||||
[node name="tilemap" type="Sprite2D"]
|
[node name="tilemap" type="Sprite2D"]
|
||||||
material = SubResource("ShaderMaterial_pmqvj")
|
material = SubResource("ShaderMaterial_pmqvj")
|
||||||
position = Vector2(560, 560)
|
position = Vector2(560, 560)
|
||||||
script = ExtResource("1_mkfgj")
|
script = ExtResource("1_mkfgj")
|
||||||
|
|
||||||
[node name="Panel" type="Panel" parent="."]
|
|
||||||
offset_left = -563.0
|
|
||||||
offset_top = -557.0
|
|
||||||
offset_right = 1022.0
|
|
||||||
offset_bottom = 641.0
|
|
||||||
theme_override_styles/panel = SubResource("StyleBoxEmpty_ys5v4")
|
|
||||||
|
|
||||||
[node name="Node2D" type="Node2D" parent="."]
|
|
||||||
|
|
||||||
[node name="LineEdit" type="LineEdit" parent="Node2D"]
|
|
||||||
offset_left = -490.0
|
|
||||||
offset_top = 518.0
|
|
||||||
offset_right = -244.0
|
|
||||||
offset_bottom = 565.0
|
|
||||||
|
|
||||||
[node name="VBoxContainer" type="VBoxContainer" parent="Node2D"]
|
|
||||||
offset_left = -499.0
|
|
||||||
offset_top = 200.0
|
|
||||||
offset_right = -239.0
|
|
||||||
offset_bottom = 430.0
|
|
||||||
|
|
||||||
[connection signal="gui_input" from="Panel" to="." method="_on_panel_gui_input"]
|
|
||||||
|
|||||||
@@ -45,9 +45,8 @@ class Tile:
|
|||||||
func _bound_index(index: int) -> int:
|
func _bound_index(index: int) -> int:
|
||||||
var mi: int = 2 ** z
|
var mi: int = 2 ** z
|
||||||
if index < 0:
|
if index < 0:
|
||||||
index *= -1
|
index = -index - 1;
|
||||||
index %= mi
|
index = int(mi - 1) - (index % int(mi))
|
||||||
index = mi - index
|
|
||||||
else:
|
else:
|
||||||
index %= mi
|
index %= mi
|
||||||
return index
|
return index
|
||||||
|
|||||||
Reference in New Issue
Block a user