refactor: use localization constants at remaining call sites

This commit is contained in:
2026-06-23 21:41:24 +08:00
parent 51fc080ff2
commit 8d70ce8862
11 changed files with 30 additions and 30 deletions
+2 -2
View File
@@ -133,13 +133,13 @@ public class GamePatch : PatchImpl<GamePatch>
if (_speedDownKey.keyValue)
{
GameUpsFactor.Value = Maths.Clamp(Math.Round((GameUpsFactor.Value - 0.5) * 2.0) / 2.0, 0.1, 10.0);
UIRoot.instance.uiGame.generalTips.InvokeRealtimeTipAhead(string.Format("Logical frame rate: {0}x".Translate(), GameUpsFactor.Value));
UIRoot.instance.uiGame.generalTips.InvokeRealtimeTipAhead(string.Format(I18NKeys.LogicalFrameRate0X.Translate(), GameUpsFactor.Value));
}
if (_speedUpKey.keyValue)
{
GameUpsFactor.Value = Maths.Clamp(Math.Round((GameUpsFactor.Value + 0.5) * 2.0) / 2.0, 0.1, 10.0);
UIRoot.instance.uiGame.generalTips.InvokeRealtimeTipAhead(string.Format("Logical frame rate: {0}x".Translate(), GameUpsFactor.Value));
UIRoot.instance.uiGame.generalTips.InvokeRealtimeTipAhead(string.Format(I18NKeys.LogicalFrameRate0X.Translate(), GameUpsFactor.Value));
}
}