From 39577a94a7f3c372b721c68ca1c5ca116acfbe85 Mon Sep 17 00:00:00 2001 From: blinry Date: Tue, 24 Nov 2020 10:16:19 +0100 Subject: [PATCH] Focus file browser by default --- scenes/item.gd | 2 +- scenes/main.gd | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scenes/item.gd b/scenes/item.gd index 3a4b8e9..586484d 100644 --- a/scenes/item.gd +++ b/scenes/item.gd @@ -54,7 +54,7 @@ func read_from_file(): position.y = float(attributes["y"]) else: position.y = rand_range(100, 300) - write_to_file() + #write_to_file() func write_to_file(): attributes["x"] = str(position.x) diff --git a/scenes/main.gd b/scenes/main.gd index f18f441..db5ea71 100644 --- a/scenes/main.gd +++ b/scenes/main.gd @@ -44,7 +44,7 @@ func _ready(): # Load first chapter. load_chapter(current_chapter) - input.grab_focus() + file_browser.grab_focus() func _input(event): if event.is_action_pressed("tab"):