Thread Tools Display Modes
Prev Previous Post   Next Post Next
12-13-11, 09:41 PM   #2
Taryble
A Molten Giant
 
Taryble's Avatar
Join Date: Jan 2009
Posts: 811
"local" is a definition - whether the function or variable is Global or is only accessible from inside the current script.

"/run" is used when running lua script in a macro.

Neither one is actually needed here, as far as I know.

Code:
if pressed then
  ShadowUF.db:SetProfile("BG40")
  ReloadUI()
end
Now, I'm not sure if this will actually work. Does
/run ShadowUF.db:SetProfile("BG40")
swap your profile properly? If so, then the above code should work. If it doesn't, it's out of my ability to fix. :>
__________________
-- Taryble
  Reply With Quote
 

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » Reload UI with kgPanels button

Thread Tools
Display Modes

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