This commit is contained in:
James Munson
2019-04-19 22:15:29 -07:00
parent 7a49aa1540
commit 19f41525a0

View File

@@ -1,284 +1,284 @@
/* /*
* Copyright (c) 2018, Adam <Adam@sigterm.info> * Copyright (c) 2018, Adam <Adam@sigterm.info>
* All rights reserved. * All rights reserved.
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met: * modification, are permitted provided that the following conditions are met:
* *
* 1. Redistributions of source code must retain the above copyright notice, this * 1. Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer. * list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright notice, * 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation * this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution. * and/or other materials provided with the distribution.
* *
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
package net.runelite.client.plugins.menuentryswapper; package net.runelite.client.plugins.menuentryswapper;
import net.runelite.client.config.Config; import net.runelite.client.config.Config;
import net.runelite.client.config.ConfigGroup; import net.runelite.client.config.ConfigGroup;
import net.runelite.client.config.ConfigItem; import net.runelite.client.config.ConfigItem;
@ConfigGroup("menuentryswapper") @ConfigGroup("menuentryswapper")
public interface MenuEntrySwapperConfig extends Config public interface MenuEntrySwapperConfig extends Config
{ {
@ConfigItem( @ConfigItem(
position = -2, position = -2,
keyName = "shiftClickCustomization", keyName = "shiftClickCustomization",
name = "Customizable shift-click", name = "Customizable shift-click",
description = "Allows customization of shift-clicks on items" description = "Allows customization of shift-clicks on items"
) )
default boolean shiftClickCustomization() default boolean shiftClickCustomization()
{ {
return true; return true;
} }
@ConfigItem( @ConfigItem(
keyName = "swapAdmire", keyName = "swapAdmire",
name = "Admire", name = "Admire",
description = "Swap Admire with Teleport, Spellbook and Perks (max cape) for mounted skill capes." description = "Swap Admire with Teleport, Spellbook and Perks (max cape) for mounted skill capes."
) )
default boolean swapAdmire() default boolean swapAdmire()
{ {
return true; return true;
} }
@ConfigItem( @ConfigItem(
keyName = "swapAssignment", keyName = "swapAssignment",
name = "Assignment", name = "Assignment",
description = "Swap Talk-to with Assignment for Slayer Masters. This will take priority over swapping Trade." description = "Swap Talk-to with Assignment for Slayer Masters. This will take priority over swapping Trade."
) )
default boolean swapAssignment() default boolean swapAssignment()
{ {
return true; return true;
} }
@ConfigItem( @ConfigItem(
keyName = "swapBanker", keyName = "swapBanker",
name = "Bank", name = "Bank",
description = "Swap Talk-to with Bank on Bank NPC<br>Example: Banker" description = "Swap Talk-to with Bank on Bank NPC<br>Example: Banker"
) )
default boolean swapBank() default boolean swapBank()
{ {
return true; return true;
} }
@ConfigItem( @ConfigItem(
keyName = "swapBirdhouseEmpty", keyName = "swapBirdhouseEmpty",
name = "Birdhouse", name = "Birdhouse",
description = "Swap Interact with Empty for birdhouses on Fossil Island" description = "Swap Interact with Empty for birdhouses on Fossil Island"
) )
default boolean swapBirdhouseEmpty() default boolean swapBirdhouseEmpty()
{ {
return true; return true;
} }
@ConfigItem( @ConfigItem(
keyName = "swapBones", keyName = "swapBones",
name = "Bury", name = "Bury",
description = "Swap Bury with Use on Bones" description = "Swap Bury with Use on Bones"
) )
default boolean swapBones() default boolean swapBones()
{ {
return false; return false;
} }
@ConfigItem( @ConfigItem(
keyName = "swapContract", keyName = "swapContract",
name = "Contract", name = "Contract",
description = "Swap Talk-to with Contract on Guildmaster Jane" description = "Swap Talk-to with Contract on Guildmaster Jane"
) )
default boolean swapContract() default boolean swapContract()
{ {
return true; return true;
} }
@ConfigItem( @ConfigItem(
keyName = "swapChase", keyName = "swapChase",
name = "Chase", name = "Chase",
description = "Allows to left click your cat to chase" description = "Allows to left click your cat to chase"
) )
default boolean swapChase() default boolean swapChase()
{ {
return true; return true;
} }
@ConfigItem( @ConfigItem(
keyName = "claimSlime", keyName = "claimSlime",
name = "Claim Slime", name = "Claim Slime",
description = "Swap Talk-to with Claim Slime from Morytania diaries" description = "Swap Talk-to with Claim Slime from Morytania diaries"
) )
default boolean claimSlime() default boolean claimSlime()
{ {
return true; return true;
} }
@ConfigItem( @ConfigItem(
keyName = "swapDarkMage", keyName = "swapDarkMage",
name = "Repairs", name = "Repairs",
description = "Swap Talk-to with Repairs for Dark Mage" description = "Swap Talk-to with Repairs for Dark Mage"
) )
default boolean swapDarkMage() default boolean swapDarkMage()
{ {
return true; return true;
} }
@ConfigItem( @ConfigItem(
keyName = "swapDecant", keyName = "swapDecant",
name = "Decant", name = "Decant",
description = "Swap Talk-to with Decant for Bob Barter and Murky Matt at the Grand Exchange." description = "Swap Talk-to with Decant for Bob Barter and Murky Matt at the Grand Exchange."
) )
default boolean swapDecant() default boolean swapDecant()
{ {
return false; return false;
} }
@ConfigItem( @ConfigItem(
keyName = "swapExchange", keyName = "swapExchange",
name = "Exchange", name = "Exchange",
description = "Swap Talk-to with Exchange on NPC<br>Example: Grand Exchange Clerk, Tool Leprechaun, Void Knight" description = "Swap Talk-to with Exchange on NPC<br>Example: Grand Exchange Clerk, Tool Leprechaun, Void Knight"
) )
default boolean swapExchange() default boolean swapExchange()
{ {
return true; return true;
} }
@ConfigItem( @ConfigItem(
keyName = "swapFairyRing", keyName = "swapFairyRing",
name = "Fairy ring", name = "Fairy ring",
description = "Swap Zanaris with Last-destination or Configure on Fairy rings" description = "Swap Zanaris with Last-destination or Configure on Fairy rings"
) )
default FairyRingMode swapFairyRing() default FairyRingMode swapFairyRing()
{ {
return FairyRingMode.LAST_DESTINATION; return FairyRingMode.LAST_DESTINATION;
} }
@ConfigItem( @ConfigItem(
keyName = "swapHarpoon", keyName = "swapHarpoon",
name = "Harpoon", name = "Harpoon",
description = "Swap Cage, Big Net with Harpoon on Fishing spot" description = "Swap Cage, Big Net with Harpoon on Fishing spot"
) )
default boolean swapHarpoon() default boolean swapHarpoon()
{ {
return false; return false;
} }
@ConfigItem( @ConfigItem(
keyName = "swapHomePortal", keyName = "swapHomePortal",
name = "Home", name = "Home",
description = "Swap Enter with Home or Build or Friend's house on Portal" description = "Swap Enter with Home or Build or Friend's house on Portal"
) )
default HouseMode swapHomePortal() default HouseMode swapHomePortal()
{ {
return HouseMode.HOME; return HouseMode.HOME;
} }
@ConfigItem( @ConfigItem(
keyName = "swapPickpocket", keyName = "swapPickpocket",
name = "Pickpocket on H.A.M.", name = "Pickpocket on H.A.M.",
description = "Swap Talk-to with Pickpocket on H.A.M members" description = "Swap Talk-to with Pickpocket on H.A.M members"
) )
default boolean swapPickpocket() default boolean swapPickpocket()
{ {
return true; return true;
} }
@ConfigItem( @ConfigItem(
keyName = "swapPay", keyName = "swapPay",
name = "Pay", name = "Pay",
description = "Swap Talk-to with Pay on NPC<br>Example: Elstan, Heskel, Fayeth" description = "Swap Talk-to with Pay on NPC<br>Example: Elstan, Heskel, Fayeth"
) )
default boolean swapPay() default boolean swapPay()
{ {
return true; return true;
} }
@ConfigItem( @ConfigItem(
keyName = "swapPrivate", keyName = "swapPrivate",
name = "Private", name = "Private",
description = "Swap Shared with Private on the Chambers of Xeric storage units." description = "Swap Shared with Private on the Chambers of Xeric storage units."
) )
default boolean swapPrivate() default boolean swapPrivate()
{ {
return false; return false;
} }
@ConfigItem( @ConfigItem(
keyName = "swapPick", keyName = "swapPick",
name = "Pick", name = "Pick",
description = "Swap Pick with Pick-lots of the Gourd tree in the Chambers of Xeric" description = "Swap Pick with Pick-lots of the Gourd tree in the Chambers of Xeric"
) )
default boolean swapPick() default boolean swapPick()
{ {
return false; return false;
} }
@ConfigItem( @ConfigItem(
keyName = "swapQuick", keyName = "swapQuick",
name = "Quick Pass/Open/Start/Travel", name = "Quick Pass/Open/Start/Travel",
description = "Swap Pass with Quick-Pass, Open with Quick-Open, Ring with Quick-Start and Talk-to with Quick-Travel" description = "Swap Pass with Quick-Pass, Open with Quick-Open, Ring with Quick-Start and Talk-to with Quick-Travel"
) )
default boolean swapQuick() default boolean swapQuick()
{ {
return true; return true;
} }
@ConfigItem( @ConfigItem(
keyName = "swapBoxTrap", keyName = "swapBoxTrap",
name = "Reset", name = "Reset",
description = "Swap Check with Reset on box trap" description = "Swap Check with Reset on box trap"
) )
default boolean swapBoxTrap() default boolean swapBoxTrap()
{ {
return true; return true;
} }
@ConfigItem( @ConfigItem(
keyName = "swapTeleportItem", keyName = "swapTeleportItem",
name = "Teleport item", name = "Teleport item",
description = "Swap Wear, Wield with Rub, Teleport on teleport item<br>Example: Amulet of glory, Explorer's ring, Chronicle" description = "Swap Wear, Wield with Rub, Teleport on teleport item<br>Example: Amulet of glory, Explorer's ring, Chronicle"
) )
default boolean swapTeleportItem() default boolean swapTeleportItem()
{ {
return false; return false;
} }
@ConfigItem( @ConfigItem(
keyName = "swapAbyssTeleport", keyName = "swapAbyssTeleport",
name = "Teleport to Abyss", name = "Teleport to Abyss",
description = "Swap Talk-to with Teleport for the Mage of Zamorak" description = "Swap Talk-to with Teleport for the Mage of Zamorak"
) )
default boolean swapAbyssTeleport() default boolean swapAbyssTeleport()
{ {
return true; return true;
} }
@ConfigItem( @ConfigItem(
keyName = "swapTrade", keyName = "swapTrade",
name = "Trade", name = "Trade",
description = "Swap Talk-to with Trade on NPC<br>Example: Shop keeper, Shop assistant" description = "Swap Talk-to with Trade on NPC<br>Example: Shop keeper, Shop assistant"
) )
default boolean swapTrade() default boolean swapTrade()
{ {
return true; return true;
} }
@ConfigItem( @ConfigItem(
keyName = "swapTravel", keyName = "swapTravel",
name = "Travel", name = "Travel",
description = "Swap Talk-to with Travel, Take-boat, Pay-fare, Charter on NPC<br>Example: Squire, Monk of Entrana, Customs officer, Trader Crewmember" description = "Swap Talk-to with Travel, Take-boat, Pay-fare, Charter on NPC<br>Example: Squire, Monk of Entrana, Customs officer, Trader Crewmember"
) )
default boolean swapTravel() default boolean swapTravel()
{ {
return true; return true;
} }
} }