feat: first prompts implemented, various small fixed
This commit is contained in:
parent
46a79eae61
commit
83a8973e6b
|
|
@ -183,17 +183,16 @@ func interact() -> void:
|
||||||
## Updates prompt label based on the interaction type and collected state
|
## Updates prompt label based on the interaction type and collected state
|
||||||
func _show_prompt() -> void:
|
func _show_prompt() -> void:
|
||||||
|
|
||||||
|
|
||||||
var overrides : Array[StringName] = []
|
var overrides : Array[StringName] = []
|
||||||
if playable is StoryPlayable:
|
if playable is StoryPlayable:
|
||||||
P.interaction(I18n.get_scene_caption(playable.scene_id))
|
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)
|
P.center(P.pick("collect_memento_ui"), overrides)
|
||||||
elif playable is CardBoard:
|
elif playable is CardBoard:
|
||||||
P.interaction("Mind Board")
|
P.interaction("Mind Board")
|
||||||
overrides = ["find connections"]
|
overrides = ["find connections"]
|
||||||
P.center(P.pick("collect_memento_ui"), overrides)
|
P.center(P.pick("collect_memento_ui"), overrides)
|
||||||
elif playable is CardBurner:
|
elif playable is CardBurner:
|
||||||
P.interaction("Door")
|
P.interaction("Move on")
|
||||||
overrides = ["leave"]
|
overrides = ["Move on"]
|
||||||
P.center(P.pick("collect_memento_ui"), overrides)
|
P.center(P.pick("collect_memento_ui"), overrides)
|
||||||
|
|
|
||||||
|
|
@ -53,6 +53,7 @@ mouse_filter = 2
|
||||||
[node name="CenterZone" type="MarginContainer" parent="CanvasLayer/SafeZone/CenterContainer"]
|
[node name="CenterZone" type="MarginContainer" parent="CanvasLayer/SafeZone/CenterContainer"]
|
||||||
custom_minimum_size = Vector2(700, 700)
|
custom_minimum_size = Vector2(700, 700)
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
|
mouse_filter = 2
|
||||||
theme_override_constants/margin_top = 42
|
theme_override_constants/margin_top = 42
|
||||||
theme_override_constants/margin_right = 42
|
theme_override_constants/margin_right = 42
|
||||||
|
|
||||||
|
|
@ -60,6 +61,7 @@ theme_override_constants/margin_right = 42
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
size_flags_horizontal = 4
|
size_flags_horizontal = 4
|
||||||
size_flags_vertical = 0
|
size_flags_vertical = 0
|
||||||
|
mouse_filter = 2
|
||||||
theme_override_styles/panel = SubResource("StyleBoxFlat_ba0r8")
|
theme_override_styles/panel = SubResource("StyleBoxFlat_ba0r8")
|
||||||
|
|
||||||
[node name="Interaction" type="Label" parent="CanvasLayer/SafeZone/CenterContainer/CenterZone/TopCenter"]
|
[node name="Interaction" type="Label" parent="CanvasLayer/SafeZone/CenterContainer/CenterZone/TopCenter"]
|
||||||
|
|
@ -110,6 +112,7 @@ offset_left = -230.5
|
||||||
offset_right = 230.5
|
offset_right = 230.5
|
||||||
offset_bottom = 98.33334
|
offset_bottom = 98.33334
|
||||||
grow_horizontal = 2
|
grow_horizontal = 2
|
||||||
|
mouse_filter = 2
|
||||||
|
|
||||||
[node name="Instruction" type="Label" parent="CanvasLayer/SafeZone/Top"]
|
[node name="Instruction" type="Label" parent="CanvasLayer/SafeZone/Top"]
|
||||||
unique_name_in_owner = true
|
unique_name_in_owner = true
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue