feat: first prompts implemented, various small fixed

This commit is contained in:
tiger tiger tiger 2026-01-23 15:30:58 +01:00
parent 46a79eae61
commit 83a8973e6b
2 changed files with 6 additions and 4 deletions

View File

@ -183,17 +183,16 @@ func interact() -> void:
## Updates prompt label based on the interaction type and collected state
func _show_prompt() -> void:
var overrides : Array[StringName] = []
if playable is StoryPlayable:
P.interaction(I18n.get_scene_caption(playable.scene_id))
overrides = ["read again" if collected else "MementoLabel_collect"]
overrides = ["listen again" if collected else "MementoLabel_collect"]
P.center(P.pick("collect_memento_ui"), overrides)
elif playable is CardBoard:
P.interaction("Mind Board")
overrides = ["find connections"]
P.center(P.pick("collect_memento_ui"), overrides)
elif playable is CardBurner:
P.interaction("Door")
overrides = ["leave"]
P.interaction("Move on")
overrides = ["Move on"]
P.center(P.pick("collect_memento_ui"), overrides)

View File

@ -53,6 +53,7 @@ mouse_filter = 2
[node name="CenterZone" type="MarginContainer" parent="CanvasLayer/SafeZone/CenterContainer"]
custom_minimum_size = Vector2(700, 700)
layout_mode = 2
mouse_filter = 2
theme_override_constants/margin_top = 42
theme_override_constants/margin_right = 42
@ -60,6 +61,7 @@ theme_override_constants/margin_right = 42
layout_mode = 2
size_flags_horizontal = 4
size_flags_vertical = 0
mouse_filter = 2
theme_override_styles/panel = SubResource("StyleBoxFlat_ba0r8")
[node name="Interaction" type="Label" parent="CanvasLayer/SafeZone/CenterContainer/CenterZone/TopCenter"]
@ -110,6 +112,7 @@ offset_left = -230.5
offset_right = 230.5
offset_bottom = 98.33334
grow_horizontal = 2
mouse_filter = 2
[node name="Instruction" type="Label" parent="CanvasLayer/SafeZone/Top"]
unique_name_in_owner = true