Make CrazyArrow stratum be settable to HIGH/MEDIUM.
Ludovicus [07-06-19 - 18:03]
Make CrazyArrow stratum be settable to HIGH/MEDIUM.
diff --git a/TomTom.lua b/TomTom.lua
index 7d411a5..0fdcdbb 100755
--- a/TomTom.lua
+++ b/TomTom.lua
@@ -65,6 +65,7 @@ function TomTom:Initialize(event, addon)
showtta = true,
showdistance = true,
stickycorpse = false,
+ highstrata = false,
autoqueue = true,
menu = true,
scale = 1.0,
diff --git a/TomTom_Config.lua b/TomTom_Config.lua
index 380043f..96f46e6 100755
--- a/TomTom_Config.lua
+++ b/TomTom_Config.lua
@@ -254,10 +254,18 @@ local function createconfig()
width = "double",
arg = "arrow.stickycorpse",
},
+ strata = {
+ order = 16,
+ type = "toggle",
+ name = L["Place the arrow in the HIGH strata"],
+ desc = L["If your arrow is covered up by something else, try this to bump it up a layer."],
+ width = "double",
+ arg = "arrow.highstrata",
+ },
display = {
type = "group",
name = L["Arrow display"],
- order = 15,
+ order = 16,
inline = true,
args = {
help = {
diff --git a/TomTom_CrazyArrow.lua b/TomTom_CrazyArrow.lua
index 5434dc1..d33040b 100755
--- a/TomTom_CrazyArrow.lua
+++ b/TomTom_CrazyArrow.lua
@@ -260,6 +260,12 @@ function TomTom:ShowHideCrazyArrow()
if TomTom.db.profile.arrow.alpha < 0.1 then
TomTom.db.profile.arrow.alpha = 1.0
end
+ -- Set the stratum
+ if TomTom.db.profile.arrow.highstrata then
+ wayframe:SetFrameStrata("HIGH")
+ else
+ wayframe:SetFrameStrata("MEDIUM")
+ end
wayframe:SetAlpha(TomTom.db.profile.arrow.alpha)
local width = TomTom.db.profile.arrow.title_width
local height = TomTom.db.profile.arrow.title_height