Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,15 @@ default Skill lampSkill() {
default boolean checkForLamps() {
return false;
}

@ConfigItem(
name = "Show Info Panel",
keyName = "showOverlay",
position = 4,
section = lampSection,
description = "Show the lamp info overlay panel"
)
default boolean showOverlay() {
return true;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ public class EventDismissOverlay extends OverlayPanel {

@Override
public Dimension render(Graphics2D graphics) {
if (!config.showOverlay()) {
return null;
}

boolean lampFeaturesActive = config.genieAction() == EventAction.ACCEPT
|| config.countCheckAction() == EventAction.ACCEPT
|| config.checkForLamps();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
)
@Slf4j
public class EventDismissPlugin extends Plugin {
public static final String version = "2.0.0";
public static final String version = "2.1.0";

@Inject
private EventDismissConfig config;
Expand Down
Loading