mirror of
https://github.com/Gurge44/EndlessHostRoles.git
synced 2026-10-20 01:46:25 +00:00
increase loading hint size
This commit is contained in:
1 parent
f1b7fec6c5
commit
7ce060cd6b
1 file changed
+9
-1
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user