aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordam <dam@gudinoff>2022-01-25 23:56:04 +0000
committerdam <dam@gudinoff>2022-01-25 23:56:04 +0000
commitb35d5de65158ee015a8332f8fd614e2ee5cacf6e (patch)
tree20a461208168b10aa985a07b4f68e1f0fc95afb3
parente704e2cca56aed71f6e41dd060ddab5babd10569 (diff)
downloadsurgery-log-b35d5de65158ee015a8332f8fd614e2ee5cacf6e.tar.zst
surgery-log-b35d5de65158ee015a8332f8fd614e2ee5cacf6e.zip
Draft prototype of option sets structure.
-rw-r--r--logic/stage.gd40
-rw-r--r--main.gd1
2 files changed, 35 insertions, 6 deletions
diff --git a/logic/stage.gd b/logic/stage.gd
index 1601522..3c3d59c 100644
--- a/logic/stage.gd
+++ b/logic/stage.gd
@@ -9,9 +9,9 @@ const OPTION_SETS_FILE_PATH: String = "user://option_sets.csv"
var staged_entry := {}
var option_sets := {
"place": {
- "bloco central": null,
- "tondela": null,
- "xpto_00": null,
+ "P0": null,
+ "P1": null,
+ "P2": null,
"xpto_01": null,
"xpto_02": null,
"xpto_03": null,
@@ -42,6 +42,16 @@ var option_sets := {
"xpto_28": null,
"xpto_29": null,
},
+ "first_assistant": {
+ "FA0": null,
+ "FA1": null,
+ "FA2": null,
+ },
+ "anesthesia": {
+ "AN0": null,
+ "AN1": null,
+ "AN2": null,
+ },
"type": {
"A": {
"sub_type": {
@@ -50,14 +60,34 @@ var option_sets := {
"aaA": null,
"aaB": null,
"aaC": null,
- }
+ },
+ "pathology": {
+ "aaP0": null,
+ "aaP1": null,
+ "aaP2": null,
+ },
+ "intervention": {
+ "aaI0": null,
+ "aaI1": null,
+ "aaI2": null,
+ },
},
"aB": {
"sub_sub_type": {
"abA": null,
"abB": null,
"abC": null,
- }
+ },
+ "pathology": {
+ "abP0": null,
+ "abP1": null,
+ "abP2": null,
+ },
+ "intervention": {
+ "abI0": null,
+ "abI1": null,
+ "abI2": null,
+ },
},
},
},
diff --git a/main.gd b/main.gd
index 768366a..a1b9aca 100644
--- a/main.gd
+++ b/main.gd
@@ -14,7 +14,6 @@ func _init():
PhysicsServer.set_active(false)
-
func _process(delta: float):
var keyboard_height: int = OS.get_virtual_keyboard_height()
for it in controls_sensible_to_keyboard: