Skip to content

Commit

Permalink
Merge pull request #607 from slest1/feature/drift-net
Browse files Browse the repository at this point in the history
Feature/drift net
  • Loading branch information
chsami authored Jan 8, 2025
2 parents 0b9ad36 + f7db9e9 commit ddc54a0
Show file tree
Hide file tree
Showing 2 changed files with 236 additions and 74 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,96 +3,154 @@
import net.runelite.client.config.*;

import java.awt.*;

@ConfigGroup(DriftNetPlugin.CONFIG_GROUP)
@ConfigInformation("Start this script at the driftet fishing area. <br /> Make sure to have driftnet in your inventory or driftnet stored with anetta.")
@ConfigInformation("Start this script at the driftet fishing area. <br /> Make sure to have driftnet in your inventory or driftnet stored with Anette.")
public interface DriftNetConfig extends Config {

// ------------------------------
// Sections
// ------------------------------

@ConfigSection(
name = "General Settings",
description = "Basic settings and usage instructions",
position = 0,
closedByDefault = false
)
String generalSettings = "generalSettings";

@ConfigSection(
name = "Banking Settings",
description = "Options related to banking fish",
position = 1,
closedByDefault = false
)
String bankingSettings = "bankingSettings";

@ConfigSection(
name = "Visual Settings",
description = "Customization options for visual elements",
position = 2,
closedByDefault = true
)
String visualSettings = "visualSettings";

// ------------------------------
// General Settings
// ------------------------------

@ConfigItem(
keyName = "guide",
name = "How to use",
description = "How to use this plugin",
position = 1
position = 0,
section = generalSettings
)
default String GUIDE() {
return "Start at the driftnet area\n" +
"MUST HAVE DRIFTNET IN INVENTORY OR STORED WITH THE NPC";
return "Start at the driftnet area\n" +
"MUST HAVE DRIFTNET IN INVENTORY OR STORED WITH THE NPC";
}

@ConfigItem(
position = 1,
keyName = "showNetStatus",
name = "Show net status",
description = "Show net status and fish count"
description = "Show net status and fish count",
section = generalSettings
)
default boolean showNetStatus() {
return true;
return true;
}

// ------------------------------
// Banking Settings
// ------------------------------

@ConfigItem(
position = 2,
keyName = "bankFish",
name = "Bank Fish?",
description = "Will bank fish, but will result in less xp/hr",
position = 0,
section = bankingSettings
)
default boolean bankFish() {
return false;
}

// ------------------------------
// Visual Settings
// ------------------------------

@ConfigItem(
position = 0,
keyName = "countColor",
name = "Fish count color",
description = "Color of the fish count text"
description = "Color of the fish count text",
section = visualSettings
)
default Color countColor() {
return Color.WHITE;
return Color.WHITE;
}

@ConfigItem(
position = 3,
position = 1,
keyName = "highlightUntaggedFish",
name = "Highlight untagged fish",
description = "Highlight the untagged fish"
description = "Highlight the untagged fish",
section = visualSettings
)
default boolean highlightUntaggedFish() {
return true;
return true;
}

@Alpha
@ConfigItem(
keyName = "untaggedFishColor",
name = "Untagged fish color",
description = "Color of untagged fish",
position = 2,
section = visualSettings
)
default Color untaggedFishColor() {
return Color.CYAN;
}

@ConfigItem(
position = 4,
position = 3,
keyName = "timeoutDelay",
name = "Tagged timeout",
description = "Time required for a tag to expire"
description = "Time required for a tag to expire",
section = visualSettings
)
@Range(
min = 1,
max = 100
)
@Units(Units.TICKS)
default int timeoutDelay() {
return 60;
}

@Alpha
@ConfigItem(
keyName = "untaggedFishColor",
name = "Untagged fish color",
description = "Color of untagged fish",
position = 5
)
default Color untaggedFishColor() {
return Color.CYAN;
return 60;
}

@ConfigItem(
keyName = "tagAnnette",
name = "Tag Annette",
description = "Tag Annette when no nets in inventory",
position = 6
position = 4,
section = visualSettings
)
default boolean tagAnnetteWhenNoNets() {
return true;
return true;
}

@Alpha
@ConfigItem(
keyName = "annetteTagColor",
name = "Annette tag color",
description = "Color of Annette tag",
position = 7
position = 5,
section = visualSettings
)
default Color annetteTagColor() {
return Color.RED;
return Color.RED;
}
}
}
Loading

0 comments on commit ddc54a0

Please sign in to comment.