skill sessions: Add a toggle for displaying session stats
This commit is contained in:
@@ -164,4 +164,14 @@ public interface FishingConfig extends Config
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
@ConfigItem(
|
||||
keyName = "showFishingStats",
|
||||
name = "Show Fishing session stats",
|
||||
description = "Configures whether to display the fishing session stats"
|
||||
)
|
||||
default boolean showFishingStats()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -61,6 +61,11 @@ class FishingOverlay extends Overlay
|
||||
@Override
|
||||
public Dimension render(Graphics2D graphics)
|
||||
{
|
||||
if (!config.showFishingStats())
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
FishingSession session = plugin.getSession();
|
||||
|
||||
if (session.getLastFishCaught() == null)
|
||||
|
||||
@@ -64,4 +64,14 @@ public interface MotherlodeConfig extends Config
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
@ConfigItem(
|
||||
keyName = "showMiningStats",
|
||||
name = "Show Mining session stats",
|
||||
description = "Configures whether to display mining session stats"
|
||||
)
|
||||
default boolean showMiningStats()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -73,6 +73,11 @@ class MotherlodeOverlay extends Overlay
|
||||
@Override
|
||||
public Dimension render(Graphics2D graphics)
|
||||
{
|
||||
if (!config.showMiningStats())
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
MotherlodeSession session = plugin.getSession();
|
||||
|
||||
if (session.getLastPayDirtMined() == null)
|
||||
|
||||
@@ -54,4 +54,14 @@ public interface WoodcuttingConfig extends Config
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
@ConfigItem(
|
||||
keyName = "showWoodcuttingStats",
|
||||
name = "Show Woodcutting session stats",
|
||||
description = "Configures whether to display woodcutting session stats"
|
||||
)
|
||||
default boolean showWoodcuttingStats()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -75,6 +75,11 @@ class WoodcuttingOverlay extends Overlay
|
||||
@Override
|
||||
public Dimension render(Graphics2D graphics)
|
||||
{
|
||||
if (!config.showWoodcuttingStats())
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
WoodcuttingSession session = plugin.getSession();
|
||||
|
||||
if (session.getLastLogCut() == null)
|
||||
|
||||
Reference in New Issue
Block a user