コード例 #1
0
 public CustomColor(string shortColorName, string fullColorName, Color32 mainColor, Color32 shadowColor)
 {
     this.shortColorName = CustomStringName.Register(shortColorName);
     this.fullColorName  = CustomStringName.Register(fullColorName);
     this.mainColor      = mainColor;
     this.shadowColor    = shadowColor;
 }
コード例 #2
0
        public static bool Prefix(ref string __result, [HarmonyArgument(0)] StringNames name)
        {
            var newResult = (int)name switch
            {
                999990 => "Watermelon",
                999991 => "Chocolate",
                999992 => "Sky Blue",
                999993 => "Beige",
                999994 => "Hot Pink",
                999995 => "Turquoise",
                999996 => "Lilac",
                999997 => "Rainbow",
                999998 => "Azure",
                _ => null
            };

            if (newResult != null)
            {
                __result = newResult;
                return(false);
            }

            return(true);
        }
    }
コード例 #3
0
        public bool GetString(out string text, StringNames stringId, Il2CppReferenceArray <Il2CppSystem.Object> parts)
        {
            string key = Enum.GetName(typeof(StringNames), stringId);

            if (Strings.TryGetValue(key, out text))
            {
                if (parts.Length != 0)
                {
                    List <object> parameters = new List <object>();
                    foreach (Il2CppSystem.Object obj in parts)
                    {
                        Il2CppSystem.Type t = obj.GetIl2CppType();
                        //BetterLanguagesPlugin.log.LogInfo("hey :" + t.ToString());
                        if (Il2CppSystem.Type.IsIntegerType(t))
                        {
                            parameters.Add(obj.Unbox <System.Int32>());
                        }
                        else
                        {
                            parameters.Add(obj.ToString());
                        }
                    }
                    text = string.Format(text, parameters.ToArray());
                }
                return(true);
            }
            return(false);
        }
コード例 #4
0
 static void Postfix(ref string __result, [HarmonyArgument(0)] StringNames id)
 {
     try {
         if (ExileController.Instance != null && ExileController.Instance.exiled != null)
         {
             PlayerControl player = Helpers.playerById(ExileController.Instance.exiled.Object.PlayerId);
             if (player == null)
             {
                 return;
             }
             // Exile role text
             if (id == StringNames.ExileTextPN || id == StringNames.ExileTextSN || id == StringNames.ExileTextPP || id == StringNames.ExileTextSP)
             {
                 __result = player.Data.PlayerName + " was The " + String.Join(" ", RoleInfo.getRoleInfoForPlayer(player).Select(x => x.name).ToArray());
             }
             // Hide number of remaining impostors on Jester win
             if (id == StringNames.ImpostorsRemainP || id == StringNames.ImpostorsRemainS)
             {
                 if (Jester.jester != null && player.PlayerId == Jester.jester.PlayerId)
                 {
                     __result = "";
                 }
             }
         }
     } catch {
         // pass - Hopefully prevent leaving while exiling to softlock game
     }
 }
コード例 #5
0
            public static bool Prefix(StringNames __stringNames, ref string __result)
            {
                bool wasCustom = false;

                foreach (CustomNumberOption custom in numOpts)
                {
                    if (__stringNames == custom.numOptionTitle)
                    {
                        wasCustom = true;
                        __result  = custom.hostOptionsName;
                    }
                }
                foreach (CustomBoolOption custom in boolOpts)
                {
                    if (__stringNames == custom.boolOptionTitle)
                    {
                        wasCustom = true;
                        __result  = custom.hostOptionsName;
                    }
                }
                if (wasCustom)
                {
                    return(true);
                }
                else
                {
                    return(false);
                }
            }
コード例 #6
0
 public CustomNumberOption(float defaultValue, StringNames optionTitleName, string optionTitle, float min,
                           float max, float step) : base(optionTitleName, optionTitle)
 {
     this.value = defaultValue;
     this.min   = min;
     this.max   = max;
     this.step  = step;
 }
