diff options
| author | dam <dam@gudinoff> | 2022-04-10 08:05:58 +0000 |
|---|---|---|
| committer | dam <dam@gudinoff> | 2022-04-10 08:05:58 +0000 |
| commit | 75791aecbff0d8adc1011f45a69877cabff616e0 (patch) | |
| tree | 7ca3844bfbe1192ea1daafafaaefa2a715684a70 | |
| parent | fd0fa8bebfdcd77177c58e68b8a742ab5a338f17 (diff) | |
| download | surgery-log-75791aecbff0d8adc1011f45a69877cabff616e0.tar.zst surgery-log-75791aecbff0d8adc1011f45a69877cabff616e0.zip | |
Renamed dropdown button on option_set.
| -rw-r--r-- | logic/database.gd | 2 | ||||
| -rw-r--r-- | logic/stage.gd | 2 | ||||
| -rw-r--r-- | option_set/option_set.gd | 2 | ||||
| -rw-r--r-- | option_set/option_set.tscn | 2 | ||||
| -rw-r--r-- | 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 @@ -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: |
