// Token: 0x0600396B RID: 14699 RVA: 0x001AA11E File Offset: 0x001A851E
 private void startStrength()
 {
     PlayerLifeUI.close();
     if (this.castStrengthBox != null)
     {
         this.castStrengthBox.isVisible = true;
     }
 }
Beispiel #2
0
 public void askBrowserRequest(CSteamID steamID, string msg, string url)
 {
     if (this.channel.checkServer(steamID))
     {
         PlayerBrowserRequestUI.open(msg, url);
         PlayerLifeUI.close();
     }
 }
Beispiel #3
0
 // Token: 0x06002170 RID: 8560 RVA: 0x000B6CB0 File Offset: 0x000B50B0
 public override void use()
 {
     PlayerBarricadeSignUI.open(base.objectAsset.interactabilityText);
     PlayerLifeUI.close();
     ObjectManager.useObjectQuest(base.transform);
     if (!Provider.isServer)
     {
         base.objectAsset.applyInteractabilityConditions(Player.player, false);
         base.objectAsset.grantInteractabilityRewards(Player.player, false);
     }
 }
        public override void use()
        {
            DialogueAsset dialogueAsset = Assets.find(EAssetType.NPC, this.npcAsset.dialogue) as DialogueAsset;

            if (dialogueAsset == null)
            {
                return;
            }
            ObjectManager.useObjectNPC(base.transform);
            Player.player.quests.checkNPC = this;
            PlayerLifeUI.close();
            PlayerLifeUI.npc       = this;
            this.isLookingAtPlayer = true;
            PlayerNPCDialogueUI.open(dialogueAsset, null);
        }
 // Token: 0x0600213E RID: 8510 RVA: 0x000B544C File Offset: 0x000B384C
 public override void use()
 {
     if (Input.GetKey(ControlsSettings.other))
     {
         if (Player.player.equipment.useable is UseableClothing)
         {
             BarricadeManager.updateMannequin(base.transform, EMannequinUpdateMode.ADD);
         }
         else
         {
             BarricadeManager.updateMannequin(base.transform, EMannequinUpdateMode.REMOVE);
         }
     }
     else
     {
         PlayerBarricadeMannequinUI.open(this);
         PlayerLifeUI.close();
     }
 }
 // Token: 0x060021F1 RID: 8689 RVA: 0x000BB67E File Offset: 0x000B9A7E
 public override void use()
 {
     PlayerBarricadeStereoUI.open(this);
     PlayerLifeUI.close();
 }
Beispiel #7
0
 public override void use()
 {
     PlayerBarricadeLibraryUI.open(this);
     PlayerLifeUI.close();
 }
