Ejemplo n.º 1
0
            public static void Postfix(VersionShower __instance)
            {
                string newString = __instance.text.Text;

                newString           += "\n\n\n\n\n\n\n[A86CF3FF]" + TwitchPlugin.Id + " 1.0.0[]";
                __instance.text.Text = newString;
            }
Ejemplo n.º 2
0
        public static void Postfix(VersionShower __instance)
        {
            var text = __instance.text;

            //text.Text += "\nloaded [FFBFCCFF]T[FF80D5FF]o[FFCC00FF]w[704FA8FF]n[FF0000FF] of[CC4D00FF] Us [FFFFFFFF]by [00FF00FF]slushiegoose[FFFFFFFF] ";
            text.Text += "\n\n\n\n\n\n\n\n\n[00FF00FF]loaded TownOfUs Mod v2.0.0 by slushiegoose[]";
        }
Ejemplo n.º 3
0
        public static void Postfix(VersionShower __instance)
        {
            var text = __instance.text;

            //text.text += "\nloaded <color=#FFBFCCFF>T[FF80D5FF]o[FFCC00FF]w[704FA8FF]n[FF0000FF] of[CC4D00FF] Us [FFFFFFFF]by [00FF00FF]slushiegoose[FFFFFFFF] </color>;
            text.text += " - <color=#00FF00FF>TownOfUs v2.2.1</color>";
        }
Ejemplo n.º 4
0
        // Token: 0x06000031 RID: 49 RVA: 0x00002D14 File Offset: 0x00000F14
        public static void Postfix(VersionShower __instance)
        {
            TextRenderer herysiaVersionShower =
                Object.FindObjectsOfType <TextRenderer>().FirstOrDefault(obj => obj.name == "HerysiaVersion");

            if (!herysiaVersionShower)
            {
                TextRenderer original = __instance.text;
                herysiaVersionShower = Object.Instantiate(original, original.transform.parent);
                if (herysiaVersionShower.name == "Text(Clone)")
                {
                    herysiaVersionShower.transform.localPosition = new Vector3(10.43f,
                                                                               herysiaVersionShower.transform.localPosition.y, herysiaVersionShower.transform.localPosition.z);
                }
                else
                {
                    herysiaVersionShower.transform.localPosition = new Vector3(5.2f,
                                                                               herysiaVersionShower.transform.localPosition.y, herysiaVersionShower.transform.localPosition.z);
                }
                herysiaVersionShower.name         = "HerysiaVersion";
                herysiaVersionShower.RightAligned = true;
            }
            herysiaVersionShower.Text = string.Concat(new string[]
            {
                herysiaVersionShower.Text,
                "\n",
                "CrowdedSheriff",
                " v1.3.1-Herysia",
                " by Galster"
            });
        }
Ejemplo n.º 5
0
            static void Postfix(VersionShower __instance)
            {
                var obj = new GameObject();

                foreach (GameObject gameObj in UnityEngine.Object.FindObjectsOfType <GameObject>())
                {
                    if (gameObj.name.StartsWith("ReactorVersion"))
                    {
                        obj = gameObj;
                    }
                }
                if (obj != null)
                {
                    GameObject.Destroy(obj);
                }
                __instance.text.text = "\n\n";
                if (modsText != null)
                {
                    foreach (string str in modsText)
                    {
                        __instance.text.text += "\n";
                    }
                }
                __instance.text.text += "2021.4.14s";
                if (modsText != null)
                {
                    foreach (string str in modsText)
                    {
                        __instance.text.text += "\n" + str;
                    }
                }
                __instance.text.text          += "\nRole API <#F6FF00>" + versionString + "</color> by <#3AA3D9>DillyzThe1</color>.";
                __instance.text.text          += "\nReactor API <#F6FF00>2021.4.12s</color> by <#3AA3D9>js6pak</color>.";
                __instance.transform.position -= new Vector3(0f, 0f, 5f);
            }
Ejemplo n.º 6
0
        public static void Postfix(VersionShower __instance)
        {
            var text = __instance.text;

            //text.Text += "\nPogged [FFBFCCFF][FF80D5FF]o[FFCC00FF]w[704FA8FF]n[FF0000FF] of[CC4D00FF]  [FFFFFFFF]by [00FF00FF]Nekron[FFFFFFFF] ";
            text.Text += "\n\n\n\n\n\n\n\n\n[00FF00FF]Nekron Is Pog[]";
        }
