Hey, guys, I need some help, with kgPanels.
What do I want to do, is:
Making two panels with kgPanels. The first is the Hide, the second is the Show button, like in
FaulTier's
Shining UI.
The first hides a kgPanel, and two BT4 action bars, and the second hides them.
FaulTier gave me some scripts. The Hide button's script is fully working - but the show is messed up. I've downloaded his UI and it worked, but on my UI it just simply doesn't work. Whenever I click the Show button, it lags the game for about 0.5 seconds, and that's all.
My scriptiez are below. (A PM directly quoted from FaulTier).
Originally Posted by FaulTier
i'll show you directly the scripts of my bar-buttons:
First Button, to HIDE the bar, named "barSideHide":
OnLoad:
OnClick:
Code:
local button = kgPanels:FetchFrame("barSideShow")
local bar = kgPanels:FetchFrame("BarSide")
bar:Hide()
BT4Bar5:Hide()
BT4Bar6:Hide()
self:Hide()
button:Show()
Second button, to show the bar, named "barSideShow":
OnLoad
OnClick:
Code:
local button = kgPanels:FetchFrame("BarSideHide")
local bar3 = kgPanels:FetchFrame("BarSide")
button:Show()
bar3:Show()
BT4Bar5:Show()
BT4Bar6:Show()
self:Hide()
The Third is just the Panel you would like to manage. In this case it's "BarSide", which is the background for the Bars in the right of my interface. BT4Bar 5 and 6 are the bars.
You need to make the first and second panel being clickable and at best you take same size and position but different textures/colours for them.
Hope it's well enough described.
greetz
|
Please, help! I really need it for my UI. Thanks.