public void OnGamepadButtonsPressed(Buttons GamepadButtons) { if (IsGamepadFocused && !RecentlyGainedFocus) { if (GamepadControls.IsMatch(GamepadButtons, GamepadControls.Current.RucksackCycleSortOrder)) { CycleSortOrder(); } if (GamepadControls.IsMatch(GamepadButtons, GamepadControls.Current.RucksackCycleSortProperty)) { CycleSortProperty(); } if (!GamepadControls.HandleNavigationButtons(this, GamepadButtons, HoveredSlot)) { this.IsGamepadFocused = false; } // Handle action buttons if (GamepadControls.IsMatch(GamepadButtons, GamepadControls.Current.PrimaryAction)) { HandlePrimaryAction(GetHoveredItem()); } if (GamepadControls.IsMatch(GamepadButtons, GamepadControls.Current.SecondaryAction)) { HandleSecondaryAction(GetHoveredItem()); SecondaryActionButtonPressedLocation = HoveredSlot; SecondaryActionButtonPressedTime = DateTime.Now; } } }
public void OnGamepadButtonsPressed(Buttons GamepadButtons) { // Handle closing the menu if (GamepadControls.IsMatch(GamepadButtons, GamepadControls.Current.CloseBag)) { if (IsShowingModalMenu && CustomizeIconBounds != null) { CloseModalMenu(); } else { Bag.CloseContents(); } return; } // Handle modifier buttons if (GamepadControls.IsMatch(GamepadButtons, GamepadControls.Current.TransferMultipleModifier)) { IsTransferMultipleModifierHeld = true; } if (GamepadControls.IsMatch(GamepadButtons, GamepadControls.Current.TransferHalfModifier)) { IsTransferHalfModifierHeld = true; } if (!IsGamepadFocused && !InventoryMenu.IsGamepadFocused && !Content.IsGamepadFocused) { InventoryMenu.IsGamepadFocused = true; } if (IsGamepadFocused && !RecentlyGainedFocus) { if (!GamepadControls.HandleNavigationButtons(this, GamepadButtons, HoveredButtonBounds)) { this.IsGamepadFocused = false; } // Handle action buttons if (GamepadControls.IsMatch(GamepadButtons, GamepadControls.Current.PrimaryAction)) { HandlePrimaryAction(); } if (GamepadControls.IsMatch(GamepadButtons, GamepadControls.Current.SecondaryAction)) { HandleSecondaryAction(); } } if (IsShowingModalMenu && CustomizeIconMenu != null) { //TODO } InventoryMenu.OnGamepadButtonsPressed(GamepadButtons); Content.OnGamepadButtonsPressed(GamepadButtons); }
public void OnGamepadButtonsReleased(Buttons GamepadButtons) { if (IsGamepadFocused && !RecentlyGainedFocus) { // Handle action buttons if (GamepadControls.IsMatch(GamepadButtons, GamepadControls.Current.SecondaryAction)) { } } }
public void OnGamepadButtonsReleased(Buttons GamepadButtons) { if (IsGamepadFocused && !RecentlyGainedFocus) { // Handle action buttons if (GamepadControls.IsMatch(GamepadButtons, GamepadControls.Current.SecondaryAction)) { SecondaryActionButtonPressedLocation = null; SecondaryActionButtonPressedTime = null; } } }
public void OnGamepadButtonsPressed(Buttons GamepadButtons) { if (IsGamepadFocused && !RecentlyGainedFocus) { if (GamepadControls.IsMatch(GamepadButtons, GamepadControls.Current.BoundedBagToggleAutofill)) { TryHandlePrimaryAction(false); } if (!GroupedOptions.IsEmptyMenu) { GroupedOptions.OnGamepadButtonsPressed(GamepadButtons); } if (!UngroupedOptions.IsEmptyMenu) { UngroupedOptions.OnGamepadButtonsPressed(GamepadButtons); } } }
public void OnGamepadButtonsPressed(Buttons GamepadButtons) { if (IsGamepadFocused && !RecentlyGainedFocus) { if (!GamepadControls.HandleNavigationButtons(this, GamepadButtons, HoveredSlot)) { this.IsGamepadFocused = false; } // Handle action buttons if (GamepadControls.IsMatch(GamepadButtons, GamepadControls.Current.PrimaryAction)) { HandlePrimaryAction(GetHoveredBag()); } if (GamepadControls.IsMatch(GamepadButtons, GamepadControls.Current.SecondaryAction)) { HandleSecondaryAction(GetHoveredBag()); } } }
public void OnGamepadButtonsPressed(Buttons GamepadButtons) { if (IsGamepadFocused && !RecentlyGainedFocus) { if (!GamepadControls.HandleNavigationButtons(this, GamepadButtons, GetHoveredSlot(true))) { this.IsGamepadFocused = false; } // Handle action buttons if (GamepadControls.IsMatch(GamepadButtons, GamepadControls.Current.PrimaryAction)) { HandlePrimaryAction(GetHoveredItem()); } if (GamepadControls.IsMatch(GamepadButtons, GamepadControls.Current.SecondaryAction)) { HandleSecondaryAction(GetHoveredItem()); SecondaryActionButtonPressedItem = HoveredBundleItem; SecondaryActionButtonPressedTime = DateTime.Now; } } }
public void OnGamepadButtonsReleased(Buttons GamepadButtons) { // Handle modifier buttons if (GamepadControls.IsMatch(GamepadButtons, GamepadControls.Current.TransferMultipleModifier)) { IsTransferMultipleModifierHeld = false; } if (GamepadControls.IsMatch(GamepadButtons, GamepadControls.Current.TransferHalfModifier)) { IsTransferHalfModifierHeld = false; } if (IsShowingModalMenu && CustomizeIconMenu != null) { //TODO } if (IsGamepadFocused && !RecentlyGainedFocus) { } InventoryMenu.OnGamepadButtonsReleased(GamepadButtons); Content.OnGamepadButtonsReleased(GamepadButtons); }