Merge pull request #252 from runelite-extended/superman-updates001

added a couple of custom cursor and 1 click for construction & crafti…
This commit is contained in:
Tyler Bochard
2019-05-15 13:33:51 -04:00
committed by GitHub
3 changed files with 40 additions and 4 deletions

View File

@@ -34,7 +34,12 @@ public enum CustomCursor
RS3_SILVER("RS3 Silver", "cursor-rs3-silver.png"),
DRAGON_DAGGER("Dragon Dagger", "cursor-dragon-dagger.png"),
TROUT("Trout", "cursor-trout.png"),
DRAGON_SCIMITAR("Dragon Scimitar", "cursor-dragon-scimitar.png");
DRAGON_SCIMITAR("Dragon Scimitar", "cursor-dragon-scimitar.png"),
ARMADYL_GODSWORD("Armadyl Godsword", "cursor-armadyl-godsword.png"),
BANDOS_GODSWORD("Bandos Godsword", "cursor-bandos-godsword.png"),
MOUSE("Mouse", "cursor-mouse.png"),
SARADOMIN_GODSWORD("Saradomin Godsword", "cursor-saradomin-godsword.png"),
ZAMORAK_GODSWORD("Zamorak Godsword", "cursor-zamorak-godsword.png");
private final String name;
@Getter

View File

@@ -323,6 +323,16 @@ public class EasyscapePlugin extends Plugin {
}
}
if (target.toLowerCase().contains("crafting cape") && config.getSwapCraftingCape()) {
swap("Teleport", option, target);
}
if (target.toLowerCase().contains("construct. cape") && config.getSwapConstructionCape()) {
swap("Tele to poh", option, target);
}
startSwap();
performSwap();
}

View File

@@ -268,8 +268,8 @@ public interface EasyscapePluginConfig extends Config {
default GloryMode getGloryMode() {
return GloryMode.EDGEVILLE;
}
@ConfigItem(
@ConfigItem(
keyName = "swapWealthRing",
name = "Swap Ring of Wealth",
description = "Enables swapping of Ring of Wealth.",
@@ -278,7 +278,8 @@ public interface EasyscapePluginConfig extends Config {
default boolean getWealthRing() {
return true;
}
@ConfigItem(
@ConfigItem(
keyName = "WealthRingMode",
name = "Wealth Ring Mode",
description = "Teleport location mode.",
@@ -288,5 +289,25 @@ public interface EasyscapePluginConfig extends Config {
default WealthRingMode getWealthRingMode() {
return WealthRingMode.GRAND_EXCHANGE;
}
@ConfigItem(
keyName = "swapConstructionCape",
name = "Swap Construction Cape",
description = "Enables swapping of teleport and wear.",
position = 25
)
default boolean getSwapConstructionCape() {
return true;
}
@ConfigItem(
keyName = "swapCraftingCape",
name = "Swap Crafting Cape",
description = "Enables swapping of teleport and wear.",
position = 26
)
default boolean getSwapCraftingCape() {
return true;
}
}