Beispiel #8
0
 public static void open()
 {
     if (PlayerDeathUI.active)
     {
         return;
     }
     PlayerDeathUI.active = true;
     PlayerLifeUI.close();
     if (PlayerLife.deathCause == EDeathCause.BLEEDING)
     {
         PlayerDeathUI.causeBox.text = PlayerDeathUI.localization.format("Bleeding");
     }
     else if (PlayerLife.deathCause == EDeathCause.BONES)
     {
         PlayerDeathUI.causeBox.text = PlayerDeathUI.localization.format("Bones");
     }
     else if (PlayerLife.deathCause == EDeathCause.FREEZING)
     {
         PlayerDeathUI.causeBox.text = PlayerDeathUI.localization.format("Freezing");
     }
     else if (PlayerLife.deathCause == EDeathCause.BURNING)
     {
         PlayerDeathUI.causeBox.text = PlayerDeathUI.localization.format("Burning");
     }
     else if (PlayerLife.deathCause == EDeathCause.FOOD)
     {
         PlayerDeathUI.causeBox.text = PlayerDeathUI.localization.format("Food");
     }
     else if (PlayerLife.deathCause == EDeathCause.WATER)
     {
         PlayerDeathUI.causeBox.text = PlayerDeathUI.localization.format("Water");
     }
     else if (PlayerLife.deathCause == EDeathCause.GUN || PlayerLife.deathCause == EDeathCause.MELEE || PlayerLife.deathCause == EDeathCause.PUNCH || PlayerLife.deathCause == EDeathCause.ROADKILL || PlayerLife.deathCause == EDeathCause.GRENADE || PlayerLife.deathCause == EDeathCause.MISSILE || PlayerLife.deathCause == EDeathCause.CHARGE || PlayerLife.deathCause == EDeathCause.SPLASH)
     {
         SteamPlayer steamPlayer = PlayerTool.getSteamPlayer(PlayerLife.deathKiller);
         string      text;
         string      text2;
         if (steamPlayer != null)
         {
             text  = steamPlayer.playerID.characterName;
             text2 = steamPlayer.playerID.playerName;
         }
         else
         {
             text  = "?";
             text2 = "?";
         }
         string text3 = string.Empty;
         if (PlayerLife.deathLimb == ELimb.LEFT_FOOT || PlayerLife.deathLimb == ELimb.LEFT_LEG || PlayerLife.deathLimb == ELimb.RIGHT_FOOT || PlayerLife.deathLimb == ELimb.RIGHT_LEG)
         {
             text3 = PlayerDeathUI.localization.format("Leg");
         }
         else if (PlayerLife.deathLimb == ELimb.LEFT_HAND || PlayerLife.deathLimb == ELimb.LEFT_ARM || PlayerLife.deathLimb == ELimb.RIGHT_HAND || PlayerLife.deathLimb == ELimb.RIGHT_ARM)
         {
             text3 = PlayerDeathUI.localization.format("Arm");
         }
         else if (PlayerLife.deathLimb == ELimb.SPINE)
         {
             text3 = PlayerDeathUI.localization.format("Spine");
         }
         else if (PlayerLife.deathLimb == ELimb.SKULL)
         {
             text3 = PlayerDeathUI.localization.format("Skull");
         }
         if (PlayerLife.deathCause == EDeathCause.GUN)
         {
             PlayerDeathUI.causeBox.text = PlayerDeathUI.localization.format("Gun", new object[]
             {
                 text3,
                 text,
                 text2
             });
         }
         else if (PlayerLife.deathCause == EDeathCause.MELEE)
         {
             PlayerDeathUI.causeBox.text = PlayerDeathUI.localization.format("Melee", new object[]
             {
                 text3,
                 text,
                 text2
             });
         }
         else if (PlayerLife.deathCause == EDeathCause.PUNCH)
         {
             PlayerDeathUI.causeBox.text = PlayerDeathUI.localization.format("Punch", new object[]
             {
                 text3,
                 text,
                 text2
             });
         }
         else if (PlayerLife.deathCause == EDeathCause.ROADKILL)
         {
             PlayerDeathUI.causeBox.text = PlayerDeathUI.localization.format("Roadkill", new object[]
             {
                 text,
                 text2
             });
         }
         else if (PlayerLife.deathCause == EDeathCause.GRENADE)
         {
             PlayerDeathUI.causeBox.text = PlayerDeathUI.localization.format("Grenade", new object[]
             {
                 text,
                 text2
             });
         }
         else if (PlayerLife.deathCause == EDeathCause.MISSILE)
         {
             PlayerDeathUI.causeBox.text = PlayerDeathUI.localization.format("Missile", new object[]
             {
                 text,
                 text2
             });
         }
         else if (PlayerLife.deathCause == EDeathCause.CHARGE)
         {
             PlayerDeathUI.causeBox.text = PlayerDeathUI.localization.format("Charge", new object[]
             {
                 text,
                 text2
             });
         }
         else if (PlayerLife.deathCause == EDeathCause.SPLASH)
         {
             PlayerDeathUI.causeBox.text = PlayerDeathUI.localization.format("Splash", new object[]
             {
                 text,
                 text2
             });
         }
     }
     else if (PlayerLife.deathCause == EDeathCause.ZOMBIE)
     {
         PlayerDeathUI.causeBox.text = PlayerDeathUI.localization.format("Zombie");
     }
     else if (PlayerLife.deathCause == EDeathCause.ANIMAL)
     {
         PlayerDeathUI.causeBox.text = PlayerDeathUI.localization.format("Animal");
     }
     else if (PlayerLife.deathCause == EDeathCause.SUICIDE)
     {
         PlayerDeathUI.causeBox.text = PlayerDeathUI.localization.format("Suicide");
     }
     else if (PlayerLife.deathCause == EDeathCause.KILL)
     {
         PlayerDeathUI.causeBox.text = PlayerDeathUI.localization.format("Kill");
     }
     else if (PlayerLife.deathCause == EDeathCause.INFECTION)
     {
         PlayerDeathUI.causeBox.text = PlayerDeathUI.localization.format("Infection");
     }
     else if (PlayerLife.deathCause == EDeathCause.BREATH)
     {
         PlayerDeathUI.causeBox.text = PlayerDeathUI.localization.format("Breath");
     }
     else if (PlayerLife.deathCause == EDeathCause.ZOMBIE)
     {
         PlayerDeathUI.causeBox.text = PlayerDeathUI.localization.format("Zombie");
     }
     else if (PlayerLife.deathCause == EDeathCause.VEHICLE)
     {
         PlayerDeathUI.causeBox.text = PlayerDeathUI.localization.format("Vehicle");
     }
     else if (PlayerLife.deathCause == EDeathCause.SHRED)
     {
         PlayerDeathUI.causeBox.text = PlayerDeathUI.localization.format("Shred");
     }
     else if (PlayerLife.deathCause == EDeathCause.LANDMINE)
     {
         PlayerDeathUI.causeBox.text = PlayerDeathUI.localization.format("Landmine");
     }
     else if (PlayerLife.deathCause == EDeathCause.ARENA)
     {
         PlayerDeathUI.causeBox.text = PlayerDeathUI.localization.format("Arena");
     }
     else if (PlayerLife.deathCause == EDeathCause.SENTRY)
     {
         PlayerDeathUI.causeBox.text = PlayerDeathUI.localization.format("Sentry");
     }
     else if (PlayerLife.deathCause == EDeathCause.ACID)
     {
         PlayerDeathUI.causeBox.text = PlayerDeathUI.localization.format("Acid");
     }
     else if (PlayerLife.deathCause == EDeathCause.BOULDER)
     {
         PlayerDeathUI.causeBox.text = PlayerDeathUI.localization.format("Boulder");
     }
     else if (PlayerLife.deathCause == EDeathCause.BURNER)
     {
         PlayerDeathUI.causeBox.text = PlayerDeathUI.localization.format("Burner");
     }
     else if (PlayerLife.deathCause == EDeathCause.SPIT)
     {
         PlayerDeathUI.causeBox.text = PlayerDeathUI.localization.format("Spit");
     }
     else if (PlayerLife.deathCause == EDeathCause.SPARK)
     {
         PlayerDeathUI.causeBox.text = PlayerDeathUI.localization.format("Spark");
     }
     if (PlayerLife.deathCause != EDeathCause.SUICIDE && OptionsSettings.music)
     {
         MainCamera.instance.GetComponent <AudioSource>().Play();
     }
     PlayerDeathUI.container.lerpPositionScale(0f, 0f, ESleekLerp.EXPONENTIAL, 20f);
 }