aboutsummaryrefslogtreecommitdiff
path: root/logic/stage.gd
diff options
context:
space:
mode:
Diffstat (limited to 'logic/stage.gd')
-rw-r--r--logic/stage.gd11
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()