From a2af4c7d07259a091deabdceaa5da1a2f7757c5e Mon Sep 17 00:00:00 2001 From: dam Date: Sat, 18 Dec 2021 03:14:52 +0000 Subject: Add drag detection threshold to date picker. Prototype touch drag on database screen. --- logic/stage.gd | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'logic/stage.gd') 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() -- cgit v1.2.3