From 75791aecbff0d8adc1011f45a69877cabff616e0 Mon Sep 17 00:00:00 2001 From: dam Date: Sun, 10 Apr 2022 08:05:58 +0000 Subject: Renamed dropdown button on option_set. --- logic/database.gd | 2 +- logic/stage.gd | 2 +- option_set/option_set.gd | 2 +- option_set/option_set.tscn | 2 +- readme.md | 2 -- 5 files changed, 4 insertions(+), 6 deletions(-) diff --git a/logic/database.gd b/logic/database.gd index 2f091b6..04f617f 100644 --- a/logic/database.gd +++ b/logic/database.gd @@ -8,7 +8,7 @@ var db: Array var selected_idx: int var staged_idx: int -onready var stage := get_node("/root/main/stage") # as Stage @DAM Commented to avoid cyclic dependency. +onready var stage := get_node("/root/main/stage") # as Stage # Commented to avoid cyclic dependencies. onready var delete_button := get_node("actions/delete") as Button onready var edit_button := get_node("actions/edit") as Button onready var add_button := get_node("actions/add") as Button diff --git a/logic/stage.gd b/logic/stage.gd index 764ee52..747cccf 100644 --- a/logic/stage.gd +++ b/logic/stage.gd @@ -74,7 +74,7 @@ func _ready(): "intervention": intervention } for key in option_sets_map: - var button := option_sets_map[key].get_node("options") as Button # @DAM Maybe rename "options". Also requires rename on option_set. + var button := option_sets_map[key].get_node("button") as Button button.connect("pressed", self, "show_options", [key]) diff --git a/option_set/option_set.gd b/option_set/option_set.gd index bb37736..25ca0ff 100644 --- a/option_set/option_set.gd +++ b/option_set/option_set.gd @@ -14,7 +14,7 @@ func get_text() -> String: var selected_idx: int onready var input := get_node("input") as LineEdit -onready var button := get_node("options") as Button # @DAM Maybe rename this. Also requires renaming on stage. +onready var button := get_node("button") as Button onready var popup := get_node("/root/main/popup") as ModalPopup onready var options := get_node("/root/main/option_set_list") as OptionSetList diff --git a/option_set/option_set.tscn b/option_set/option_set.tscn index 3d09674..26a042d 100644 --- a/option_set/option_set.tscn +++ b/option_set/option_set.tscn @@ -21,7 +21,7 @@ __meta__ = { "_edit_use_anchors_": false } -[node name="options" type="Button" parent="."] +[node name="button" type="Button" parent="."] anchor_left = 1.0 anchor_right = 1.0 anchor_bottom = 1.0 diff --git a/readme.md b/readme.md index c347666..223a5c7 100644 --- a/readme.md +++ b/readme.md @@ -66,8 +66,6 @@ Surgery Log - on auto-fill pop-up, should close it; - on database screen, should deselect selected item, otherwise should quit the app; - [x] db entry should be printed as "%9s | %4s | %yyyy-%MM"; -- [ ] Adjust theme: - - [ ] Increase scrollbar width (in content margin property) - [ ] Create light theme; - [ ] Create theme entry in menu and save on settings file; - [ ] Cleanup code: -- cgit v1.2.3