コード例 #7
0
 static SpawnInMinigame.SpawnLocation[] AddSpawn(Vector3 Location, StringNames name, Sprite Sprite, AnimationClip Rollover, AudioClip RolloverSfx, SpawnInMinigame.SpawnLocation[] array)
 {
     Array.Resize(ref array, array.Length + 1);
     array[array.Length - 1] = new SpawnInMinigame.SpawnLocation {
         Location = Location, Name = name, Image = Sprite, Rollover = Rollover, RolloverSfx = RolloverSfx
     };
     return(array);
 }
コード例 #8
0
 public static bool Prefix(StringNames BPHOFEKLDLF, string BIHKOFGIABL, Il2CppReferenceArray <Il2CppSystem.Object> FHLKFONKJLH, ref string __result)
 {
     if (BPHOFEKLDLF == (StringNames)CustomStringNames.CustomServerName)
     {
         __result = SheriffMod.Name.Value;
         return(false);
     }
     return(true);
 }
コード例 #9
0
 public static bool Prefix(StringNames MBPOLHMKKJC, string FFCEMBMJGIP, Il2CppReferenceArray <Il2CppSystem.Object> BPBFAAEIABN, ref string __result)
 {
     if (MBPOLHMKKJC == (StringNames)CustomStringNames.CustomServerName)
     {
         __result = SheriffMod.Name.Value;
         return(false);
     }
     return(true);
 }
コード例 #10
0
 public static bool Prefix(StringNames LENBLADGELB, string NNLLKLDPBAI, Il2CppReferenceArray <Il2CppSystem.Object> DKBJCINDDCD, ref string __result)
 {
     if (LENBLADGELB == (StringNames)CustomStringNames.CustomServerName)
     {
         __result = SheriffMod.Name.Value;
         return(false);
     }
     return(true);
 }
コード例 #11
0
ファイル: Main.cs プロジェクト: tauseef-khan/TheOtherRoles
 public static bool Prefix(StringNames LENBLADGELB, string NNLLKLDPBAI, Il2CppReferenceArray <Il2CppSystem.Object> DKBJCINDDCD, ref string __result)
 {
     if (LENBLADGELB == (StringNames)3000)
     {
         __result = BonusRolesPlugin.Name.Value;
         return(false);
     }
     return(true);
 }
コード例 #12
0
ファイル: Helpers.cs プロジェクト: smarschollek/TheOtherRoles
        public static bool isCustomServer()
        {
            if (DestroyableSingleton <ServerManager> .Instance == null)
            {
                return(false);
            }
            StringNames n = DestroyableSingleton <ServerManager> .Instance.CurrentRegion.TranslateName;

            return(n != StringNames.ServerNA && n != StringNames.ServerEU && n != StringNames.ServerAS);
        }
コード例 #13
0
        public static bool isCustomServer()
        {
            if (DestroyableSingleton <ServerManager> .CHNDKKBEIDG == null)
            {
                return(false);
            }
            StringNames n = DestroyableSingleton <ServerManager> .CHNDKKBEIDG.HMIJGFFKBNN.TranslateName;

            return(n != StringNames.ServerNA && n != StringNames.ServerEU && n != StringNames.ServerAS);
        }
コード例 #14
0
        public bool GetString(out string text, StringNames stringId)
        {
            string key = Enum.GetName(typeof(StringNames), stringId);

            if (Strings.TryGetValue(key, out text))
            {
                return(true);
            }
            BetterLanguagesPlugin.log.LogInfo("couldn't find key:" + key);
            return(false);
        }
コード例 #15
0
            public static bool Prefix([HarmonyArgument(0)] StringNames stringId, [HarmonyArgument(2)] Il2CppReferenceArray <Il2CppSystem.Object> parts, ref string __result)
            {
                var customStringName = (CustomStringName)stringId;

                if (customStringName != null)
                {
                    __result = string.Format(customStringName.Value, parts);
                    return(false);
                }

                return(true);
            }
