Compare commits

...

2 Commits

4 changed files with 7 additions and 11 deletions

View File

@ -2,14 +2,10 @@
extends Node extends Node
func get_memento_prompt(count: int) -> StringName: func get_memento_prompt(count: int) -> StringName:
return TranslationServer.translate(_memento_prompts.get(count, "")) return TranslationServer.translate(_memento_prompts.get(count, str(count)))
func get_story_caption(id: Scenes.id) -> StringName: func get_story_caption(id: Scenes.id) -> StringName:
return TranslationServer.translate(_story_captions.get(id, "")) return _story_captions.get(id, "(missing story caption)")
func get_scene_caption(id: Scenes.id) -> StringName:
return _story_captions.get(id)
const _memento_prompts: Dictionary[int, StringName] = { const _memento_prompts: Dictionary[int, StringName] = {
1: "There are three Mementos left to find.", 1: "There are three Mementos left to find.",

View File

@ -100,8 +100,8 @@ func _navigate_prev():
## frame rate independent FIR smoothing filter used for small or dynamic card adjustments ## frame rate independent FIR smoothing filter used for small or dynamic card adjustments
func _smooth(current: Vector2, goal: Vector2, delta: float) -> Vector2: func _smooth(current: Vector2, goal: Vector2, delta: float) -> Vector2:
var k := pow(0.1, 60.0 * delta) var k := pow(0.9, 60.0 * delta)
return (1.0-k) * current + k * goal return (k) * current + (1.0-k) * goal
func _process(delta: float): func _process(delta: float):

View File

@ -182,7 +182,7 @@ func interact() -> void:
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_story_caption(playable.scene_id))
overrides = ["listen 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:

View File

@ -116,8 +116,8 @@ func try_scroll():
## frame rate independent FIR smoothing filter used for small or dynamic card adjustments ## frame rate independent FIR smoothing filter used for small or dynamic card adjustments
func _smooth(current: float, goal: float, delta: float) -> float: func _smooth(current: float, goal: float, delta: float) -> float:
var k := pow(0.02, 60.0 * delta) var k := pow(0.9, 60.0 * delta)
return (1.0-k) * current + k * goal return (k) * current + (1.0-k) * goal
func _process(delta: float) -> void: func _process(delta: float) -> void: