Removed useless telecape, added constructioncape

This commit is contained in:
Theo
2019-07-31 09:46:04 -10:00
parent 92917fb421
commit 2929c4c2b6
3 changed files with 49 additions and 69 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.plugins.menuentryswapper.util.BurningAmuletMode; import net.runelite.client.plugins.menuentryswapper.util.BurningAmuletMode;
import net.runelite.client.plugins.menuentryswapper.util.CombatBraceletMode; import net.runelite.client.plugins.menuentryswapper.util.CombatBraceletMode;
import net.runelite.client.plugins.menuentryswapper.util.ConstructionCapeMode;
import net.runelite.client.plugins.menuentryswapper.util.DigsitePendantMode; import net.runelite.client.plugins.menuentryswapper.util.DigsitePendantMode;
import net.runelite.client.plugins.menuentryswapper.util.DuelingRingMode; import net.runelite.client.plugins.menuentryswapper.util.DuelingRingMode;
import net.runelite.client.plugins.menuentryswapper.util.FairyRingMode; import net.runelite.client.plugins.menuentryswapper.util.FairyRingMode;
@@ -47,7 +48,6 @@ import net.runelite.client.plugins.menuentryswapper.util.RingOfWealthMode;
import net.runelite.client.plugins.menuentryswapper.util.SkillsNecklaceMode; import net.runelite.client.plugins.menuentryswapper.util.SkillsNecklaceMode;
import net.runelite.client.plugins.menuentryswapper.util.SlayerRingMode; import net.runelite.client.plugins.menuentryswapper.util.SlayerRingMode;
import net.runelite.client.plugins.menuentryswapper.util.XericsTalismanMode; import net.runelite.client.plugins.menuentryswapper.util.XericsTalismanMode;
import net.runelite.client.plugins.menuentryswapper.util.teleEquippedMode;
import net.runelite.client.plugins.menuentryswapper.util.CharterOption; import net.runelite.client.plugins.menuentryswapper.util.CharterOption;
@@ -218,37 +218,11 @@ public interface MenuEntrySwapperConfig extends Config
return false; return false;
} }
@ConfigItem(
keyName = "teleEquippedCape",
name = "Teleport Equipped Cape",
description = "Makes Teleport/Tele to POH the left click option on equip screen",
position = 1,
group = "Equipment swapper"
)
default boolean teleEquippedCape()
{
return false;
}
@ConfigItem(
keyName = "telecapeMode",
name = "ModeTeleCape",
description = "",
position = 2,
group = "Equipment swapper",
hidden = true,
unhide = "teleEquippedCape"
)
default teleEquippedMode telecapeMode()
{
return teleEquippedMode.TELEPORT;
}
@ConfigItem( @ConfigItem(
keyName = "maxMode", keyName = "maxMode",
name = "Mode", name = "Mode",
description = "", description = "",
position = 3, position = 1,
group = "Equipment swapper", group = "Equipment swapper",
hidden = true, hidden = true,
unhide = "swapMax" unhide = "swapMax"
@@ -262,7 +236,7 @@ public interface MenuEntrySwapperConfig extends Config
keyName = "swapArdougneCape", keyName = "swapArdougneCape",
name = "Swap Ardougne Cape", name = "Swap Ardougne Cape",
description = "Enables swapping of 'Teleport' and 'Wear'.", description = "Enables swapping of 'Teleport' and 'Wear'.",
position = 4, position = 2,
group = "Equipment swapper" group = "Equipment swapper"
) )
default boolean getSwapArdougneCape() default boolean getSwapArdougneCape()
@@ -274,7 +248,7 @@ public interface MenuEntrySwapperConfig extends Config
keyName = "swapConstructionCape", keyName = "swapConstructionCape",
name = "Swap Construction Cape", name = "Swap Construction Cape",
description = "Enables swapping of 'Teleport' and 'Wear'.", description = "Enables swapping of 'Teleport' and 'Wear'.",
position = 5, position = 3,
group = "Equipment swapper" group = "Equipment swapper"
) )
default boolean getSwapConstructionCape() default boolean getSwapConstructionCape()
@@ -282,11 +256,25 @@ public interface MenuEntrySwapperConfig extends Config
return true; return true;
} }
@ConfigItem(
keyName = "constructionCapeMode",
name = "Mode",
description = "",
position = 4,
group = "Equipment swapper",
hidden = true,
unhide = "swapConstructionCape"
)
default ConstructionCapeMode constructionCapeMode()
{
return ConstructionCapeMode.TELE_TO_POH;
}
@ConfigItem( @ConfigItem(
keyName = "swapCraftingCape", keyName = "swapCraftingCape",
name = "Swap Crafting Cape", name = "Swap Crafting Cape",
description = "Enables swapping of 'Teleport' and 'Wear'.", description = "Enables swapping of 'Teleport' and 'Wear'.",
position = 6, position = 5,
group = "Equipment swapper" group = "Equipment swapper"
) )
default boolean getSwapCraftingCape() default boolean getSwapCraftingCape()
@@ -298,7 +286,7 @@ public interface MenuEntrySwapperConfig extends Config
keyName = "swapMagicCape", keyName = "swapMagicCape",
name = "Swap Magic Cape", name = "Swap Magic Cape",
description = "Enables swapping of 'Spellbook' and 'Wear'.", description = "Enables swapping of 'Spellbook' and 'Wear'.",
position = 7, position = 6,
group = "Equipment swapper" group = "Equipment swapper"
) )
default boolean getSwapMagicCape() default boolean getSwapMagicCape()
@@ -310,7 +298,7 @@ public interface MenuEntrySwapperConfig extends Config
keyName = "swapExplorersRing", keyName = "swapExplorersRing",
name = "Swap Explorer's Ring", name = "Swap Explorer's Ring",
description = "Enables swapping of 'Spellbook' and 'Wear'.", description = "Enables swapping of 'Spellbook' and 'Wear'.",
position = 8, position = 7,
group = "Equipment swapper" group = "Equipment swapper"
) )
default boolean getSwapExplorersRing() default boolean getSwapExplorersRing()
@@ -322,7 +310,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 = 9, position = 8,
group = "Equipment swapper" group = "Equipment swapper"
) )
default boolean swapAdmire() default boolean swapAdmire()
@@ -334,7 +322,7 @@ public interface MenuEntrySwapperConfig extends Config
keyName = "swapQuestCape", keyName = "swapQuestCape",
name = "Swap Quest Cape", name = "Swap Quest Cape",
description = "Enables swapping Quest cape options in worn interface.", description = "Enables swapping Quest cape options in worn interface.",
position = 10, position = 9,
group = "Equipment swapper" group = "Equipment swapper"
) )
default boolean swapQuestCape() default boolean swapQuestCape()
@@ -346,7 +334,7 @@ public interface MenuEntrySwapperConfig extends Config
keyName = "questCapeMode", keyName = "questCapeMode",
name = "Mode", name = "Mode",
description = "", description = "",
position = 11, position = 10,
group = "Equipment swapper", group = "Equipment swapper",
hidden = true, hidden = true,
unhide = "swapQuestCape" unhide = "swapQuestCape"
@@ -652,20 +640,20 @@ public interface MenuEntrySwapperConfig extends Config
description = "Don't open implings if bank has a clue.", description = "Don't open implings if bank has a clue.",
position = 23, position = 23,
group = "Miscellaneous" group = "Miscellaneous"
) )
default boolean swapImps() default boolean swapImps()
{ {
return false; return false;
} }
@ConfigItem( @ConfigItem(
keyName = "charterOption", keyName = "charterOption",
name = "Trader Crew", name = "Trader Crew",
description = "Configure whether you want Charter or Trade to be the first option of Trader Crewmembers.", description = "Configure whether you want Charter or Trade to be the first option of Trader Crewmembers.",
position = 24, position = 24,
group = "Miscellaneous" group = "Miscellaneous"
) )
default CharterOption charterOption() default CharterOption charterOption()
{ {
return CharterOption.TRADE; return CharterOption.TRADE;
} }
@@ -1665,9 +1653,9 @@ default CharterOption charterOption()
) )
default boolean hideCastToB() default boolean hideCastToB()
{ {
return true; return true;
} }
@ConfigItem( @ConfigItem(
keyName = "hideCastIgnoredToB", keyName = "hideCastIgnoredToB",

View File

@@ -104,7 +104,7 @@ import net.runelite.client.plugins.menuentryswapper.util.RingOfWealthMode;
import net.runelite.client.plugins.menuentryswapper.util.SkillsNecklaceMode; import net.runelite.client.plugins.menuentryswapper.util.SkillsNecklaceMode;
import net.runelite.client.plugins.menuentryswapper.util.SlayerRingMode; import net.runelite.client.plugins.menuentryswapper.util.SlayerRingMode;
import net.runelite.client.plugins.menuentryswapper.util.XericsTalismanMode; import net.runelite.client.plugins.menuentryswapper.util.XericsTalismanMode;
import net.runelite.client.plugins.menuentryswapper.util.teleEquippedMode; import net.runelite.client.plugins.menuentryswapper.util.ConstructionCapeMode;
import static net.runelite.client.util.MenuUtil.swap; import static net.runelite.client.util.MenuUtil.swap;
import net.runelite.client.plugins.pvptools.PvpToolsConfig; import net.runelite.client.plugins.pvptools.PvpToolsConfig;
@@ -227,11 +227,10 @@ public class MenuEntrySwapperPlugin extends Plugin
private boolean getWithdrawAll; private boolean getWithdrawAll;
private String getWithdrawAllItems; private String getWithdrawAllItems;
private boolean swapMax; private boolean swapMax;
private boolean teleEquippedCape;
private teleEquippedMode telecapeMode;
private MaxCapeMode maxMode; private MaxCapeMode maxMode;
private boolean getSwapArdougneCape; private boolean getSwapArdougneCape;
private boolean getSwapConstructionCape; private boolean getSwapConstructionCape;
private ConstructionCapeMode constructionCapeMode;
private boolean getSwapCraftingCape; private boolean getSwapCraftingCape;
private boolean getSwapMagicCape; private boolean getSwapMagicCape;
private boolean getSwapExplorersRing; private boolean getSwapExplorersRing;
@@ -610,9 +609,9 @@ public class MenuEntrySwapperPlugin extends Plugin
{ {
if (this.hideDropRunecraftingPouch && ( if (this.hideDropRunecraftingPouch && (
entry.getTarget().contains("Small pouch") entry.getTarget().contains("Small pouch")
|| entry.getTarget().contains("Medium pouch") || entry.getTarget().contains("Medium pouch")
|| entry.getTarget().contains("Large pouch") || entry.getTarget().contains("Large pouch")
|| entry.getTarget().contains("Giant pouch"))) || entry.getTarget().contains("Giant pouch")))
{ {
continue; continue;
} }
@@ -990,7 +989,7 @@ public class MenuEntrySwapperPlugin extends Plugin
else if (target.contains("construct. cape") && this.getSwapConstructionCape) else if (target.contains("construct. cape") && this.getSwapConstructionCape)
{ {
swap(client, "Tele to poh", option, target); swap(client, constructionCapeMode.toString(), option, target);
} }
else if (target.contains("magic cape") && this.getSwapMagicCape) else if (target.contains("magic cape") && this.getSwapMagicCape)
@@ -1551,12 +1550,6 @@ public class MenuEntrySwapperPlugin extends Plugin
menuManager.addSwap("remove", "burning amulet", this.getBurningAmuletMode.toString()); menuManager.addSwap("remove", "burning amulet", this.getBurningAmuletMode.toString());
} }
if (this.teleEquippedCape)
{
menuManager.addSwap("remove", "tele to poh", this.telecapeMode.toString());
menuManager.addSwap("remove", "teleport", this.telecapeMode.toString());
}
if (this.getCombatBracelet) if (this.getCombatBracelet)
{ {
menuManager.addSwap("remove", "combat bracelet", this.getCombatBraceletMode.toString()); menuManager.addSwap("remove", "combat bracelet", this.getCombatBraceletMode.toString());
@@ -1801,11 +1794,10 @@ public class MenuEntrySwapperPlugin extends Plugin
this.getWithdrawAll = config.getWithdrawAll(); this.getWithdrawAll = config.getWithdrawAll();
this.getWithdrawAllItems = config.getWithdrawAllItems(); this.getWithdrawAllItems = config.getWithdrawAllItems();
this.swapMax = config.swapMax(); this.swapMax = config.swapMax();
this.teleEquippedCape = config.teleEquippedCape();
this.telecapeMode = config.telecapeMode();
this.maxMode = config.maxMode(); this.maxMode = config.maxMode();
this.getSwapArdougneCape = config.getSwapArdougneCape(); this.getSwapArdougneCape = config.getSwapArdougneCape();
this.getSwapConstructionCape = config.getSwapConstructionCape(); this.getSwapConstructionCape = config.getSwapConstructionCape();
this.constructionCapeMode = config.constructionCapeMode();
this.getSwapCraftingCape = config.getSwapCraftingCape(); this.getSwapCraftingCape = config.getSwapCraftingCape();
this.getSwapMagicCape = config.getSwapMagicCape(); this.getSwapMagicCape = config.getSwapMagicCape();
this.getSwapExplorersRing = config.getSwapExplorersRing(); this.getSwapExplorersRing = config.getSwapExplorersRing();

View File

@@ -1,13 +1,13 @@
package net.runelite.client.plugins.menuentryswapper.util; package net.runelite.client.plugins.menuentryswapper.util;
public enum teleEquippedMode public enum ConstructionCapeMode
{ {
TELE_TO_POH("Tele to POH"), TELE_TO_POH("Tele to POH"),
TELEPORT("teleport"); TELEPORT("Teleport");
private final String name; private final String name;
teleEquippedMode(String name) ConstructionCapeMode(String name)
{ {
this.name = name; this.name = name;
} }