Exemple #1
0
//        static string GameSettingsText = null;
        public static void updateMeetingHUD(MeetingHud __instance)
        {
            foreach (PlayerVoteArea player in __instance.HBDFFAHBIGI)
            {
                if (PlayerControlPatch.Dictator.name == player.NameText.Text && PlayerControlPatch.IsDictator(PlayerControl.LocalPlayer))
                {
                    player.NameText.Color = new Color(0.79f, 0.47f, 0.15f, 1f);
                }
            }
        }
Exemple #2
0
 public static void Postfix(IntroCutscene_CoBegin_d__10 __instance)
 {
     if (PlayerControlPatch.IsDictator(PlayerControl.LocalPlayer))
     {
         __instance.field_Public_PENEIDJGGAF_0.Title.Text                   = "Dictator";
         __instance.field_Public_PENEIDJGGAF_0.Title.Color                  = new Color(0.79f, 0.47f, 0.15f, 1f);
         __instance.field_Public_PENEIDJGGAF_0.ImpostorText.Text            = "Your vote is worth " + CustomGameOptions.DictatorVotePoints + " whole votes";
         __instance.field_Public_PENEIDJGGAF_0.BackgroundBar.material.color = new Color(0.79f, 0.47f, 0.15f, 1f);
     }
 }
Exemple #3
0
 public static void Postfix(HudManager __instance)
 {
     if (MeetingHud.Instance != null)
     {
         HudPatch.updateMeetingHUD(MeetingHud.Instance);
     }
     if (PlayerControl.AllPlayerControls.Count > 1 && PlayerControlPatch.Dictator != null && PlayerControlPatch.IsDictator(PlayerControl.LocalPlayer))
     {
         PlayerControl.LocalPlayer.nameText.Color = new Color(0.79f, 0.47f, 0.15f, 1f);
     }
 }