From 97c47c630296d7890bb50888a9d53d0ba3db9e40 Mon Sep 17 00:00:00 2001 From: sasha80 Date: Wed, 23 Apr 2025 08:20:50 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5.=20=D0=A1=D0=BE=D0=BE=D0=B1=D1=89?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=BE=D0=B1=20=D0=BE=D1=88=D0=B8?= =?UTF-8?q?=D0=B1=D0=BA=D0=B5=20=D0=B2=20=D1=80=D0=B5=D0=B4=D0=B0=D0=BA?= =?UTF-8?q?=D1=82=D0=BE=D1=80=D0=B5=20(=D0=B2=D1=8B=D0=B7=D0=B2=D0=B0?= =?UTF-8?q?=D0=BD=D0=BE=20`@tool`)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- project.godot | 1 - scenes/tilemap/tilemap.gd | 2 ++ scripts/settings.gd | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/project.godot b/project.godot index ce0e5d2..1595bf6 100644 --- a/project.godot +++ b/project.godot @@ -194,7 +194,6 @@ common/enable_object_picking=false renderer/rendering_method="gl_compatibility" renderer/rendering_method.mobile="gl_compatibility" shader_compiler/shader_cache/strip_debug=true -anti_aliasing/quality/msaa_2d=1 quality/driver/fallback_to_gles2=true [shader_globals] diff --git a/scenes/tilemap/tilemap.gd b/scenes/tilemap/tilemap.gd index a6e263f..61324c9 100644 --- a/scenes/tilemap/tilemap.gd +++ b/scenes/tilemap/tilemap.gd @@ -100,6 +100,8 @@ const image_load_proc_names = { func _ready(): + if Engine.is_editor_hint(): + return $canvas.connect('mouse_entered', func(): _rollover = true) $canvas.connect('mouse_exited', func(): _rollover = false) _on_resize() diff --git a/scripts/settings.gd b/scripts/settings.gd index e2dddd3..5517266 100644 --- a/scripts/settings.gd +++ b/scripts/settings.gd @@ -55,6 +55,8 @@ const UM_MAX: = 55.0 func _ready() -> void: + if Engine.is_editor_hint(): + return var file = FileAccess.open(settings_file, FileAccess.READ) if not file: log.info('Не удалось открыть файл настроек %s, использованы настройики по умолчанию' % settings_file)