Disable Runes Hide Blizzard option

This is no longer functional in 10.0 and I can't find an easy replacement, so I'm removing the functionality for 10.0+ for now. The entire player frame can still be hidden, which also hides the runes, so I don't feel like this is super critical to have.

Fixes #26
This commit is contained in:
Parnic
2022-10-27 08:56:53 -05:00
parent 86e40187a2
commit 8858459b10

View File

@ -134,6 +134,9 @@ function Runes.prototype:GetOptions()
disabled = function() disabled = function()
return not self.moduleSettings.enabled return not self.moduleSettings.enabled
end, end,
hidden = function()
return not PlayerFrame_HideVehicleTexture
end,
order = 32 order = 32
} }
@ -581,6 +584,10 @@ local function hook_playerframe()
end end
function Runes.prototype:HideBlizz() function Runes.prototype:HideBlizz()
if not PlayerFrame_HideVehicleTexture then
return
end
RuneFrame:Hide() RuneFrame:Hide()
RuneFrame:UnregisterAllEvents() RuneFrame:UnregisterAllEvents()