aboutsummaryrefslogtreecommitdiff
path: root/menu
diff options
context:
space:
mode:
authordam <dam@gudinoff>2022-01-02 13:34:18 +0000
committerdam <dam@gudinoff>2022-01-02 13:34:18 +0000
commit73f2cf39d5514fab4ee994f303e250ce2b27307c (patch)
treef733a9dc7623458b507ece6b84821b6af5ba3a4f /menu
parentc73bfb23245945e4e85d986abf40026635af6b0a (diff)
downloadsurgery-log-73f2cf39d5514fab4ee994f303e250ce2b27307c.tar.zst
surgery-log-73f2cf39d5514fab4ee994f303e250ce2b27307c.zip
Load/save database and fix updating changed entries on database screen.
Diffstat (limited to 'menu')
-rw-r--r--menu/menu.gd15
1 files changed, 3 insertions, 12 deletions
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()