diff options
| -rw-r--r-- | logic/popup.gd | 5 | ||||
| -rw-r--r-- | main.tscn | 19 | ||||
| -rw-r--r-- | readme.md | 17 |
3 files changed, 31 insertions, 10 deletions
diff --git a/logic/popup.gd b/logic/popup.gd index 7526678..5a1c2a5 100644 --- a/logic/popup.gd +++ b/logic/popup.gd @@ -11,6 +11,11 @@ func _init(): anchor_right = 1.0 anchor_bottom = 1.0 + +func _ready(): + get_node("back").connect("pressed", self, "hide") + + func popup_control(title: String, item: Control): self.title.text = title control = item @@ -27,7 +27,9 @@ script = ExtResource( 5 ) [node name="menu" type="MenuButton" parent="database"] anchor_left = 1.0 anchor_right = 1.0 +margin_left = -108.0 margin_right = -32.0 +margin_bottom = 162.0 grow_horizontal = 0 custom_fonts/font = ExtResource( 6 ) text = "≡" @@ -45,9 +47,6 @@ margin_right = -32.0 margin_bottom = -32.0 grow_horizontal = 0 grow_vertical = 0 -__meta__ = { -"_edit_use_anchors_": false -} [node name="delete" type="Button" parent="database/actions"] margin_right = 102.0 @@ -272,10 +271,22 @@ anchor_left = 0.05 anchor_top = 0.025 anchor_right = 0.95 anchor_bottom = 0.1 +margin_left = 80.0 +margin_right = -80.0 +margin_bottom = -20.0 align = 1 valign = 1 autowrap = true -uppercase = true + +[node name="back" type="Button" parent="popup"] +anchor_left = 0.05 +anchor_top = 0.025 +anchor_right = 0.95 +anchor_bottom = 0.1 +margin_right = -892.0 +margin_bottom = -20.0 +text = "<" +flat = true [node name="option_set_list" type="Control" parent="."] visible = false @@ -50,19 +50,24 @@ Surgery Log - [x] Check if import_option_sets, store_option_sets, store_database require the parameter save_changes; this requires changes on databse, stage and menu scripts; - [x] Maybe replace fonts with non-mono version; - [x] Fix option sets GUI element to provide word-wrap, otherwise long texts will be hidden; -- [ ] Maybe include different font with better icons; +- [ ] Add to popup: + - [ ] title; + - [ ] back/close button; - [ ] After save and load, entries opened on stage always detect changes (even when no change occurs); -- [ ] Check google icons as alternatives; -- [ ] Make all buttons with same style; -- [ ] Option set list should show title; -- [ ] Option set list should have close button: maybe use the "hide" signal to better control when the "option_set_list" and "popup" close; This way, the popup may have it's own button to close it? And maybe even a title? -- [ ] Make confirm dialog look better; +- [ ] Use popup to display confirmation messages; +- [ ] Theming: + - [ ] Make all buttons with same style; + - [ ] Maybe include different font with better icons; + - [ ] Make rounded corners + - [ ] LineEdit without fill and only one line below (stage may increase left margin) + - [ ] Increase scrollbar width (in content margin property) - [ ] Fix back button: - on stage screen should show pop-up asking it changes are to be discarded; - on file-pickers screen should close them; - on about screen should close it; - on auto-fill pop-up, should close it; - on database screen, should deselect selected item, otherwise should quit the app; + - on popup - [ ] Hide dialogs title bar (appear in the top with 1 or 2 pixels height); - [ ] Database menu and action buttons are not nice; Improve appearance; - [ ] Improve menu appearance; |
