From 6f40edf59df9f5314525ef43448d1f3bfdc23977 Mon Sep 17 00:00:00 2001 From: jujuforce Date: Sun, 15 Dec 2024 11:52:50 +0000 Subject: [PATCH] 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 Reviewed-on: https://gitea.tendokyu.moe/akanyan/mu3-mods/pulls/8 Co-authored-by: jujuforce Co-committed-by: jujuforce --- InfiniteGP/MU3/patch_UICredit.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/InfiniteGP/MU3/patch_UICredit.cs b/InfiniteGP/MU3/patch_UICredit.cs index b7fec5e..c643653 100644 --- a/InfiniteGP/MU3/patch_UICredit.cs +++ b/InfiniteGP/MU3/patch_UICredit.cs @@ -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); + } } } \ No newline at end of file