Thread Tools Display Modes
Prev Previous Post   Next Post Next
12-13-11, 08:49 PM   #1
Smashbolt
A Deviate Faerie Dragon
Join Date: Mar 2010
Posts: 13
Reload UI with kgPanels button

I've got a couple of ShadowedUF profiles I switch between frequently, and I decided to make a button to do it for me. Problem is, for whatever reason, when I switch the profile, it comes out... wrong. Textures are broken, positioning is all wacky.

If I reload UI, the unit frames fix themselves. I wanted my button to do the reload for me after setting the profile, but it doesn't seem to do anything... Here's my onclick handler:

Code:
if pressed then
    local run ShadowUF.db:SetProfile("BG40")
    local run ReloadUI()
end
I've tried just ReloadUI(), and even SendChatMessage("/reload ui") and all of them just do nothing.

What am I doing wrong?
  Reply With Quote
 

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


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