From 2421326777e9c9266893c8f09fc731f8535c0fa5 Mon Sep 17 00:00:00 2001 From: Tiger Jove Date: Mon, 19 Jan 2026 12:09:07 +0100 Subject: [PATCH] feat: basic wiring of volunteer room, probably not all interactables are in the right position or link to the right constants/ids. --- .../volunteer_room/scenes/autism.tscn | 2 +- .../volunteer_room/scenes/burnout.tscn | 2 +- .../scenes/eating_challenges.tscn | 2 +- .../volunteer_room/scenes/self_advocacy.tscn | 2 +- .../volunteer_room/scenes/therapy_uni.tscn | 2 +- .../scenes/therapy_volunteer.tscn | 2 +- .../volunteer_room/scenes/trans.tscn | 2 +- .../volunteer_room/scenes/trauma.tscn | 2 +- .../volunteer_room/volunteer_room.tscn | 135 ++---------------- .../volunteer_room/volunteer_scene_players.gd | 34 +++++ .../volunteer_scene_players.gd.uid | 1 + .../interactable/interactable.tscn | 1 - 12 files changed, 57 insertions(+), 130 deletions(-) create mode 100644 src/base-environments/volunteer_room/volunteer_scene_players.gd create mode 100644 src/base-environments/volunteer_room/volunteer_scene_players.gd.uid diff --git a/src/base-environments/volunteer_room/scenes/autism.tscn b/src/base-environments/volunteer_room/scenes/autism.tscn index b824a52..411314c 100644 --- a/src/base-environments/volunteer_room/scenes/autism.tscn +++ b/src/base-environments/volunteer_room/scenes/autism.tscn @@ -466,9 +466,9 @@ offset_right = -424.0 grow_horizontal = 2 grow_vertical = 2 script = ExtResource("1_hmyim") +scene_id = 7 story_array = PackedStringArray("I don\'t know if this was the best or the worst Christmas I remember.", "What I know is: I have never been so mad at my brother...", "it\'s not like I don\'t love him. It\'s not like I didn\'t like to care for him, when he came home with a meltdown.", "I cared a lot for him. My parents cared a lot for him, everybody cared a lot for him.", "He always had it sooo difficult because of his autism. As if I wasn\'t bullied too.", "Anyway … I don’t know why he needed to tell me about his almost first time on that christmas eve.", "I was immedieately stressed because usually that means he needs comfort but in hindsight I think he meant to tell something wholesome?", "He told me about wanting \"it\" to happen so badly that he was increadibly relieved when his girlfriend just wanted to play videogames instead.", "And it just hit me like a train.", "I just unloaded everything on him:", "How I got treated, how he never gave me comfort, how much I had to care for him and how scared I was …", "every time I recognized myself trough him.", "He just sat there in disbelief until I lost my words.", "I wanted to stare him into understanding, I wanted him to be mad, but he just sat there. He didn\'t look me in the eye - and then just took his phone, and wrote on it.", "\"Sorry\"", "my phone rang \"I never knew what to say. Can I write instead?\"", "That look on his face, I... I didn\'t want to be angry anymore. I needed to be sad.", "So I curled next to him and wrote back.", "He\'d never made me feel seen before. But with how much he wrote to me about ADHD and Autism that evening,", "it felt like he understood me better than I myself did.") paragraph_lengths = PackedInt32Array(4, 6, 7, 8, 11, 13, 16, 17, 19) -progress = -1.0 [node name="PanelContainer" type="PanelContainer" parent="."] layout_mode = 2 diff --git a/src/base-environments/volunteer_room/scenes/burnout.tscn b/src/base-environments/volunteer_room/scenes/burnout.tscn index 4e0922a..83c7067 100644 --- a/src/base-environments/volunteer_room/scenes/burnout.tscn +++ b/src/base-environments/volunteer_room/scenes/burnout.tscn @@ -466,9 +466,9 @@ offset_right = -424.0 grow_horizontal = 2 grow_vertical = 2 script = ExtResource("1_280pk") +scene_id = 11 story_array = PackedStringArray("I don\'t recognize myself anymore.", " I\'ve gotten through Uni in time. And working as a teacher brings me so much joy.", "The kids love me. My colleagues admire me.", "spending nights and weekends to prepare for my lessons so the quick witted kids are challenged and the other kids don\'t feel left behind.", "I know the good I do for them.", "But I just keep falling behind.", "It\'s bad enough to try to reach parents that just won\'t show interest in their wonderful kids. But at least I can do the right thing for these kids.", "But dealing with parents that insist every flaw their child has is my mistake? I just can\'t!", "And I am more and more afraid of making mistakes.", "I mean if all the usually good kids have worse grades in my class am I actually doing something wrong with how I teach?", "Maybe I shouldn\'t have them do so many projects and do more tests like everybody else.", "If only I could bring myself to start grading...", "I get more and more irritated. And the classroom noise that once brought joy is starting to give me anxiety.", "I can\'t even bring myself to reply to Jules anymore because I know I\'m losing weight again and I can\'t have her be worried about me.", "She deserves to see the best version of myself. So do the kids.", "And I know all of this will get better if I just pull myself together.", "Just breathe and work. I have chosen the right path through life.", "I must be okay.") paragraph_lengths = PackedInt32Array(3, 4, 5, 7, 10, 13, 14, 14, 17) -progress = -1.0 [node name="PanelContainer" type="PanelContainer" parent="."] layout_mode = 2 diff --git a/src/base-environments/volunteer_room/scenes/eating_challenges.tscn b/src/base-environments/volunteer_room/scenes/eating_challenges.tscn index ec64b6b..0a925cd 100644 --- a/src/base-environments/volunteer_room/scenes/eating_challenges.tscn +++ b/src/base-environments/volunteer_room/scenes/eating_challenges.tscn @@ -466,9 +466,9 @@ offset_right = -424.0 grow_horizontal = 2 grow_vertical = 2 script = ExtResource("1_86ec2") +scene_id = 8 story_array = PackedStringArray("God I am so \"happy\" mom took care of everything at home. The dishes, the laundry, the trash, the groceries, the food.", "But guess what: when you are at university, they don\'t provide a mom with your dorm.", "And suddenly, you don\'t just need to study for your first semester, you need to learn to survive on your own. Good luck building good habits with that.", "I got really thin.", "I didn\'t really manage to eat at home, I didn\'t have the money to eat takeout all the time and oh my god:", "how do students manage to survive in a cafeteria?", "I mean: How do they manage to socialise, attend all the lectures, find relationships and even look passable with all that going on?", "Is it just me? I don\'t know.", "Who I am glad about tho is Jules. She has an eating order history and someday had enough of seeing my body crumble and decieded to basically adopt me.", "I could never really relate with her former eating discorder thoughts she was probably trying to get out of my head.", "But I can\'t argue against her coping strategies helping my body get the food it needed.") paragraph_lengths = PackedInt32Array(1, 2, 6, 8, 10) -progress = -1.0 [node name="PanelContainer" type="PanelContainer" parent="."] layout_mode = 2 diff --git a/src/base-environments/volunteer_room/scenes/self_advocacy.tscn b/src/base-environments/volunteer_room/scenes/self_advocacy.tscn index b5626a0..0c53ff3 100644 --- a/src/base-environments/volunteer_room/scenes/self_advocacy.tscn +++ b/src/base-environments/volunteer_room/scenes/self_advocacy.tscn @@ -466,9 +466,9 @@ offset_right = -424.0 grow_horizontal = 2 grow_vertical = 2 script = ExtResource("1_8utmq") +scene_id = 6 story_array = PackedStringArray("I want to like that mental health is being taught during teacher training now. I mean I wish at least some of my teachers had known a thing or two when I grew up.", "But the lecture I had? Phew!", "ADHD was one big issue:", "Having difficulties completing tasks that are not rewarding or urgent, having trouble in dealing with emotions, being forgetful, being unable to make or follow through with plans, chronic unrest...", "I never really managed to grasp the concept because I couldn\'t tell the difference to myself!", "And the looks I got when I asked back.", "Did they think I had ADHD? Did my teachers think that? Did Mr. Thomas lie when he said I was gifted? I ...", "thinking about that just makes me mad.", "But it is so much worse with Autism. A disorder for boys that show no interest in other children and will neither look you in the eye nor understand your authority.", "My brother is probably one of the most caring people I know!", "He just needs trust to open up. So give him time and you will wish more kids had his sense of authority.", "He would never talk behind your back or lie to you. And he\'d lie if he pretended to respect authority that had not been earned.", "And he\'d lie if he pretended to respect authority that had not been earned.") paragraph_lengths = PackedInt32Array(1, 4, 5, 7, 9, 10, 12) -progress = -1.0 [node name="PanelContainer" type="PanelContainer" parent="."] layout_mode = 2 diff --git a/src/base-environments/volunteer_room/scenes/therapy_uni.tscn b/src/base-environments/volunteer_room/scenes/therapy_uni.tscn index d60371d..bead04c 100644 --- a/src/base-environments/volunteer_room/scenes/therapy_uni.tscn +++ b/src/base-environments/volunteer_room/scenes/therapy_uni.tscn @@ -461,9 +461,9 @@ offset_right = -424.0 grow_horizontal = 2 grow_vertical = 2 script = ExtResource("1_uxp36") +scene_id = 9 story_array = PackedStringArray("In hindsight I don\'t know if going to uni was the right decision.", "I doubt many professors would recommend me to come again.", "Me, the lazy student that just lacks the discipline to come to their lectures and do their assignments and learn for their exams. Sorry prof, I wanted to come but there was no class for me. ", "I didn\'t sign up to study math, biology and art history. I came here to study education.", "And my dear Mr. Professor:", "seeing your lacklustre lectures, I don\'t think there\'s much I can learn from you.", "So, rather than wasting my time on advanced algebra, I spend it on the student council to organize support I would have needed but didn\'t get.", "I have never worked or learned so much in my entire life.", "This is also where I got diagnosed by peer review.", "Who would have guessed that creating a social activity without alcohol or noise would attract all the neurodivergent students.", "This is also why I would maybe still do it all over again:", "Because these beautiful people very probably saved my life by not giving up on me and helping me get professional help.", "My therapist was somewhat old-fashioned and I got to learn from experience why deep psychology isn\'t recommended for autism or ADHD,", "but she didn\'t think I had that anyway.", "So we talked a lot about my depression, my sense of self and how it evolved from my past.", "She was a very good listener and had a gift for putting her finger on hurtful thoughts.", "She was never gentle in doing that, but she was right about one thing:", "Old thoughts are here to stay, but they can be rearranged.") paragraph_lengths = PackedInt32Array(0, 2, 5, 7, 9, 11, 14, 17) -progress = -1.0 [node name="PanelContainer" type="PanelContainer" parent="."] layout_mode = 2 diff --git a/src/base-environments/volunteer_room/scenes/therapy_volunteer.tscn b/src/base-environments/volunteer_room/scenes/therapy_volunteer.tscn index d56aa8b..72a2639 100644 --- a/src/base-environments/volunteer_room/scenes/therapy_volunteer.tscn +++ b/src/base-environments/volunteer_room/scenes/therapy_volunteer.tscn @@ -466,9 +466,9 @@ offset_right = -424.0 grow_horizontal = 2 grow_vertical = 2 script = ExtResource("1_ym0sv") +scene_id = 10 story_array = PackedStringArray("I sometimes wish I could go back in time to save myself from Lukas.", "Sometimes I even want to fight him one last time to make him feel how much he hurt me.", "I don\'t like these thoughts, because all they do is make my head spiral into an endless void of anger and doubt.", "So on a calm mind, I just hope he learned his lesson so his next love doesn\'t need to become a survivor.", "But do I regret being one?", "I mean it has made me go to therapy and that was a good thing.", "My therapist was pretty young and still in training.", "Talking to *him* about sex never really worked for me.", "So I still don\'t know what to do about my cravings. I\'d rather not have them but I can\'t deny they exist.", "At least he gave me the tools to figure it out on my own.", "Old thoughts are here to stay, he always said. But you can choose how to react.", "And while I choose to not react to my cravings for now, I can choose something different in the future.", "He also helped me manage the gauntlet that is an ADHD diagnosis. I suspect I wouldn\'t have the executive skills to get that on my own.", "So I guess I got my medication thanks to Lukas?", "And I can tell when to brace for my period because the weird urge to make my ex hit some very hard ground is quite specific.") paragraph_lengths = PackedInt32Array(2, 3, 4, 5, 8, 11, 12, 14) -progress = -1.0 [node name="PanelContainer" type="PanelContainer" parent="."] layout_mode = 2 diff --git a/src/base-environments/volunteer_room/scenes/trans.tscn b/src/base-environments/volunteer_room/scenes/trans.tscn index 9897540..9f77988 100644 --- a/src/base-environments/volunteer_room/scenes/trans.tscn +++ b/src/base-environments/volunteer_room/scenes/trans.tscn @@ -466,9 +466,9 @@ offset_right = -424.0 grow_horizontal = 2 grow_vertical = 2 script = ExtResource("1_d3khy") +scene_id = 4 story_array = PackedStringArray("Ahw, shiny math rocks!", "It\'s funny how small moments can put your whole world upside down.", "It was the first time I ever made a DnD Character. I had no clue what I was doing.", "Good thing Markus has been DMing for longer than I live, so he helped me with all the rules and bits and bobs.", "He said I could be anything - as long as it was a tank. After seeing my Twokinds poster, he first suggested me making a druid, but he also mentioned the Barbarian ...", "and approaching problems head-first and tearing everything apart while raging ... was just a mood I could get behind.", "But then came *that* question:", "\"Do you want to be a Boy-barian or a Girl-barian?\"", "And that inner turmoil about boys and girls and ... fuck! I can\'t deal with this so I just shrugged it off.", "\"Okay, then roll for Gender!\". He put a d20 in a cup and gave it to me. \"Even for girl, odd for boy and floor is complicated.\", he laughed.", "I didn\'t appreciate that: \"It\'s in a cup, how is it supposed to hit the floor?\"", "His tone was still friendly, but suddenly more serious.", "\"I was meaning to ask what result you\'d be hoping for so you need to roll blind. But you may also just throw that die at your DM and see what happens.\"", "I threw that die at my DM.", "\"So, floor it is?\"", "I ... I couldn\'t be mad at that.", "When he then asked me for my name, I just spat out \"Xavier\".", "\"Okay, Xavier. And how do we want to name your Barbarian?\" I ... also couldn\'t be mad at that.", "Eventually, we settled on Ruby:", "a bearded dwarven women with a strong attitude that - unlike most other dwarves - for some reason really doesn\'t mind being mistaken for a man.", "And weirdly ... that was the first \"female\" character I enjoyed playing.", "Even tho I really didn\'t want that die to land on girl.") paragraph_lengths = PackedInt32Array(0, 3, 5, 7, 8, 9, 10, 12, 13, 14, 15, 17, 19, 21) -progress = -1.0 [node name="PanelContainer" type="PanelContainer" parent="."] layout_mode = 2 diff --git a/src/base-environments/volunteer_room/scenes/trauma.tscn b/src/base-environments/volunteer_room/scenes/trauma.tscn index 841f3dc..a5ac3d1 100644 --- a/src/base-environments/volunteer_room/scenes/trauma.tscn +++ b/src/base-environments/volunteer_room/scenes/trauma.tscn @@ -466,9 +466,9 @@ offset_right = -424.0 grow_horizontal = 2 grow_vertical = 2 script = ExtResource("1_1pvsj") +scene_id = 7 story_array = PackedStringArray("I learned a lot during my voluntary year.", "It taught me the value of failing and feedback. It taught me how difficult school was for teachers too.", "And it taught me how messed up my school was because for the first time I\'ve met a peer group that made me feel welcome from the day we met.", "When I told them about being single, they were genuinely surprised. I was lovable to them and that was just a huge relief for me at the time.", "But the best thing about these seminar weeks was that old oven they had at the hostel.", "It was an old farmhouse with wooden beams everywhere and a nice warm nuck above the cob fireplace.", "One evening, Alex and Deanah went up with me to be cozy and talk. I told them about my comic stash, we cuddled, we cobbled when suddenly,", "Lukas sat on top of me, again. A pearl of sweat dropped from his nose onto my throat again. He started undoing his shirt again.", "I was starting to drift away, when Deanah shook me.", "I was so scared.", "They were so worried.", "They asked so many questions, about what just happend, so I told them how I messed up with Lukas", "and Deanah just tried to talk me into believing I got raped.", "I just ran away.", "It felt like everything was my fault. What if Lukas learned what I just said?", "I saw a playground and just started hitting this stupid wiggle clown.", "I didn\'t really notice how one of the adults came and sat near me on a swing.", "I eventually joined them.", "We talked a lot about the stars that night. How we alone can give meaning to the whole universe, because we gave it the ability to understand itself.", "To see its beauty. It helped a lot.", "In our next seminar week, there was a workshop about consent.", "I was unsure at first, but signed up for it nonetheless.", "This is where I understood that Lukas never asked me, that I froze because he jumped me, and that I am not alone.", "v") paragraph_lengths = PackedInt32Array(3, 5, 8, 12, 15, 16, 19, 14, 15, 16, 17, 18, 23) -progress = -1.0 [node name="PanelContainer" type="PanelContainer" parent="."] layout_mode = 2 diff --git a/src/base-environments/volunteer_room/volunteer_room.tscn b/src/base-environments/volunteer_room/volunteer_room.tscn index a93f7ef..2993e71 100644 --- a/src/base-environments/volunteer_room/volunteer_room.tscn +++ b/src/base-environments/volunteer_room/volunteer_room.tscn @@ -12,6 +12,7 @@ [ext_resource type="PackedScene" uid="uid://r8gjxitlwd1f" path="res://base-environments/volunteer_room/scenes/self_advocacy.tscn" id="13_5s6pb"] [ext_resource type="PackedScene" uid="uid://5dkocippxkwv" path="res://base-environments/volunteer_room/scenes/therapy_uni.tscn" id="14_upyac"] [ext_resource type="PackedScene" uid="uid://b8iaixkhsnahi" path="res://base-environments/volunteer_room/scenes/therapy_volunteer.tscn" id="15_ci4rn"] +[ext_resource type="Script" uid="uid://bexqccvdqi7ad" path="res://base-environments/volunteer_room/volunteer_scene_players.gd" id="16_5s6pb"] [ext_resource type="PackedScene" uid="uid://s48pybgsm5mo" path="res://base-environments/volunteer_room/scenes/trans.tscn" id="16_e1uao"] [ext_resource type="PackedScene" uid="uid://r1dj1l0k0s2e" path="res://base-environments/volunteer_room/scenes/trauma.tscn" id="17_my8p4"] [ext_resource type="PackedScene" uid="uid://brk4hjdf2x81a" path="res://logic-scenes/card_picker/card_picker.tscn" id="18_upyac"] @@ -72,86 +73,6 @@ _data = { &"RESET": SubResource("Animation_ri8p0") } -[sub_resource type="GDScript" id="GDScript_sg0pj"] -script/source = "extends AnimationPlayer - -var has_stage -var is_repeating = false - -func _ready() -> void: - Scenes.scene_finished.connect(scene_finished) - - # FIXME: this needs to be made prettier. - $autism.finished.connect(on_autism_done) - $burnout.finished.connect(on_burnout_done) - $university_eating.finished.connect(on_university_eating_done) - $university_advocacy.finished.connect(on_university_advocacy_done) - $therapy_uni.finished.connect(on_therapy_uni_done) - $therapy_volunteer.finished.connect(on_therapy_volunteer_done) - $trans.finished.connect(on_trans_done) - $trauma.finished.connect(on_trauma_done) - - Scenes.sign_up_for_sequence(play_scene, Scenes.id.ADULT_DND, 0) - Scenes.sign_up_for_sequence(play_scene, Scenes.id.ADULT_VOLUNTARY, 0) - Scenes.sign_up_for_sequence(play_scene, Scenes.id.ADULT_CHRISTMAS, 0) - Scenes.sign_up_for_sequence(play_scene, Scenes.id.ADULT_EATING, 0) - Scenes.sign_up_for_sequence(play_scene, Scenes.id.ADULT_UNI, 0) - Scenes.sign_up_for_sequence(play_scene, Scenes.id.ADULT_THERAPY, 0) - Scenes.sign_up_for_sequence(play_scene, Scenes.id.ADULT_BURNOUT, 0) - -func play_scene(id: int, repeat = false): - get_tree().call_group(\"interactables\", \"collapse\") - is_repeating = repeat - Input.mouse_mode = Input.MOUSE_MODE_HIDDEN - match id: - Scenes.id.ADULT_DND: $trans.play() - Scenes.id.ADULT_VOLUNTARY: $trauma.play() - Scenes.id.ADULT_CHRISTMAS: $autism.play() - Scenes.id.ADULT_EATING: $university_eating.play() - Scenes.id.ADULT_UNI: $university_advocacy.play() - Scenes.id.ADULT_THERAPY: - if Scenes.is_sequence_unlocked(Scenes.id.ADULT_UNI): - $therapy_uni.play() - else: - $therapy_volunteer.play() - Scenes.id.ADULT_BURNOUT: $burnout.play() - -func _on_ini_room(): - pass - -func scene_finished(_id: Scenes.id, _repeat: bool): - queue(\"RESET\") - -func play(anin_name: StringName = \"\", a: float = -1, b: float = 1, c: bool = false) -> void: - print_debug(\"anim player accessed!\") - super.play(anin_name, a, b, c) - -func on_autism_done(): - Scenes.continue_sequence(self) - $autism.hide() -func on_burnout_done(): - Scenes.continue_sequence(self) - $burnout.hide() -func on_university_eating_done(): - Scenes.continue_sequence(self) - $university_eating.hide() -func on_university_advocacy_done(): - Scenes.continue_sequence(self) - $university_advocacy.hide() -func on_therapy_uni_done(): - Scenes.continue_sequence(self) - $therapy_uni.hide() -func on_therapy_volunteer_done(): - Scenes.continue_sequence(self) - $therapy_volunteer.hide() -func on_trans_done(): - Scenes.continue_sequence(self) - $trans.hide() -func on_trauma_done(): - Scenes.continue_sequence(self) - $trauma.hide() -" - [sub_resource type="GDScript" id="GDScript_ri8p0"] script/source = "extends Panel @@ -306,40 +227,44 @@ shape = SubResource("CapsuleShape3D_2fihi") [node name="Collectables" type="Node3D" parent="."] [node name="KitchenInteractable" parent="Collectables" instance=ExtResource("5_my8p4")] -transform = Transform3D(-0.999999, 0, 8.742269e-08, 0, 1, 0, -8.742269e-08, 0, -0.999999, 1.10405, 1.4133, -2.59363) +transform = Transform3D(-0.999999, 0, 8.742269e-08, 0, 1, 0, -8.742269e-08, 0, -0.999999, 0.9962522, 0.9866532, -2.5936298) interaction = ExtResource("12_6rb4d") -[node name="BurnoutInteractaboe" parent="Collectables" instance=ExtResource("5_my8p4")] -transform = Transform3D(1.3113409e-07, 0, 0.999999, 0, 1, 0, -0.999999, 0, 1.3113409e-07, -2.62556, 1.0861979, 5.22733) +[node name="BurnoutInteractable" parent="Collectables" instance=ExtResource("5_my8p4")] +transform = Transform3D(1.3113409e-07, 0, 0.999999, 0, 1, 0, -0.999999, 0, 1.3113409e-07, -2.1812932, 0.8092947, 5.313688) interaction = ExtResource("11_kmoh8") [node name="DiceInteractable" parent="Collectables" instance=ExtResource("5_my8p4")] -transform = Transform3D(-0.70710593, 0, 0.70710605, 0, 1, 0, -0.70710605, 0, -0.70710593, -2.07945, 0.937191, 3.3940656) +transform = Transform3D(-0.70710593, 0, 0.70710605, 0, 1, 0, -0.70710605, 0, -0.70710593, -2.07945, 0.5828748, 3.3940656) interaction = ExtResource("16_e1uao") [node name="VoluntaryInteractable" parent="Collectables" instance=ExtResource("5_my8p4")] -transform = Transform3D(-4.3711392e-08, 0, -0.999999, 0, 1, 0, 0.999999, 0, -4.3711392e-08, 0.36332494, 1.41737, 4.938) +transform = Transform3D(-4.3711392e-08, 0, -0.999999, 0, 1, 0, 0.999999, 0, -4.3711392e-08, 0.36332494, 1.2541859, 4.9624853) interaction = ExtResource("13_5s6pb") +billboard = false [node name="TherapyInteractable" parent="Collectables" instance=ExtResource("5_my8p4")] transform = Transform3D(-0.999999, 0, 8.742269e-08, 0, 1, 0, -8.742269e-08, 0, -0.999999, 0.399901, 1.21835, 1.29166) interaction = ExtResource("15_ci4rn") +billboard = false [node name="OldThouhgtsInteractable" parent="Collectables" instance=ExtResource("5_my8p4")] -transform = Transform3D(1.3113399e-07, 0, 0.999999, 0, 1, 0, -0.999999, 0, 1.3113399e-07, -2.40979, 0.714116, 0.403546) +transform = Transform3D(1.3113399e-07, 0, 0.999999, 0, 1, 0, -0.999999, 0, 1.3113399e-07, -2.40979, 0.40426695, 0.403546) interaction = ExtResource("17_my8p4") [node name="AutismInteractable" parent="Collectables" instance=ExtResource("5_my8p4")] -transform = Transform3D(0.49999908, 0, 0.86602396, 0, 1, 0, -0.86602396, 0, 0.49999908, -1.87737, 1.21835, -4.111254) +transform = Transform3D(0.49999908, 0, 0.86602396, 0, 1, 0, -0.86602396, 0, 0.49999908, -1.7204193, 1.0439266, -4.4785666) interaction = ExtResource("10_gcdra") [node name="UniversityInteractable" parent="Collectables" instance=ExtResource("5_my8p4")] -transform = Transform3D(2.811378e-07, 0, 0.99999917, 0, 1, 0, -0.99999917, 0, 2.811378e-07, -2.6929827, 1.3418819, -2.7896698) +transform = Transform3D(-0.99997646, 0, 0.006737175, 0, 1, 0, -0.006737175, 0, -0.99997646, -2.012022, 1.593935, -0.18725526) interaction = ExtResource("14_upyac") +billboard = false [node name="Board" parent="Collectables" instance=ExtResource("5_my8p4")] transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -2.6904116, 1.240494, 4.441236) interaction = ExtResource("19_ci4rn") +billboard = false [node name="VoxelGI" type="VoxelGI" parent="."] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.08276367, 1.3269348, 0.05317688) @@ -450,39 +375,7 @@ unique_name_in_owner = true libraries = { &"": SubResource("AnimationLibrary_br20t") } -script = SubResource("GDScript_sg0pj") - -[node name="autism" parent="Scenes/ScenePlayer" instance=ExtResource("10_gcdra")] -story_array = [] -paragraph_lengths = [1] - -[node name="burnout" parent="Scenes/ScenePlayer" instance=ExtResource("11_kmoh8")] -story_array = [] -paragraph_lengths = [1] - -[node name="university_eating" parent="Scenes/ScenePlayer" instance=ExtResource("12_6rb4d")] -story_array = [] -paragraph_lengths = [1] - -[node name="university_advocacy" parent="Scenes/ScenePlayer" instance=ExtResource("13_5s6pb")] -story_array = [] -paragraph_lengths = [1] - -[node name="therapy_uni" parent="Scenes/ScenePlayer" instance=ExtResource("14_upyac")] -story_array = [] -paragraph_lengths = [1] - -[node name="therapy_volunteer" parent="Scenes/ScenePlayer" instance=ExtResource("15_ci4rn")] -story_array = [] -paragraph_lengths = [1] - -[node name="trans" parent="Scenes/ScenePlayer" instance=ExtResource("16_e1uao")] -story_array = [] -paragraph_lengths = [1] - -[node name="trauma" parent="Scenes/ScenePlayer" instance=ExtResource("17_my8p4")] -story_array = [] -paragraph_lengths = [1] +script = ExtResource("16_5s6pb") [node name="UI" type="Control" parent="."] unique_name_in_owner = true diff --git a/src/base-environments/volunteer_room/volunteer_scene_players.gd b/src/base-environments/volunteer_room/volunteer_scene_players.gd new file mode 100644 index 0000000..21a9ac1 --- /dev/null +++ b/src/base-environments/volunteer_room/volunteer_scene_players.gd @@ -0,0 +1,34 @@ +extends AnimationPlayer + +var has_stage +var is_repeating = false + +func _ready() -> void: + Scenes.scene_finished.connect(scene_finished) + +func play_scene(id: int, repeat = false): + get_tree().call_group("interactables", "collapse") + is_repeating = repeat + Input.mouse_mode = Input.MOUSE_MODE_HIDDEN + match id: + Scenes.id.ADULT_DND: $trans.play() + Scenes.id.ADULT_VOLUNTARY: $trauma.play() + Scenes.id.ADULT_CHRISTMAS: $autism.play() + Scenes.id.ADULT_EATING: $university_eating.play() + Scenes.id.ADULT_UNI: $university_advocacy.play() + Scenes.id.ADULT_THERAPY: + if Scenes.is_sequence_unlocked(Scenes.id.ADULT_UNI): + $therapy_uni.play() + else: + $therapy_volunteer.play() + Scenes.id.ADULT_BURNOUT: $burnout.play() + +func _on_ini_room(): + pass + +func scene_finished(_id: Scenes.id, _repeat: bool): + queue("RESET") + +func play(anin_name: StringName = "", a: float = -1, b: float = 1, c: bool = false) -> void: + print_debug("anim player accessed!") + super.play(anin_name, a, b, c) diff --git a/src/base-environments/volunteer_room/volunteer_scene_players.gd.uid b/src/base-environments/volunteer_room/volunteer_scene_players.gd.uid new file mode 100644 index 0000000..d449add --- /dev/null +++ b/src/base-environments/volunteer_room/volunteer_scene_players.gd.uid @@ -0,0 +1 @@ +uid://bexqccvdqi7ad diff --git a/src/logic-scenes/interactable/interactable.tscn b/src/logic-scenes/interactable/interactable.tscn index e6687fe..b971215 100644 --- a/src/logic-scenes/interactable/interactable.tscn +++ b/src/logic-scenes/interactable/interactable.tscn @@ -17,7 +17,6 @@ metadata/_custom_type_script = "uid://bp6s7vhdd6btk" [node name="Frame" type="Sprite3D" parent="."] pixel_size = 0.0005 -billboard = 1 no_depth_test = true render_priority = 100 texture = ExtResource("2_ih54h")