Skip to content

Commit

Permalink
Add .editorconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
pajlada committed Nov 29, 2023
1 parent 14bd863 commit 4964647
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 28 deletions.
9 changes: 9 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
root = true

[*.{java,kt,kts}]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 4
trim_trailing_whitespace = true
Original file line number Diff line number Diff line change
Expand Up @@ -9,36 +9,36 @@ public interface StealingArtefactsConfig extends Config {
String GROUP_NAME = "StealingArtefacts";

@ConfigItem(
keyName = "highlightPatrols",
name = "Highlight Patrols",
description = "Whether or not to highlight patrols"
keyName = "highlightPatrols",
name = "Highlight Patrols",
description = "Whether or not to highlight patrols"
)
default boolean highlightPatrols() {
return true;
}

@ConfigItem(
keyName = "highlightLadders",
name = "Highlight House Ladders",
description = "Whether or not to highlight house ladders"
keyName = "highlightLadders",
name = "Highlight House Ladders",
description = "Whether or not to highlight house ladders"
)
default boolean highlightLadders() {
return true;
}

@ConfigItem(
keyName = "highlightGuardLures",
name = "Highlight Lured Guards",
description = "Whether or not to highlight guards when lured/positioned correctly"
keyName = "highlightGuardLures",
name = "Highlight Lured Guards",
description = "Whether or not to highlight guards when lured/positioned correctly"
)
default boolean highlightGuardLures() {
return true;
}

@ConfigItem(
keyName = "showToNextLevel",
name = "Show artefacts to next level",
description = "Whether or not to show artefacts to next level"
keyName = "showToNextLevel",
name = "Show artefacts to next level",
description = "Whether or not to show artefacts to next level"
)
default boolean showToNextLevel() {
return true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public Dimension render(Graphics2D graphics) {
}
if (client.getPlane() == object.getWorldLocation().getPlane()) {
OverlayUtil.renderHoverableArea(graphics, object.getClickbox(), mousePosition, CLICKBOX_FILL_COLOR,
CLICKBOX_BORDER, CLICKBOX_HOVER_BORDER);
CLICKBOX_BORDER, CLICKBOX_HOVER_BORDER);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,19 +61,19 @@ public Dimension render(Graphics2D graphics) {

String eastGuardLured = plugin.eastGuardLured ? "\u2713" : "\u2717";
panelComponent.getChildren().add(LineComponent.builder()
.left("Eastern Guard")
.right(eastGuardLured)
.rightFont(FontManager.getDefaultFont())
.rightColor(plugin.eastGuardLured ? Color.GREEN : Color.RED)
.build());
.left("Eastern Guard")
.right(eastGuardLured)
.rightFont(FontManager.getDefaultFont())
.rightColor(plugin.eastGuardLured ? Color.GREEN : Color.RED)
.build());

String southEastGuardLured = plugin.southEastGuardLured ? "\u2713" : "\u2717";
panelComponent.getChildren().add(LineComponent.builder()
.left("South-East Guard")
.right(southEastGuardLured)
.rightFont(FontManager.getDefaultFont())
.rightColor(plugin.southEastGuardLured ? Color.GREEN : Color.RED)
.build());
.left("South-East Guard")
.right(southEastGuardLured)
.rightFont(FontManager.getDefaultFont())
.rightColor(plugin.southEastGuardLured ? Color.GREEN : Color.RED)
.build());
}

panelComponent.setPreferredSize(new Dimension(200, 0));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ public Dimension render(Graphics2D graphics) {
for (NPC actor : plugin.markedNPCs) {
if ((actor.getId() == Constants.PATROL_ID_MAX) && plugin.isGuardLured(actor) && config.highlightGuardLures()) {
OverlayUtil.renderHoverableArea(graphics, actor.getConvexHull(),
mousePosition, CLICKBOX_FILL_COLOR_LURED, CLICKBOX_BORDER, CLICKBOX_BORDER);
mousePosition, CLICKBOX_FILL_COLOR_LURED, CLICKBOX_BORDER, CLICKBOX_BORDER);
} else {
OverlayUtil.renderHoverableArea(graphics, actor.getConvexHull(),
mousePosition, CLICKBOX_FILL_COLOR, CLICKBOX_BORDER, CLICKBOX_BORDER);
mousePosition, CLICKBOX_FILL_COLOR, CLICKBOX_BORDER, CLICKBOX_BORDER);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
import java.util.concurrent.atomic.AtomicReference;

@PluginDescriptor(
name = "Stealing Artefacts",
description = "Show the current house for stealing artefacts",
tags = {}
name = "Stealing Artefacts",
description = "Show the current house for stealing artefacts",
tags = {}
)
@PluginDependency(XpTrackerPlugin.class)
@Slf4j
Expand Down

0 comments on commit 4964647

Please sign in to comment.