How to hide "ClassNameplateManaBarFrame" using OUF?
Hi,
im using oUF to create my namepaltes but I have a problem with my personal resource nameplate. As you can see on this picture there are three bars. - The first is the health bar I created. - The second is the power bar I created. - The third is the default blizzard ClassNameplateManaBarFrame I thought using oUF would cause ClassNameplateManaBarFrame to be hidden or something else. Lua Code:
Does not keep it hidden. Any ideas? |
Quote:
Otherwise there are several methods to overwrite the Show method for frames. Though I tend to avoid doing that unless absolutely necessary. This is JUST an example. Again I normally avoid doing such things. Code:
_G.ClassNameplateManaBarFrame:SetScript("OnShow", function() return end) Code:
_G.ClassNameplateManaBarFrame.Show = function(self) self:Hide() end Code:
hooksecurefunc(_G.ClassNameplateManaBarFrame, "Show", function(self) self:Hide() end) The cleanest solution would be to review the oUF code to determine what keeps showing it and disabling it there. |
I moved your thread to the oUF section of the forums. Folks here might have an idea.
|
Quote:
Lua Code:
But that leads to another strange error: Lua Code:
But I can live with that for now |
This is better to avoid the error:
Lua Code:
|
All times are GMT -6. The time now is 12:29 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI