From 73f2cf39d5514fab4ee994f303e250ce2b27307c Mon Sep 17 00:00:00 2001 From: dam Date: Sun, 2 Jan 2022 13:34:18 +0000 Subject: Load/save database and fix updating changed entries on database screen. --- menu/menu.gd | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to 'menu/menu.gd') diff --git a/menu/menu.gd b/menu/menu.gd index 55c74fa..36beee8 100644 --- a/menu/menu.gd +++ b/menu/menu.gd @@ -5,6 +5,7 @@ const menu_items: Array = [ { label = "EXPORT FILTERS", action = "_menu_export_filters_action" }, { label = "CLEAR FILTERS", action = "_menu_clear_filters_action" }, { label = "ABOUT", action = "_menu_about_action" }, + { label = "FAKE_DB", action = "_menu_fake_db_action" }, ] const license_font_b612: String = "res://licenses/font_b612.txt" const license_godot: String = "res://licenses/godot.txt" @@ -96,17 +97,7 @@ func _menu_about_action(): (get_node("/root/main/about") as AcceptDialog).show_modal() -#func load_file(file: String): -# var f = File.new() -# f.open(file, File.READ) -# var index = 1 -# while not f.eof_reached(): # iterate through all lines until the end of file is reached -# var line = f.get_line() -# line += " " -# print(line + str(index)) -# -# index += 1 -# f.close() -# return +func _menu_fake_db_action(): + get_node("/root/main/database").fake_database() -- cgit v1.2.3