MenuEntrySwapper: Improved Ardougne Cloak (#1623)

This commit is contained in:
LoneVV
2019-09-22 23:30:22 +03:00
committed by Ganom
parent 63df336aaf
commit 3553a98f97
3 changed files with 61 additions and 16 deletions

View File

@@ -32,6 +32,7 @@ import net.runelite.client.config.ConfigGroup;
import net.runelite.client.config.ConfigItem; import net.runelite.client.config.ConfigItem;
import net.runelite.client.config.ConfigSection; import net.runelite.client.config.ConfigSection;
import net.runelite.client.config.Keybind; import net.runelite.client.config.Keybind;
import net.runelite.client.plugins.menuentryswapper.util.ArdougneCloakMode;
import net.runelite.client.plugins.menuentryswapper.util.BurningAmuletMode; import net.runelite.client.plugins.menuentryswapper.util.BurningAmuletMode;
import net.runelite.client.plugins.menuentryswapper.util.CharterOption; import net.runelite.client.plugins.menuentryswapper.util.CharterOption;
import net.runelite.client.plugins.menuentryswapper.util.CombatBraceletMode; import net.runelite.client.plugins.menuentryswapper.util.CombatBraceletMode;
@@ -334,22 +335,36 @@ public interface MenuEntrySwapperConfig extends Config
} }
@ConfigItem( @ConfigItem(
keyName = "swapArdougneCape", keyName = "swapArdougneCloak",
name = "Ardougne Cape", name = "Ardougne Cloak",
description = "Enables swapping of 'Teleport' and 'Wear'.", description = "Enables swapping of 'Teleport' and 'Wear'.",
position = 2, position = 2,
section = "equipmentSwapperSection" section = "equipmentSwapperSection"
) )
default boolean getSwapArdougneCape() default boolean getSwapArdougneCloak()
{ {
return false; return false;
} }
@ConfigItem(
keyName = "ardougneCloakMode",
name = "Mode",
description = "",
position = 3,
section = "equipmentSwapperSection",
hidden = true,
unhide = "swapArdougneCloak"
)
default ArdougneCloakMode ardougneCloakMode()
{
return ArdougneCloakMode.TELE_TO_MONASTERY;
}
@ConfigItem( @ConfigItem(
keyName = "swapConstructionCape", keyName = "swapConstructionCape",
name = "Construction Cape", name = "Construction Cape",
description = "Enables swapping of 'Teleport' and 'Wear'.", description = "Enables swapping of 'Teleport' and 'Wear'.",
position = 3, position = 4,
section = "equipmentSwapperSection" section = "equipmentSwapperSection"
) )
default boolean getSwapConstructionCape() default boolean getSwapConstructionCape()
@@ -361,7 +376,7 @@ public interface MenuEntrySwapperConfig extends Config
keyName = "constructionCapeMode", keyName = "constructionCapeMode",
name = "Mode", name = "Mode",
description = "", description = "",
position = 4, position = 5,
section = "equipmentSwapperSection", section = "equipmentSwapperSection",
hidden = true, hidden = true,
unhide = "swapConstructionCape" unhide = "swapConstructionCape"
@@ -375,7 +390,7 @@ public interface MenuEntrySwapperConfig extends Config
keyName = "swapCraftingCape", keyName = "swapCraftingCape",
name = "Crafting Cape", name = "Crafting Cape",
description = "Enables swapping of 'Teleport' and 'Wear'.", description = "Enables swapping of 'Teleport' and 'Wear'.",
position = 5, position = 6,
section = "equipmentSwapperSection" section = "equipmentSwapperSection"
) )
default boolean getSwapCraftingCape() default boolean getSwapCraftingCape()
@@ -387,7 +402,7 @@ public interface MenuEntrySwapperConfig extends Config
keyName = "swapMagicCape", keyName = "swapMagicCape",
name = "Magic Cape", name = "Magic Cape",
description = "Enables swapping of 'Spellbook' and 'Wear'.", description = "Enables swapping of 'Spellbook' and 'Wear'.",
position = 6, position = 7,
section = "equipmentSwapperSection" section = "equipmentSwapperSection"
) )
default boolean getSwapMagicCape() default boolean getSwapMagicCape()
@@ -399,7 +414,7 @@ public interface MenuEntrySwapperConfig extends Config
keyName = "swapExplorersRing", keyName = "swapExplorersRing",
name = "Explorer's Ring", name = "Explorer's Ring",
description = "Enables swapping of 'Spellbook' and 'Wear'.", description = "Enables swapping of 'Spellbook' and 'Wear'.",
position = 7, position = 8,
section = "equipmentSwapperSection" section = "equipmentSwapperSection"
) )
default boolean getSwapExplorersRing() default boolean getSwapExplorersRing()
@@ -411,7 +426,7 @@ public interface MenuEntrySwapperConfig extends Config
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.",
position = 8, position = 9,
section = "equipmentSwapperSection" section = "equipmentSwapperSection"
) )
default boolean swapAdmire() default boolean swapAdmire()
@@ -423,7 +438,7 @@ public interface MenuEntrySwapperConfig extends Config
keyName = "swapQuestCape", keyName = "swapQuestCape",
name = "Quest Cape", name = "Quest Cape",
description = "Enables swapping Quest cape options in worn interface.", description = "Enables swapping Quest cape options in worn interface.",
position = 9, position = 10,
section = "equipmentSwapperSection" section = "equipmentSwapperSection"
) )
default boolean swapQuestCape() default boolean swapQuestCape()
@@ -435,7 +450,7 @@ public interface MenuEntrySwapperConfig extends Config
keyName = "questCapeMode", keyName = "questCapeMode",
name = "Mode", name = "Mode",
description = "", description = "",
position = 10, position = 11,
section = "equipmentSwapperSection", section = "equipmentSwapperSection",
hidden = true, hidden = true,
unhide = "swapQuestCape" unhide = "swapQuestCape"

