Merge branch 'setam-demo' into development

This commit is contained in:
betalars 2025-04-30 18:26:14 +02:00
commit b3392c9fcf
9 changed files with 21 additions and 1 deletions

View File

@ -582,4 +582,5 @@ libraries = {
} }
[node name="Text" type="AudioStreamPlayer" parent="AnimationPlayer"] [node name="Text" type="AudioStreamPlayer" parent="AnimationPlayer"]
mix_target = 2
bus = &"text" bus = &"text"

View File

@ -483,6 +483,7 @@ libraries = {
} }
[node name="Text" type="AudioStreamPlayer" parent="AnimationPlayer"] [node name="Text" type="AudioStreamPlayer" parent="AnimationPlayer"]
mix_target = 2
bus = &"text" bus = &"text"
[node name="Music" type="AudioStreamPlayer" parent="AnimationPlayer"] [node name="Music" type="AudioStreamPlayer" parent="AnimationPlayer"]

View File

@ -830,6 +830,7 @@ libraries = {
} }
[node name="Text" type="AudioStreamPlayer" parent="AnimationPlayer"] [node name="Text" type="AudioStreamPlayer" parent="AnimationPlayer"]
mix_target = 2
bus = &"text" bus = &"text"
[node name="Music" type="AudioStreamPlayer" parent="AnimationPlayer"] [node name="Music" type="AudioStreamPlayer" parent="AnimationPlayer"]

View File

@ -639,4 +639,5 @@ libraries = {
} }
[node name="Text" type="AudioStreamPlayer" parent="AnimationPlayer"] [node name="Text" type="AudioStreamPlayer" parent="AnimationPlayer"]
mix_target = 2
bus = &"text" bus = &"text"

View File

@ -1639,6 +1639,7 @@ autoplay = "RESET"
script = SubResource("GDScript_tfc2r") script = SubResource("GDScript_tfc2r")
[node name="Lisa" type="AudioStreamPlayer" parent="logic/ScenePlayer"] [node name="Lisa" type="AudioStreamPlayer" parent="logic/ScenePlayer"]
mix_target = 2
bus = &"text" bus = &"text"
[node name="Moving" type="AudioStreamPlayer" parent="logic/ScenePlayer"] [node name="Moving" type="AudioStreamPlayer" parent="logic/ScenePlayer"]

View File

@ -222,6 +222,7 @@ func handle_mouse_button(input: InputEventMouseButton, to_handle = currently_act
to_handle.attached_to = sticky_note_container.get_child(current_sticky_note_id) to_handle.attached_to = sticky_note_container.get_child(current_sticky_note_id)
to_handle.reset_drag() to_handle.reset_drag()
current_context = NAVIGATE current_context = NAVIGATE
_return_sticky_notes_to_panels()
return return
else: else:
area.attach_sticky_note(to_handle) area.attach_sticky_note(to_handle)
@ -267,6 +268,10 @@ func _return_sticky_notes_to_panels():
for panel:StickyNotePanel in sticky_note_container.get_children(): for panel:StickyNotePanel in sticky_note_container.get_children():
panel.reclaim_sticky_note() panel.reclaim_sticky_note()
for node in dropzone.get_children():
if node is StickyNote:
node.is_dragable = true
func is_board_complete() -> bool: func is_board_complete() -> bool:
if mementos_collected == 4: if mementos_collected == 4:
for card in dropzone.get_children(): for card in dropzone.get_children():
@ -315,6 +320,7 @@ func insert_area(parent: Control, node: Area2D):
if node is StickyNote: if node is StickyNote:
node.attached_to = self node.attached_to = self
node.is_dragable = true
# Takes the inputs for control inputs # Takes the inputs for control inputs
func _input(event): func _input(event):

View File

@ -217,6 +217,7 @@ func attach_sticky_note(sticky_note: StickyNote) -> bool:
sticky_note.reparent(self) sticky_note.reparent(self)
sticky_note.position = sticky_note_position sticky_note.position = sticky_note_position
sticky_note.on_board = false sticky_note.on_board = false
sticky_note.is_dragable = false
current_sticky_note = sticky_note current_sticky_note = sticky_note
sticky_note.attached_to = self sticky_note.attached_to = self

View File

@ -159,7 +159,7 @@ func pick(id: int):
var winning_id var winning_id
print(options[1].text) print(options[1].text)
if !(options[1].text == "" and not id == 1): if !(options[1].text == "void" and not id == 1):
randomize() randomize()
winning_id = randi() % options.size() winning_id = randi() % options.size()

View File

@ -153,21 +153,29 @@ stretch_mode = 4
[node name="card" parent="childhood/PanelContainer" instance=ExtResource("4_48hwg")] [node name="card" parent="childhood/PanelContainer" instance=ExtResource("4_48hwg")]
process_mode = 4 process_mode = 4
position = Vector2(1164, 301) position = Vector2(1164, 301)
collision_layer = 0
collision_mask = 0
text = "Lukas did not ask for consent, he didn't explain a thing, I didn't even move! Yet he dared to assume, that " text = "Lukas did not ask for consent, he didn't explain a thing, I didn't even move! Yet he dared to assume, that "
[node name="sticky-note" parent="childhood/PanelContainer/card" instance=ExtResource("5_sfuv4")] [node name="sticky-note" parent="childhood/PanelContainer/card" instance=ExtResource("5_sfuv4")]
position = Vector2(39, 120) position = Vector2(39, 120)
rotation = -0.103332 rotation = -0.103332
collision_layer = 0
collision_mask = 0
text = "I was wet so I must have been into it" text = "I was wet so I must have been into it"
[node name="card2" parent="childhood/PanelContainer" instance=ExtResource("4_48hwg")] [node name="card2" parent="childhood/PanelContainer" instance=ExtResource("4_48hwg")]
process_mode = 4 process_mode = 4
position = Vector2(1287, 589) position = Vector2(1287, 589)
collision_layer = 0
collision_mask = 0
text = "Lukas jumped me, he didn't even explain a thing or ask consent. I was confused and paralised, so " text = "Lukas jumped me, he didn't even explain a thing or ask consent. I was confused and paralised, so "
[node name="sticky-note" parent="childhood/PanelContainer/card2" instance=ExtResource("5_sfuv4")] [node name="sticky-note" parent="childhood/PanelContainer/card2" instance=ExtResource("5_sfuv4")]
position = Vector2(-208.193, 96.8376) position = Vector2(-208.193, 96.8376)
rotation = 0.123092 rotation = 0.123092
collision_layer = 0
collision_mask = 0
text = "I didn't say stop" text = "I didn't say stop"
[node name="Button" type="Button" parent="."] [node name="Button" type="Button" parent="."]