increase loading hint size

This commit is contained in:
Gurge44 committed 2026-04-06 11:25:10 +02:00
1 parent f1b7fec6c5
commit 7ce060cd6b
1 file changed
+9 -1
+9 -1
View File
@@ -51,10 +51,18 @@ internal static class LoadingScreen
bool joke = IRandom.Instance.Next(20) == 0;
if (joke) index = IRandom.Instance.Next(40, 40 + JokeHintCount);
index = 45;
string text = Translator.GetString($"LoadingHint.{index}");
text = text.Insert(0, joke ? "<color=#ffff00>" : "<color=#00ffa5>");
if (text.Contains('\n')) text = text.Insert(text.IndexOf('\n'), "</color><#ffffff>");
text += "</color>";
int sizePercent = 100;
if (OperatingSystem.IsAndroid()) sizePercent += 20;
if (!Main.IntroDestroyed) sizePercent += 25;
if (sizePercent != 100) text = text.Insert(0, $"<size={sizePercent}%>");
Hint = text;
}
@@ -65,7 +73,7 @@ internal static class LoadingScreen
if (HintHideTimer <= 15f) HintHideTimer += Time.deltaTime;
PlayerControl lp = PlayerControl.LocalPlayer;
if (lp == null) return;
if (!lp) return;
PlayerAnimations anims = lp.MyPhysics.Animations;