Skip to content

Commit

Permalink
Move keybind to Q/dpad left.
Browse files Browse the repository at this point in the history
  • Loading branch information
v1ld committed Oct 4, 2023
1 parent e85e36c commit 0dd4e1c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions r6/scripts/BulkDisassembleJunkAndMarkToSellItems.reds
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ private final func HaveJunkOrMarkedItemsToDisassemble() -> Bool {

@addMethod(BackpackMainGameController)
protected cb func OnHandleGlobalInput(e: ref<inkPointerEvent>) -> Bool {
if e.IsAction(n"world_map_filter_navigation_up") {
if e.IsAction(n"world_map_menu_cycle_filter_prev") {
this.DisassembleJunkItems();
this.DisassembleMarkToSellItems();
this.PlaySound(n"Item", n"OnBuy");
Expand All @@ -44,9 +44,9 @@ protected cb func OnHandleGlobalInput(e: ref<inkPointerEvent>) -> Bool {
@addMethod(BackpackMainGameController)
private final func SetupDisassembleButtonHints() -> Void {
if this.HaveJunkOrMarkedItemsToDisassemble() {
this.m_buttonHintsController.AddButtonHint(n"world_map_filter_navigation_up", GetLocalizedText("UI-ScriptExports-Disassemble0") + " Trash");
this.m_buttonHintsController.AddButtonHint(n"world_map_menu_cycle_filter_prev", GetLocalizedText("UI-ScriptExports-Disassemble0") + " Trash");
} else {
this.m_buttonHintsController.RemoveButtonHint(n"world_map_filter_navigation_up");
this.m_buttonHintsController.RemoveButtonHint(n"world_map_menu_cycle_filter_prev");
}
}

0 comments on commit 0dd4e1c

Please sign in to comment.