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