Compare commits

..

No commits in common. "b555ffaf466b59952c482e54da7cc0041d97e46c" and "fc3ad3a55597e810c94dd892c6e496915aa8eac3" have entirely different histories.

4 changed files with 11 additions and 7 deletions

View File

@ -2,10 +2,14 @@
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, str(count))) return TranslationServer.translate(_memento_prompts.get(count, ""))
func get_story_caption(id: Scenes.id) -> StringName: func get_story_caption(id: Scenes.id) -> StringName:
return _story_captions.get(id, "(missing story caption)") return TranslationServer.translate(_story_captions.get(id, ""))
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.9, 60.0 * delta) var k := pow(0.1, 60.0 * delta)
return (k) * current + (1.0-k) * goal return (1.0-k) * current + 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_story_caption(playable.scene_id)) P.interaction(I18n.get_scene_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.9, 60.0 * delta) var k := pow(0.02, 60.0 * delta)
return (k) * current + (1.0-k) * goal return (1.0-k) * current + k * goal
func _process(delta: float) -> void: func _process(delta: float) -> void: