Add option to always show prayer flick helper
This commit is contained in:
committed by
ShaunDreclin
parent
5f2432eb6d
commit
2f4aefa6c1
@@ -93,7 +93,9 @@ class PrayerBarOverlay extends Overlay
|
|||||||
graphics.setColor(BAR_FILL_COLOR);
|
graphics.setColor(BAR_FILL_COLOR);
|
||||||
graphics.fillRect(barX, barY, progressFill, barHeight);
|
graphics.fillRect(barX, barY, progressFill, barHeight);
|
||||||
|
|
||||||
if (plugin.isPrayersActive() && (config.prayerFlickLocation().equals(PrayerFlickLocation.PRAYER_BAR) || config.prayerFlickLocation().equals(PrayerFlickLocation.BOTH)))
|
if ((plugin.isPrayersActive() || config.prayerFlickAlwaysOn())
|
||||||
|
&& (config.prayerFlickLocation().equals(PrayerFlickLocation.PRAYER_BAR)
|
||||||
|
|| config.prayerFlickLocation().equals(PrayerFlickLocation.BOTH)))
|
||||||
{
|
{
|
||||||
double t = plugin.getTickProgress();
|
double t = plugin.getTickProgress();
|
||||||
|
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ public interface PrayerConfig extends Config
|
|||||||
position = 0,
|
position = 0,
|
||||||
keyName = "prayerFlickLocation",
|
keyName = "prayerFlickLocation",
|
||||||
name = "Pray flick location",
|
name = "Pray flick location",
|
||||||
description = "Choose where to display the prayer flick helper"
|
description = "Choose where to display the prayer flick helper."
|
||||||
)
|
)
|
||||||
default PrayerFlickLocation prayerFlickLocation()
|
default PrayerFlickLocation prayerFlickLocation()
|
||||||
{
|
{
|
||||||
@@ -44,9 +44,20 @@ public interface PrayerConfig extends Config
|
|||||||
|
|
||||||
@ConfigItem(
|
@ConfigItem(
|
||||||
position = 1,
|
position = 1,
|
||||||
|
keyName = "prayerFlickAlwaysOn",
|
||||||
|
name = "Never hide prayer flick helper",
|
||||||
|
description = "Show prayer flick helper regardless of if you're praying or not."
|
||||||
|
)
|
||||||
|
default boolean prayerFlickAlwaysOn()
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
@ConfigItem(
|
||||||
|
position = 2,
|
||||||
keyName = "prayerIndicator",
|
keyName = "prayerIndicator",
|
||||||
name = "Boost indicator",
|
name = "Boost indicator",
|
||||||
description = "Enable infoboxes for prayers"
|
description = "Enable infoboxes for prayers."
|
||||||
)
|
)
|
||||||
default boolean prayerIndicator()
|
default boolean prayerIndicator()
|
||||||
{
|
{
|
||||||
@@ -54,10 +65,10 @@ public interface PrayerConfig extends Config
|
|||||||
}
|
}
|
||||||
|
|
||||||
@ConfigItem(
|
@ConfigItem(
|
||||||
position = 2,
|
position = 3,
|
||||||
keyName = "prayerIndicatorOverheads",
|
keyName = "prayerIndicatorOverheads",
|
||||||
name = "Overhead indicator",
|
name = "Overhead indicator",
|
||||||
description = "Also enable infoboxes for overheads"
|
description = "Also enable infoboxes for overheads."
|
||||||
)
|
)
|
||||||
default boolean prayerIndicatorOverheads()
|
default boolean prayerIndicatorOverheads()
|
||||||
{
|
{
|
||||||
@@ -65,7 +76,7 @@ public interface PrayerConfig extends Config
|
|||||||
}
|
}
|
||||||
|
|
||||||
@ConfigItem(
|
@ConfigItem(
|
||||||
position = 3,
|
position = 4,
|
||||||
keyName = "showPrayerDoseIndicator",
|
keyName = "showPrayerDoseIndicator",
|
||||||
name = "Show prayer dose indicator",
|
name = "Show prayer dose indicator",
|
||||||
description = "Enables the prayer dose indicator."
|
description = "Enables the prayer dose indicator."
|
||||||
@@ -76,7 +87,7 @@ public interface PrayerConfig extends Config
|
|||||||
}
|
}
|
||||||
|
|
||||||
@ConfigItem(
|
@ConfigItem(
|
||||||
position = 4,
|
position = 5,
|
||||||
keyName = "showPrayerTooltip",
|
keyName = "showPrayerTooltip",
|
||||||
name = "Show prayer orb tooltip",
|
name = "Show prayer orb tooltip",
|
||||||
description = "Displays time remaining and prayer bonus as a tooltip on the quick-prayer icon."
|
description = "Displays time remaining and prayer bonus as a tooltip on the quick-prayer icon."
|
||||||
@@ -87,7 +98,7 @@ public interface PrayerConfig extends Config
|
|||||||
}
|
}
|
||||||
|
|
||||||
@ConfigItem(
|
@ConfigItem(
|
||||||
position = 5,
|
position = 6,
|
||||||
keyName = "showPrayerBar",
|
keyName = "showPrayerBar",
|
||||||
name = "Show prayer bar",
|
name = "Show prayer bar",
|
||||||
description = "Displays prayer bar under HP bar when praying."
|
description = "Displays prayer bar under HP bar when praying."
|
||||||
@@ -98,10 +109,10 @@ public interface PrayerConfig extends Config
|
|||||||
}
|
}
|
||||||
|
|
||||||
@ConfigItem(
|
@ConfigItem(
|
||||||
|
position = 7,
|
||||||
keyName = "prayerBarHideIfNotPraying",
|
keyName = "prayerBarHideIfNotPraying",
|
||||||
name = "Hide bar while prayer is inactive",
|
name = "Hide bar while prayer is inactive",
|
||||||
description = "Prayer bar will be hidden while prayers are inactivate.",
|
description = "Prayer bar will be hidden while prayers are inactive."
|
||||||
position = 6
|
|
||||||
)
|
)
|
||||||
default boolean hideIfNotPraying()
|
default boolean hideIfNotPraying()
|
||||||
{
|
{
|
||||||
@@ -109,10 +120,10 @@ public interface PrayerConfig extends Config
|
|||||||
}
|
}
|
||||||
|
|
||||||
@ConfigItem(
|
@ConfigItem(
|
||||||
|
position = 8,
|
||||||
keyName = "prayerBarHideIfNonCombat",
|
keyName = "prayerBarHideIfNonCombat",
|
||||||
name = "Hide bar while out-of-combat",
|
name = "Hide bar while out-of-combat",
|
||||||
description = "Prayer bar will be hidden while out-of-combat.",
|
description = "Prayer bar will be hidden while out-of-combat."
|
||||||
position = 7
|
|
||||||
)
|
)
|
||||||
default boolean hideIfOutOfCombat()
|
default boolean hideIfOutOfCombat()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ class PrayerFlickOverlay extends Overlay
|
|||||||
public Dimension render(Graphics2D graphics)
|
public Dimension render(Graphics2D graphics)
|
||||||
{
|
{
|
||||||
// If there are no prayers active or flick location is set to the prayer bar we don't require the flick helper
|
// If there are no prayers active or flick location is set to the prayer bar we don't require the flick helper
|
||||||
if (!plugin.isPrayersActive()
|
if ((!plugin.isPrayersActive() && !config.prayerFlickAlwaysOn())
|
||||||
|| config.prayerFlickLocation().equals(PrayerFlickLocation.NONE)
|
|| config.prayerFlickLocation().equals(PrayerFlickLocation.NONE)
|
||||||
|| config.prayerFlickLocation().equals(PrayerFlickLocation.PRAYER_BAR))
|
|| config.prayerFlickLocation().equals(PrayerFlickLocation.PRAYER_BAR))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user