View File

@@ -88,6 +88,7 @@ import net.runelite.client.plugins.menuentryswapper.comparables.EquipmentCompara
import net.runelite.client.plugins.menuentryswapper.comparables.InventoryComparableEntry; import net.runelite.client.plugins.menuentryswapper.comparables.InventoryComparableEntry;
import net.runelite.client.plugins.menuentryswapper.comparables.ShopComparableEntry; import net.runelite.client.plugins.menuentryswapper.comparables.ShopComparableEntry;
import net.runelite.client.plugins.menuentryswapper.comparables.WithdrawComparableEntry; import net.runelite.client.plugins.menuentryswapper.comparables.WithdrawComparableEntry;
import net.runelite.client.plugins.menuentryswapper.util.ArdougneCloakMode;
import net.runelite.client.plugins.menuentryswapper.util.BurningAmuletMode; import net.runelite.client.plugins.menuentryswapper.util.BurningAmuletMode;
import net.runelite.client.plugins.menuentryswapper.util.CharterOption; import net.runelite.client.plugins.menuentryswapper.util.CharterOption;
import net.runelite.client.plugins.menuentryswapper.util.CombatBraceletMode; import net.runelite.client.plugins.menuentryswapper.util.CombatBraceletMode;
@@ -187,6 +188,7 @@ public class MenuEntrySwapperPlugin extends Plugin
private BurningAmuletMode getBurningAmuletMode; private BurningAmuletMode getBurningAmuletMode;
private CharterOption charterOption; private CharterOption charterOption;
private CombatBraceletMode getCombatBraceletMode; private CombatBraceletMode getCombatBraceletMode;
private ArdougneCloakMode ardougneCloakMode;
private ConstructionCapeMode constructionCapeMode; private ConstructionCapeMode constructionCapeMode;
private ConstructionMode getConstructionMode; private ConstructionMode getConstructionMode;
private DigsitePendantMode getDigsitePendantMode; private DigsitePendantMode getDigsitePendantMode;
@@ -222,7 +224,7 @@ public class MenuEntrySwapperPlugin extends Plugin
private boolean getRingofWealth; private boolean getRingofWealth;
private boolean getSkillsNecklace; private boolean getSkillsNecklace;
private boolean getSlayerRing; private boolean getSlayerRing;
private boolean getSwapArdougneCape; private boolean getSwapArdougneCloak;
private boolean getSwapConstructionCape; private boolean getSwapConstructionCape;
private boolean getSwapCraftingCape; private boolean getSwapCraftingCape;
private boolean getSwapExplorersRing; private boolean getSwapExplorersRing;
@@ -770,10 +772,10 @@ public class MenuEntrySwapperPlugin extends Plugin
menuManager.addPriorityEntry("Buy <col=ff7000>All").setPriority(10); menuManager.addPriorityEntry("Buy <col=ff7000>All").setPriority(10);
} }
if (this.getSwapArdougneCape) if (this.getSwapArdougneCloak)
{ {
menuManager.addPriorityEntry("Kandarin Monastery"); menuManager.addPriorityEntry(this.ardougneCloakMode.toString()).setPriority(100);
menuManager.addPriorityEntry("Monastery Teleport"); menuManager.addPriorityEntry(this.ardougneCloakMode.toString2()).setPriority(100);
} }
if (this.getSwapCraftingCape) if (this.getSwapCraftingCape)
@@ -1536,6 +1538,7 @@ public class MenuEntrySwapperPlugin extends Plugin
this.charterOption = config.charterOption(); this.charterOption = config.charterOption();
this.configCustomShiftSwaps = config.shiftCustomSwaps(); this.configCustomShiftSwaps = config.shiftCustomSwaps();
this.configCustomSwaps = config.customSwaps(); this.configCustomSwaps = config.customSwaps();
this.ardougneCloakMode = config.ardougneCloakMode();
this.constructionCapeMode = config.constructionCapeMode(); this.constructionCapeMode = config.constructionCapeMode();
this.getBurningAmulet = config.getBurningAmulet(); this.getBurningAmulet = config.getBurningAmulet();
this.getBurningAmuletMode = config.getBurningAmuletMode(); this.getBurningAmuletMode = config.getBurningAmuletMode();
@@ -1559,7 +1562,7 @@ public class MenuEntrySwapperPlugin extends Plugin
this.getSkillsNecklaceMode = config.getSkillsNecklaceMode(); this.getSkillsNecklaceMode = config.getSkillsNecklaceMode();
this.getSlayerRing = config.getSlayerRing(); this.getSlayerRing = config.getSlayerRing();
this.getSlayerRingMode = config.getSlayerRingMode(); this.getSlayerRingMode = config.getSlayerRingMode();
this.getSwapArdougneCape = config.getSwapArdougneCape(); this.getSwapArdougneCloak = config.getSwapArdougneCloak();
this.getSwapConstructionCape = config.getSwapConstructionCape(); this.getSwapConstructionCape = config.getSwapConstructionCape();
this.getSwapCraftingCape = config.getSwapCraftingCape(); this.getSwapCraftingCape = config.getSwapCraftingCape();
this.getSwapExplorersRing = config.getSwapExplorersRing(); this.getSwapExplorersRing = config.getSwapExplorersRing();

View File

@@ -0,0 +1,27 @@
package net.runelite.client.plugins.menuentryswapper.util;
public enum ArdougneCloakMode
{
TELE_TO_MONASTERY("Monastery Teleport", "Kandarin Monastery"),
TELE_TO_FARM("Farm Teleport", "Ardougne Farm");
private final String name, name2;
ArdougneCloakMode(String name, String name2)
{
this.name = name;
this.name2 = name2;
}
@Override
public String toString()
{
return name;
}
public String toString2()
{
return name2;
}
}