Ejemplo n.º 7
0
        public static void Postfix(VersionShower __instance)
        {
            var reactorVS = GameObject.Find("ReactorVersion");

            GameObject.Destroy(reactorVS);

            TextRenderer text = __instance.text;

            text.Text += "\nLoaded [F7A700FF]Glaucus " + Glaucus.versionString + "[] by Pandraghon";
        }
Ejemplo n.º 8
0
        public static void Postfix(VersionShower __instance)
        {
            var reactorVS = GameObject.Find("ReactorVersion");

            GameObject.Destroy(reactorVS);

            TextRenderer text = __instance.text;

            text.Text += "\nLoaded [5E4CA6FF]BetterPolus v1.1.1-R []by Brybry";
        }
Ejemplo n.º 9
0
 static void Postfix(VersionShower __instance)
 {
     if (AmongUsClient.Instance.GameState == InnerNet.InnerNetClient.CJDCOJJNIGL.Started)
     {
         __instance.text.Text += "\n[FCCE03FF]TheOtherRoles[]\nModded by [FCCE03FF]Eisbison[]";
     }
     else
     {
         __instance.text.Text += "\n\n[FCCE03FF]TheOtherRoles[]\nModded by [FCCE03FF]Eisbison[]\nand [FFEB91FF]Thunderstorm584[]\nBalanced with [FFEB91FF]Dhalucard[]\nButton design by [FFEB91FF]Bavari[]";
     }
 }
Ejemplo n.º 10
0
            static void Postfix(VersionShower __instance)
            {
                var obj = UnityEngine.GameObject.Find("ReactorVersion");

                if (obj != null)
                {
                    UnityEngine.GameObject.Destroy(obj);
                }
                Essentials.Options.CustomOption.ShamelessPlug = false;
                __instance.text.Text += "\nPhoenix Role [F6FF00FF]" + versionString + " TESTING[] by [3AA3D9FF]DillyzThe1[].";
                __instance.text.Text += "\n[b91313FF]Do not leak[]!";
            }
Ejemplo n.º 11
0
        static void Postfix(VersionShower __instance)
        {
            string spacer = new String('\n', 15);

            if (__instance.text.Text.Contains(spacer))
            {
                __instance.text.Text += "\n[FFFFFFFF]- Loaded [FCCE03FF]TheOtherRoles[FFFFFFFF] v1.4\n  by [FCCE03FF]Eisbison";
            }
            else
            {
                __instance.text.Text += spacer + "[FFFFFFFF]- Loaded [FCCE03FF]TheOtherRoles[FFFFFFFF] v1.4\n  by [FCCE03FF]Eisbison";
            }
        }
Ejemplo n.º 12
0
        static void Postfix(VersionShower __instance)
        {
            string spacer = new String('\n', 15);
            string text   = "[FCCE03FF]TheOtherRoles[] v1.8.2:\n- Modded by [FCCE03FF]Eisbison[] and [FFEB91FF]Thunderstorm584[]\n- Balanced with [FFEB91FF]Dhalucard";

            if (__instance.text.Text.Contains(spacer))
            {
                __instance.text.Text += "\n" + text;
            }
            else
            {
                __instance.text.Text += spacer + text;
            }
        }
Ejemplo n.º 13
0
            static void Postfix(VersionShower __instance)
            {
                string spacer = new String('\n', 8);

                if (__instance.text.text.Contains(spacer))
                {
                    __instance.text.text = __instance.text.text + "\n" + fullCredentials;
                }
                else
                {
                    __instance.text.text = __instance.text.text + spacer + fullCredentials;
                }
                __instance.text.alignment = TMPro.TextAlignmentOptions.TopLeft;
            }
Ejemplo n.º 14
0
        private static void Postfix(VersionShower __instance)
        {
            string spacer = new String('\n', 21);
            bool   flag   = __instance.text.Text.Contains(spacer);

            if (flag)
            {
                __instance.text.Text += "\n[]- Loaded StreamerMode v1.2\n  by [FCCE03FF]Eisbison[]";
            }
            else
            {
                __instance.text.Text += spacer + "[]- Loaded StreamerMode v1.2\n  by [FCCE03FF]Eisbison[]";
            }
        }
