Skip to content

Commit

Permalink
menu swapper: add shift click walk here on objects
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam- committed Jun 26, 2022
1 parent d7a6e07 commit e219791
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,18 @@ default boolean objectCustomization()
return true;
}

@ConfigItem(
position = -2,
keyName = "objectShiftClickWalkHere",
name = "Shift click Walk here",
description = "Swaps Walk here on shift click on all objects",
section = objectSection
)
default boolean objectShiftClickWalkHere()
{
return false;
}

@ConfigItem(
position = -3,
keyName = "npcLeftClickCustomization",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1216,6 +1216,10 @@ else if (swapAction == menuEntry.getItemOp())
return;
}
}
else if (shiftModifier() && config.objectShiftClickWalkHere())
{
menuEntry.setDeprioritized(true);
}
}

if (NPC_MENU_TYPES.contains(menuAction))
Expand Down

0 comments on commit e219791

Please sign in to comment.