コード例 #16
0
            public static bool Prefix(StringNames DKEHCKOHMOH, ref string __result)
            {
                foreach (var opt in options)
                {
                    if (opt.optionTitleName == DKEHCKOHMOH)
                    {
                        __result = opt.optionTitle;
                        return(false);
                    }
                }

                return(true);
            }
コード例 #17
0
            public static bool Prefix(StringNames AKGLBKHCEMI, ref string __result)
            {
                foreach (var opt in options)
                {
                    if (opt.optionTitleName == AKGLBKHCEMI)
                    {
                        __result = opt.optionTitle;
                        return(false);
                    }
                }

                return(true);
            }
コード例 #18
0
 public static bool Prefix(ref string __result, [HarmonyArgument(0)] StringNames name)
 {
     if ((int)name >= 50000)
     {
         string text = CustomColors.ColorStrings[(int)name];
         if (text != null)
         {
             __result = text;
             return(false);
         }
     }
     return(true);
 }
コード例 #19
0
            public static bool Prefix(StringNames HKOIECMDOKL, ref string __result)
            {
                foreach (var opt in options)
                {
                    if (opt.optionTitleName == HKOIECMDOKL)
                    {
                        __result = opt.optionTitle;
                        return(false);
                    }
                }

                return(true);
            }
コード例 #20
0
        public static string GetString(StringNames stringId)
        {
            string ret;

            if (CurrentLanguage.GetString(out ret, stringId))
            {
                return(ret);
            }
            if (FallbackLanguage.GetString(out ret, stringId))
            {
                return(ret);
            }
            return(MissingString);
        }
コード例 #21
0
        public static string GetString(StringNames stringId, Il2CppReferenceArray <Il2CppSystem.Object> parts)
        {
            string ret;

            if (CurrentLanguage.GetString(out ret, stringId, parts))
            {
                return(ret);
            }
            if (FallbackLanguage.GetString(out ret, stringId, parts))
            {
                return(ret);
            }
            return(MissingString);
        }
コード例 #22
0
        static void Postfix(ref string __result, StringNames HKOIECMDOKL,
                            Il2CppReferenceArray <Il2CppSystem.Object> EBKIKEILMLF)
        {
            if (ExileController.Instance == null || ExileController.Instance.Field_10 == null)
            {
                return;
            }

            switch (HKOIECMDOKL)
            {
            case StringNames.ExileTextPN:
            case StringNames.ExileTextSN:
            {
                if (ExileController.Instance.Field_10.Object.isPlayerRole("Medic"))
                {
                    __result = ExileController.Instance.Field_10.PlayerName + " was The Medic.";
                }
                else if (ExileController.Instance.Field_10.Object.isPlayerRole("Engineer"))
                {
                    __result = ExileController.Instance.Field_10.PlayerName + " was The Engineer.";
                }
                else if (ExileController.Instance.Field_10.Object.isPlayerRole("Officer"))
                {
                    __result = ExileController.Instance.Field_10.PlayerName + " was The Officer.";
                }
                else if (ExileController.Instance.Field_10.Object.isPlayerRole("Joker"))
                {
                    __result = ExileController.Instance.Field_10.PlayerName + " was The Joker.";
                }
                else
                {
                    __result = ExileController.Instance.Field_10.PlayerName + " was not The Impostor.";
                }
                break;
            }

            case StringNames.ImpostorsRemainP:
            case StringNames.ImpostorsRemainS:
            {
                if (ExileController.Instance.Field_10.Object.isPlayerRole("Joker"))
                {
                    __result = "";
                }
                break;
            }
            }
        }
