1
0
forked from akanyan/mu3-mods

feat: allow hiding the game version

Allows hiding the version number too, because why not? Not related to GP stuff but this mod is also about managing the footer row elements

Co-authored-by: Jujuforce <jujuforce@gmail.com>
Reviewed-on: akanyan/mu3-mods#8
Co-authored-by: jujuforce <jujuforce@noreply.gitea.tendokyu.moe>
Co-committed-by: jujuforce <jujuforce@noreply.gitea.tendokyu.moe>
This commit is contained in:
2024-12-15 11:52:50 +00:00
committed by あかニャン
parent 88dcd1d94e
commit 6f40edf59d

View File

@ -14,6 +14,7 @@ class patch_UICredit: UICredit {
private MU3UICounter gpMinus_;
private MU3UIImageChanger netIcon_;
private MU3UIImageChanger groupIcon_;
private MU3Text version_;
private void onUpdateGP(int value) { /* nop */ }
public extern void orig_initialize();
@ -51,5 +52,10 @@ class patch_UICredit: UICredit {
);
groupIcon_.image.rectTransform.pivot = new Vector2(0f, 0.5f);
}
if (iniFile.getValue("Extra", "HideVersion", true))
{
version_.transform.localScale = new Vector3(0, 0, 0);
}
}
}