aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordam <dam@gudinoff>2022-04-02 08:49:21 +0000
committerdam <dam@gudinoff>2022-04-02 08:49:21 +0000
commitb12fe534ae3f2aea74f8c8506b3ad2fea321227c (patch)
tree47afc50dcf418ca13b53da8eb1e5ef660ca44d8a
parent8491abc4805cee3b2dfb74817ef8908df085c5cf (diff)
downloadsurgery-log-b12fe534ae3f2aea74f8c8506b3ad2fea321227c.tar.zst
surgery-log-b12fe534ae3f2aea74f8c8506b3ad2fea321227c.zip
Improved modal dialog messages.
-rw-r--r--logic/database.gd2
-rw-r--r--logic/stage.gd2
-rw-r--r--menu/menu.gd6
3 files changed, 5 insertions, 5 deletions
diff --git a/logic/database.gd b/logic/database.gd
index b952356..f3a5928 100644
--- a/logic/database.gd
+++ b/logic/database.gd
@@ -75,7 +75,7 @@ func delete_action():
if selected_idx < 0:
return
- dialog.setup("Do you want to delete entry with process ID '%s' from the database?" % db[selected_idx].process_id, "Yes, delete", "No")
+ dialog.setup("The entry with process ID '%s' will be deleted from the database." % db[selected_idx].process_id, "Yes, delete", "No")
dialog.connect("accepted", self, "delete_action_confirmed")
popup.open_popup("Delete entry?", dialog)
diff --git a/logic/stage.gd b/logic/stage.gd
index ef9ce3d..33b0644 100644
--- a/logic/stage.gd
+++ b/logic/stage.gd
@@ -108,7 +108,7 @@ func save_action():
func discard_action():
if get_stage().hash() != staged_entry_hash:
- dialog.setup("Do you want to discard the changes made?", "Yes, discard", "No")
+ dialog.setup("Changes made to this entry will be discarded.", "Yes, discard", "No")
dialog.connect("accepted", self, "discard_action_confirmed")
popup.open_popup("Discard changes?", dialog)
else:
diff --git a/menu/menu.gd b/menu/menu.gd
index 021c005..6bb5de0 100644
--- a/menu/menu.gd
+++ b/menu/menu.gd
@@ -69,7 +69,7 @@ func export_option_sets_action():
func clear_option_sets_action():
- dialog.setup("Do you want to delete all option sets?", "Yes, delete.", "No")
+ dialog.setup("All option sets from the dropdown menus will be deleted.", "Yes, delete.", "No")
dialog.connect("accepted", stage, "clear_option_sets")
popup.open_popup("Clear option sets?", dialog)
@@ -85,7 +85,7 @@ func export_data_action():
func clear_data_action():
- dialog.setup("Do you want to delete all entries from the database?", "Yes, delete.", "No")
+ dialog.setup("All entries from the database will be deleted.", "Yes, delete.", "No")
dialog.connect("accepted", database, "clear_database")
popup.open_popup("Clear database?", dialog)
@@ -97,7 +97,7 @@ func about_action():
# @DAM Hide this debug method before release.
func test_fake_db_action():
- dialog.setup("Do you want to delete all entries from the database and replace by fake entries?", "Yes, replace.", "No")
+ dialog.setup("All entries from the database will be deleted and new fake entries inserted.", "Yes", "No")
dialog.connect("accepted", database, "fake_database")
popup.open_popup("Fake DB?", dialog)