Ejemplo n.º 15
0
            static void Postfix(VersionShower __instance)
            {
                string spacer          = new String('\n', 21);
                string fullCredentials = "[FCCE03FF]TheOtherRoles[] v2.1.0:\n- Modded by [FCCE03FF]Eisbison[] and [FFEB91FF]Thunderstorm584[]\n- Balanced with [FFEB91FF]Dhalucard[]\n- Button design by [FFEB91FF]Bavari[]";

                if (__instance.text.Text.Contains(spacer))
                {
                    __instance.text.Text += "\n" + fullCredentials;
                }
                else
                {
                    __instance.text.Text += spacer + fullCredentials;
                }
            }
Ejemplo n.º 16
0
            static void Postfix(VersionShower __instance)
            {
                string spacer          = new String('\n', 8);
                string fullCredentials = $"<color=#FCCE03FF>TheOtherRoles</color> v{TheOtherRolesPlugin.Major}.{TheOtherRolesPlugin.Minor}.{TheOtherRolesPlugin.Patch}:\n- Modded by <color=#FCCE03FF>Eisbison</color> and <color=#FFEB91FF>Thunderstorm584</color>\n- Balanced with <color=#FFEB91FF>Dhalucard</color>\n- Button design by <color=#FFEB91FF>Bavari</color>";

                if (__instance.text.text.Contains(spacer))
                {
                    __instance.text.text = __instance.text.text + "\n" + fullCredentials;
                }
                else
                {
                    __instance.text.text = __instance.text.text + spacer + fullCredentials;
                }
                __instance.text.alignment = TMPro.TextAlignmentOptions.TopLeft;
            }
Ejemplo n.º 17
0
            static void Postfix(VersionShower __instance)
            {
                var obj = new GameObject();

                foreach (GameObject gameObj in UnityEngine.Object.FindObjectsOfType <GameObject>())
                {
                    if (gameObj.name.StartsWith("ReactorVersion"))
                    {
                        obj = gameObj;
                    }
                }
                if (obj != null)
                {
                    GameObject.Destroy(obj);
                }
                __instance.text.text = "\n" + __instance.text.text + modsText + "\nRole API <#F6FF00>" + versionString + "</color> by <#3AA3D9>DillyzThe1</color>.";
            }
Ejemplo n.º 18
0
        public static void Postfix(VersionShower __instance)
        {
            foreach (Transform name in Object.FindObjectsOfType <Transform>())
            {
                if (name.parent != null)
                {
                    continue;
                }
                if (name.gameObject.name.Contains("ReactorVersion"))
                {
                    name.gameObject.SetActive(false);
                }
            }

            var text = __instance.text;

            //text.text += "\nloaded <color=#FFBFCCFF>T[FF80D5FF]o[FFCC00FF]w[704FA8FF]n[FF0000FF] of[CC4D00FF] Us [FFFFFFFF]by [00FF00FF]slushiegoose[FFFFFFFF] </color>;
            text.text += " - <color=#00FF00FF>ProxyOfUs v1.0.4</color>";
        }
Ejemplo n.º 19
0
            static void Postfix(VersionShower __instance)
            {
                string spacer = new String('\n', 1);

                if (__instance.text.text.Contains(spacer))
                {
                    __instance.text.text = __instance.text.text + "\n" + fullCredentials;
                }
                else
                {
                    __instance.text.text = __instance.text.text + spacer + fullCredentials;
                }
                __instance.text.alignment = TMPro.TextAlignmentOptions.BaselineRight;
                __instance.text.margin    = new Vector4(0, 0, 0.5f, 0);
                __instance.text.transform.localPosition = new Vector3(0, 0, 0);
                Vector3 topRight = Camera.main.ScreenToWorldPoint(new Vector3(Screen.width, Screen.height));

                __instance.text.transform.position = new Vector3(topRight.x - 0.1f, topRight.y - 1.1f);
            }
