Thread Tools Display Modes
08-28-16, 12:48 PM   #1
xplosive03
A Fallenroot Satyr
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 20
Vuhdo Switch when changing to heal/dps

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
  Reply With Quote

WoWInterface » Featured Projects » RealUI » Vuhdo Switch when changing to heal/dps


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off