diff options
| author | dam <dam@gudinoff> | 2021-12-18 03:14:52 +0000 |
|---|---|---|
| committer | dam <dam@gudinoff> | 2021-12-18 03:14:52 +0000 |
| commit | a2af4c7d07259a091deabdceaa5da1a2f7757c5e (patch) | |
| tree | fd630b7fd6f1de2ac6a285271a202eb84aeda5eb /logic/stage.gd | |
| parent | 3f29bb41d713240eb7ba831f68981674d4db9eb9 (diff) | |
| download | surgery-log-a2af4c7d07259a091deabdceaa5da1a2f7757c5e.tar.zst surgery-log-a2af4c7d07259a091deabdceaa5da1a2f7757c5e.zip | |
Add drag detection threshold to date picker.
Prototype touch drag on database screen.
Diffstat (limited to 'logic/stage.gd')
| -rw-r--r-- | logic/stage.gd | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/logic/stage.gd b/logic/stage.gd index 19018fa..207b451 100644 --- a/logic/stage.gd +++ b/logic/stage.gd @@ -1,4 +1,4 @@ -extends Control +extends ScrollContainer class_name Stage signal save # (database_entry: Dictionary) @@ -66,6 +66,7 @@ func get_stage() -> Dictionary: # "first_assistant": first_assistant.text, # "type": type.text, # }) + # @DAM Simplify all this... avoid creating multiple entries/dictionaries. var entry: Dictionary = { "process_id": process_id.text, "surgery_id": surgery_id.text, @@ -86,6 +87,14 @@ func get_stage() -> Dictionary: return entry +# @DAM Testing. Needs all children controllers to have Mouse > Filter : Pass. +func _gui_input(event): + accept_event() + if event is InputEventScreenDrag: + self.scroll_vertical -= event.relative.y + return + + func _notification(what: int): if what == MainLoop.NOTIFICATION_WM_GO_BACK_REQUEST: discard_action() |