Ejemplo n.º 20
0
        public static void Postfix(VersionShower __instance)
        {
            byte[] logoData = Properties.Resources.logo;

            GameObject logo = new GameObject("LevelImposterLogo");

            logo.transform.position   = __instance.text.transform.position;
            logo.transform.position  += new Vector3(2.2f, -0.015f, 0);
            logo.transform.localScale = new Vector3(0.5f, 0.5f, 1.0f);
            logo.layer = (int)Layer.UI;

            Texture2D tex = new Texture2D(1, 1);

            ImageConversion.LoadImage(tex, logoData);
            SpriteRenderer spriteRenderer = logo.AddComponent <SpriteRenderer>();

            spriteRenderer.sprite = Sprite.Create(tex, new Rect(0.0f, 0.0f, tex.width, tex.height), new Vector2(0.5f, 0.5f), 100.0f);

            __instance.text.text += "\t\t\t      <size=65%>v" + MainHarmony.VERSION + "<size=100%>";
        }
Ejemplo n.º 21
0
            static void Postfix(VersionShower __instance)
            {
                var amongUsLogo = GameObject.Find("bannerLogo_AmongUs");

                if (amongUsLogo == null)
                {
                    return;
                }

                var credentials = UnityEngine.Object.Instantiate <TMPro.TextMeshPro>(__instance.text);

                credentials.transform.position = new Vector3(0, 0.15f, 0);
                credentials.SetText(ModTranslation.getString("creditsMain"));
                credentials.alignment = TMPro.TextAlignmentOptions.Center;
                credentials.fontSize *= 0.75f;

                var version = UnityEngine.Object.Instantiate <TMPro.TextMeshPro>(credentials);

                version.transform.position = new Vector3(0, -0.25f, 0);
                version.SetText(string.Format(ModTranslation.getString("creditsVersion"), TheOtherRolesPlugin.Version.ToString()));

                credentials.transform.SetParent(amongUsLogo.transform);
                version.transform.SetParent(amongUsLogo.transform);
            }
Ejemplo n.º 22
0
 static void Postfix(VersionShower __instance)
 {
     __instance.text.Text += "\n[FCCE03FF]TheOtherRoles[FFFFFFFF]";
     __instance.text.Text += "\nModded by [FCCE03FF]Eisbison";
 }
Ejemplo n.º 23
0
 public static void Postfix(VersionShower __instance)
 {
     __instance.text.Text += "\nloaded Sheriff Mod v1.2 by Woodi ";
 }
Ejemplo n.º 24
0
 static void Postfix(VersionShower __instance)
 {
     __instance.text.Text = __instance.text.Text + "   Extra Roles " + versionString + " Loaded. (http://www.extraroles.net/)";
 }
Ejemplo n.º 25
0
        public static void Postfix(VersionShower __instance)
        {
            var text = __instance.text;

            text.text += " - <color=#00FF00FF>TownOfUs " + TownOfUs.GetVersion() + "</color>";
        }
Ejemplo n.º 26
0
 public static void Postfix(VersionShower __instance)
 {
     __instance.text.text += "\nloaded Metamorphosis v1.1 by ckbr0 ";
 }
 public static void Postfix(VersionShower __instance)
 {
     __instance.text.verticalAlignment = TMPro.VerticalAlignmentOptions.Top;
     __instance.text.fontSize          = 2;
     __instance.text.text += "\nloaded Sheriff Mod v1.23 by <color=#FFD11AFF>Woodi</color>";
 }
Ejemplo n.º 28
0
 public static void Postfix(VersionShower __instance)
 {
     Harion.HarionVersionShower.Text.text += "\n<color=#2EADFFFF>Better AirShip</color> by Evan and Hardel";
 }
Ejemplo n.º 29
0
 static void Postfix(VersionShower __instance)
 {
     CustomOption.ShamelessPlug = false; //a
     __instance.text.Text      += "\nStop Time mod [F6FF00FF]" + versionString + "  TESTING[] by [3AA3D9FF]DillyzThe1[].";
     __instance.text.Text      += "\n[b91313FF]Do not leak[]!";
 }
Ejemplo n.º 30
0
 public static void Postfix(VersionShower __instance)
 {
     Reactor.Patches.ReactorVersionShower.Text.Text += "\n[2EADFFFF]AirShip Spawn[] by Evan";
 }