Hello,
I am trying to create a simple switch to turn off Vuhdo when I go dps.
It's not really working like intended and I am hoping to get some assistance.
This is the button that does the switch in the InfoLine.lua
---- Layout Button
self:RegisterEvent("Vuhdo_Toggle")
local function Layout_Update(self)
local CurLayoutIcon
if ndbc.layout.current == 1 then
-- DPS/Tank
CurLayoutIcon = Icons[layoutSize].layout_dt
Vd1:Hide()
else
-- Healing
CurLayoutIcon = Icons[layoutSize].layout_h
Vd1:Show()
end
self.icon:SetTexture(CurLayoutIcon[1])
self.iconwidth = CurLayoutIcon[2]
UpdateElementWidth(self)
end
|
As you can see I implented Hide & Show comments but its throwing up errors, I am no expert in lua so hoping someone can point me in the right way or maybe even fix the code.
Thanks in advance!
Kinds Regards,
Ronald Pruim