コード例 #23
0
        static void Postfix(ref string __result, StringNames __0)
        {
            if (ExileController.Instance == null || ExileController.Instance.exiled == null)
            {
                return;
            }

            switch (__0)
            {
            case StringNames.ExileTextPN:
            case StringNames.ExileTextSN:
            {
                if (ExileController.Instance.exiled.Object.isPlayerRole(Role.Medic))
                {
                    __result = ExileController.Instance.exiled.PlayerName + " was The Medic.";
                }
                else if (ExileController.Instance.exiled.Object.isPlayerRole(Role.Engineer))
                {
                    __result = ExileController.Instance.exiled.PlayerName + " was The Engineer.";
                }
                else if (ExileController.Instance.exiled.Object.isPlayerRole(Role.Officer))
                {
                    __result = ExileController.Instance.exiled.PlayerName + " was The Officer.";
                }
                else if (ExileController.Instance.exiled.Object.isPlayerRole(Role.Joker))
                {
                    __result = ExileController.Instance.exiled.PlayerName + " was The Joker.";
                }
                else
                {
                    __result = ExileController.Instance.exiled.PlayerName + " was not The Impostor.";
                }
                break;
            }

            case StringNames.ImpostorsRemainP:
            case StringNames.ImpostorsRemainS:
            {
                if (ExileController.Instance.exiled.Object.isPlayerRole(Role.Joker))
                {
                    __result = "";
                }
                break;
            }
            }
        }
コード例 #24
0
            public static bool Prefix(StringNames HKOIECMDOKL, ref string __result)
            {
                switch (HKOIECMDOKL)
                {
                case sheriffCountTitle:
                    __result = "Sheriff count";
                    break;

                case killTargetTitle:
                    __result = "Sheriff's target dies";
                    break;

                default:
                    return(true);
                }

                return(false);
            }
コード例 #25
0
            public static bool Prefix(StringNames HKOIECMDOKL, ref string __result)
            {
                switch (HKOIECMDOKL)
                {
                case maxPlayerAdminTitle:
                    __result = "Admin max players";
                    break;

                case maxPlayerCamsTitle:
                    __result = "Cams max players";
                    break;

                case maxPlayerVitalsTitle:
                    __result = "Vitals max players";
                    break;

                default:
                    return(true);
                }

                return(false);
            }
コード例 #26
0
        static void Postfix(ref string __result, StringNames HKOIECMDOKL, Il2CppReferenceArray <Il2CppSystem.Object> EBKIKEILMLF)
        {
            if (ExileController.Instance == null || ExileController.Instance.exiled == null)
            {
                return;
            }

            byte playerId = ExileController.Instance.exiled.Object.PlayerId;
            Role role     = GetSpecialRole <Role>(playerId);

            switch (HKOIECMDOKL)
            {
            case StringNames.ExileTextPN:
            case StringNames.ExileTextSN:
            {
                string playerName = ExileController.Instance.exiled.PlayerName;
                if (role != null)
                {
                    __result = role.EjectMessage(playerName);
                }
                else
                {
                    __result = playerName + " was not The Impostor.";
                }
                break;
            }

            case StringNames.ImpostorsRemainP:
            case StringNames.ImpostorsRemainS:
            {
                if (role is Maniac)
                {
                    __result = "";
                }
                break;
            }
            }
        }
コード例 #27
0
 static void Postfix(ref string __result, StringNames HKOIECMDOKL, Il2CppReferenceArray <Il2CppSystem.Object> EBKIKEILMLF)
 {
     if (ExileController.Instance != null && ExileController.Instance.Field_10 != null)
     {
         if (HKOIECMDOKL == StringNames.ExileTextPN || HKOIECMDOKL == StringNames.ExileTextSN)
         {
             if (MedicSettings.Medic != null && ExileController.Instance.Field_10.Object.PlayerId == MedicSettings.Medic.PlayerId)
             {
                 __result = ExileController.Instance.Field_10.PlayerName + " was The Medic.";
             }
             else if (EngineerSettings.Engineer != null && ExileController.Instance.Field_10.Object.PlayerId == EngineerSettings.Engineer.PlayerId)
             {
                 __result = ExileController.Instance.Field_10.PlayerName + " was The Engineer.";
             }
             else if (OfficerSettings.Officer != null && ExileController.Instance.Field_10.Object.PlayerId == OfficerSettings.Officer.PlayerId)
             {
                 __result = ExileController.Instance.Field_10.PlayerName + " was The Officer.";
             }
             else if (JokerSettings.Joker != null && ExileController.Instance.Field_10.Object.PlayerId == JokerSettings.Joker.PlayerId)
             {
                 __result = ExileController.Instance.Field_10.PlayerName + " was The Joker.";
             }
             else
             {
                 __result = ExileController.Instance.Field_10.PlayerName + " was not The Impostor.";
             }
         }
         if (HKOIECMDOKL == StringNames.ImpostorsRemainP || HKOIECMDOKL == StringNames.ImpostorsRemainS)
         {
             if (JokerSettings.Joker != null && ExileController.Instance.Field_10.Object.PlayerId == JokerSettings.Joker.PlayerId)
             {
                 __result = "";
             }
         }
     }
 }
