View Single Post
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