Beispiel #1
0
    // Token: 0x06001BF4 RID: 7156 RVA: 0x000874E8 File Offset: 0x000856E8
    public void OnMenuItemPressed()
    {
        InventoryAbilityItem component = this.NavigationManager.CurrentMenuItem.GetComponent <InventoryAbilityItem>();

        if (component && !component.HasAbility)
        {
            if (this.PressUngainedAbilityOptionSound)
            {
                Sound.Play(this.PressUngainedAbilityOptionSound.GetSound(null), base.transform.position, null);
            }
            return;
        }
        InventoryItemHelpText component2 = this.NavigationManager.CurrentMenuItem.GetComponent <InventoryItemHelpText>();

        if (component2)
        {
            SuspensionManager.SuspendAll();
            MessageBox messageBox = UI.MessageController.ShowMessageBoxB(this.HelpMessageBox, component2.HelpMessage, Vector3.zero, float.PositiveInfinity);
            if (messageBox)
            {
                messageBox.SetAvatar(component2.Avatar);
                messageBox.OnMessageScreenHide += new Action(this.OnMessageScreenHide);
            }
            else
            {
                SuspensionManager.ResumeAll();
            }
            this.m_currentCloseMessageSound = ((!component) ? this.CloseStatisticsMessageSound : this.CloseAbilityMessageSound);
            if (component && this.PressAbilityOptionSound)
            {
                Sound.Play(this.PressAbilityOptionSound.GetSound(null), base.transform.position, null);
            }
        }
    }
 // Token: 0x06003899 RID: 14489 RVA: 0x0002BE0E File Offset: 0x0002A00E
 public void BeginEditing()
 {
     this.currentKeys.Clear();
     this.currentKeys.AddRange(this.GetKeys());
     SuspensionManager.SuspendAll();
     this.editing = true;
     this.exit    = 0;
 }
Beispiel #3
0
 // Token: 0x06003440 RID: 13376 RVA: 0x0002984F File Offset: 0x00027A4F
 public void SuspendGameplayForUI()
 {
     if (!this.GameplaySuspendedForUI)
     {
         SuspensionManager.SuspendAll();
         this.GameplaySuspendedForUI = true;
     }
 }
 // Token: 0x06003900 RID: 14592 RVA: 0x000E770C File Offset: 0x000E590C
 public void BeginEditing()
 {
     this.currentKeys.Clear();
     this.UpdateMessageBox();
     SuspensionManager.SuspendAll();
     this.editing        = true;
     this.exit           = 0;
     this.allButtons     = (XboxControllerInput.Button[])Enum.GetValues(typeof(XboxControllerInput.Button));
     this.buttonsPressed = new bool[this.allButtons.Length];
     for (int i = 0; i < this.buttonsPressed.Length; i++)
     {
         this.buttonsPressed[i] = true;
     }
 }