コード例 #28
0
 static void Postfix(ref string __result, StringNames HKOIECMDOKL, Il2CppReferenceArray <Il2CppSystem.Object> EBKIKEILMLF)
 {
     if (ExileController.Instance != null && ExileController.Instance.Field_10 != null)
     {
         if (HKOIECMDOKL == StringNames.ExileTextPN || HKOIECMDOKL == StringNames.ExileTextSN)
         {
             if (ExileController.Instance.Field_10.Object.isPlayerRole("Medic"))
             {
                 __result = ExileController.Instance.Field_10.PlayerName + " was The Medic.";
             }
             else if (ExileController.Instance.Field_10.Object.isPlayerRole("Engineer"))
             {
                 __result = ExileController.Instance.Field_10.PlayerName + " was The Engineer.";
             }
             else if (ExileController.Instance.Field_10.Object.isPlayerRole("Officer"))
             {
                 __result = ExileController.Instance.Field_10.PlayerName + " was The Officer.";
             }
             else if (ExileController.Instance.Field_10.Object.isPlayerRole("Joker"))
             {
                 __result = ExileController.Instance.Field_10.PlayerName + " was The Joker.";
             }
             else
             {
                 __result = ExileController.Instance.Field_10.PlayerName + " was not The Impostor.";
             }
         }
         if (HKOIECMDOKL == StringNames.ImpostorsRemainP || HKOIECMDOKL == StringNames.ImpostorsRemainS)
         {
             if (ExileController.Instance.Field_10.Object.isPlayerRole("Joker"))
             {
                 __result = "";
             }
         }
     }
 }
コード例 #29
0
        static void Postfix(ref string __result, [HarmonyArgument(0)] StringNames id, [HarmonyArgument(1)] Il2CppReferenceArray <Il2CppSystem.Object> parts)
        {
            if (ExileController.Instance != null && ExileController.Instance.exiled != null)
            {
                // Exile role text for roles that are being assigned to crewmates
                if (id == StringNames.ExileTextPN || id == StringNames.ExileTextSN)
                {
                    if (Jester.jester != null && ExileController.Instance.exiled.Object.PlayerId == Jester.jester.PlayerId)
                    {
                        __result = ExileController.Instance.exiled.PlayerName + " was The Jester.";
                    }
                    else if (Mayor.mayor != null && ExileController.Instance.exiled.Object.PlayerId == Mayor.mayor.PlayerId)
                    {
                        __result = ExileController.Instance.exiled.PlayerName + " was The Mayor.";
                    }
                    else if (Engineer.engineer != null && ExileController.Instance.exiled.Object.PlayerId == Engineer.engineer.PlayerId)
                    {
                        __result = ExileController.Instance.exiled.PlayerName + " was The Engineer.";
                    }
                    else if (Sheriff.sheriff != null && ExileController.Instance.exiled.Object.PlayerId == Sheriff.sheriff.PlayerId)
                    {
                        __result = ExileController.Instance.exiled.PlayerName + " was The Sheriff.";
                    }
                    else if (Lighter.lighter != null && ExileController.Instance.exiled.Object.PlayerId == Lighter.lighter.PlayerId)
                    {
                        __result = ExileController.Instance.exiled.PlayerName + " was The Lighter.";
                    }
                    else if (Detective.detective != null && ExileController.Instance.exiled.Object.PlayerId == Detective.detective.PlayerId)
                    {
                        __result = ExileController.Instance.exiled.PlayerName + " was The Detective.";
                    }
                    else if (TimeMaster.timeMaster != null && ExileController.Instance.exiled.Object.PlayerId == TimeMaster.timeMaster.PlayerId)
                    {
                        __result = ExileController.Instance.exiled.PlayerName + " was The Time Master.";
                    }
                    else if (Medic.medic != null && ExileController.Instance.exiled.Object.PlayerId == Medic.medic.PlayerId)
                    {
                        __result = ExileController.Instance.exiled.PlayerName + " was The Medic.";
                    }
                    else if (Shifter.shifter != null && ExileController.Instance.exiled.Object.PlayerId == Shifter.shifter.PlayerId)
                    {
                        __result = ExileController.Instance.exiled.PlayerName + " was The Shifter.";
                    }
                    else if (Swapper.swapper != null && ExileController.Instance.exiled.Object.PlayerId == Swapper.swapper.PlayerId)
                    {
                        __result = ExileController.Instance.exiled.PlayerName + " was The Swapper.";
                    }
                    else if (Lovers.lover1 != null && ExileController.Instance.exiled.Object.PlayerId == Lovers.lover1.PlayerId)
                    {
                        __result = ExileController.Instance.exiled.PlayerName + " was The Lover.";
                    }
                    else if (Lovers.lover2 != null && ExileController.Instance.exiled.Object.PlayerId == Lovers.lover2.PlayerId)
                    {
                        __result = ExileController.Instance.exiled.PlayerName + " was The Lover.";
                    }
                    else if (Seer.seer != null && ExileController.Instance.exiled.Object.PlayerId == Seer.seer.PlayerId)
                    {
                        __result = ExileController.Instance.exiled.PlayerName + " was The Seer.";
                    }
                    else if (Hacker.hacker != null && ExileController.Instance.exiled.Object.PlayerId == Hacker.hacker.PlayerId)
                    {
                        __result = ExileController.Instance.exiled.PlayerName + " was The Hacker.";
                    }
                    else if (Child.child != null && ExileController.Instance.exiled.Object.PlayerId == Child.child.PlayerId)
                    {
                        __result = ExileController.Instance.exiled.PlayerName + " was The Child.";
                    }
                    else if (Tracker.tracker != null && ExileController.Instance.exiled.Object.PlayerId == Tracker.tracker.PlayerId)
                    {
                        __result = ExileController.Instance.exiled.PlayerName + " was The Tracker.";
                    }
                    else if (Snitch.snitch != null && ExileController.Instance.exiled.Object.PlayerId == Snitch.snitch.PlayerId)
                    {
                        __result = ExileController.Instance.exiled.PlayerName + " was The Snitch.";
                    }
                    else if (Jackal.jackal != null && ExileController.Instance.exiled.Object.PlayerId == Jackal.jackal.PlayerId)
                    {
                        __result = ExileController.Instance.exiled.PlayerName + " was The Jackal.";
                    }
                    else if (Sidekick.sidekick != null && ExileController.Instance.exiled.Object.PlayerId == Sidekick.sidekick.PlayerId)
                    {
                        __result = ExileController.Instance.exiled.PlayerName + " was The Sidekick.";
                    }
                    else if (Spy.spy != null && ExileController.Instance.exiled.Object.PlayerId == Spy.spy.PlayerId)
                    {
                        __result = ExileController.Instance.exiled.PlayerName + " was The Spy.";
                    }
                    else if (SecurityGuard.securityGuard != null && ExileController.Instance.exiled.Object.PlayerId == SecurityGuard.securityGuard.PlayerId)
                    {
                        __result = ExileController.Instance.exiled.PlayerName + " was The SecurityGuard.";
                    }
                    else
                    {
                        __result = ExileController.Instance.exiled.PlayerName + " was not The Impostor.";
                    }
                }
                // Exile role text for roles that are being assigned to impostors
                if (id == StringNames.ExileTextPP || id == StringNames.ExileTextSP)
                {
                    if (Godfather.godfather != null && ExileController.Instance.exiled.Object.PlayerId == Godfather.godfather.PlayerId)
                    {
                        __result = ExileController.Instance.exiled.PlayerName + " was The Godfather.";
                    }
                    else if (Mafioso.mafioso != null && ExileController.Instance.exiled.Object.PlayerId == Mafioso.mafioso.PlayerId)
                    {
                        __result = ExileController.Instance.exiled.PlayerName + " was The Mafioso.";
                    }
                    else if (Janitor.janitor != null && ExileController.Instance.exiled.Object.PlayerId == Janitor.janitor.PlayerId)
                    {
                        __result = ExileController.Instance.exiled.PlayerName + " was The Janitor.";
                    }
                    else if (Morphling.morphling != null && ExileController.Instance.exiled.Object.PlayerId == Morphling.morphling.PlayerId)
                    {
                        __result = ExileController.Instance.exiled.PlayerName + " was The Morphling.";
                    }
                    else if (Camouflager.camouflager != null && ExileController.Instance.exiled.Object.PlayerId == Camouflager.camouflager.PlayerId)
                    {
                        __result = ExileController.Instance.exiled.PlayerName + " was The Camouflager.";
                    }
                    else if (Lovers.lover1 != null && ExileController.Instance.exiled.Object.PlayerId == Lovers.lover1.PlayerId)
                    {
                        __result = ExileController.Instance.exiled.PlayerName + " was The ImpLover.";
                    }
                    else if (Lovers.lover2 != null && ExileController.Instance.exiled.Object.PlayerId == Lovers.lover2.PlayerId)
                    {
                        __result = ExileController.Instance.exiled.PlayerName + " was The ImpLover.";
                    }
                    else if (Vampire.vampire != null && ExileController.Instance.exiled.Object.PlayerId == Vampire.vampire.PlayerId)
                    {
                        __result = ExileController.Instance.exiled.PlayerName + " was The Vampire.";
                    }
                    else if (Eraser.eraser != null && ExileController.Instance.exiled.Object.PlayerId == Eraser.eraser.PlayerId)
                    {
                        __result = ExileController.Instance.exiled.PlayerName + " was The Eraser.";
                    }
                    else if (Trickster.trickster != null && ExileController.Instance.exiled.Object.PlayerId == Trickster.trickster.PlayerId)
                    {
                        __result = ExileController.Instance.exiled.PlayerName + " was The Trickster.";
                    }
                    else if (Cleaner.cleaner != null && ExileController.Instance.exiled.Object.PlayerId == Cleaner.cleaner.PlayerId)
                    {
                        __result = ExileController.Instance.exiled.PlayerName + " was The Cleaner.";
                    }
                    else if (Warlock.warlock != null && ExileController.Instance.exiled.Object.PlayerId == Warlock.warlock.PlayerId)
                    {
                        __result = ExileController.Instance.exiled.PlayerName + " was The Warlock.";
                    }
                }

                // Hide number of remaining impostors on Jester win
                if (id == StringNames.ImpostorsRemainP || id == StringNames.ImpostorsRemainS)
                {
                    if (Jester.jester != null && ExileController.Instance.exiled.Object.PlayerId == Jester.jester.PlayerId)
                    {
                        __result = "";
                    }
                }
            }
        }
コード例 #30
0
 public ScrollerOptions(StringNames optionTitleName, string optionTitle)
 {
     this.optionTitleName = optionTitleName;
     this.optionTitle     = optionTitle;
 }