I managed to make an actionbar hide and show via button click using this guide :
https://docs.google.com/Doc?docid=0A...yeHRiZnQ&hl=en
Great now the porblem comes when i try to make it for the second action bar it dosent work fully. The open button apears and if i click on it the panel apears but the close button dosent apear and the actionbar aswell. I simply replaced the variables of first versio that apear in guide like this:
OpenButton = OpenButton2
CloseButton= CloseButton2
OpenFrame= OpenFrame2
and ofc the parts where the actiobar name apears with the right corespondent.
---------- Post added 2011-10-20 at 10:22 AM ----------
This script i am using:
OpenButton = now replaced with OpenButton2
OnClick
local openFrame2 = kgPanels:FetchFrame("OpenFrame2")
local closeButton2 = kgPanels:FetchFrame("CloseButton2")
if pressed then
openFrame2:Show()
self:Hide()
closeButton2:Show()
BT2Bar:Show()
self:SetBackdropColor(1,1,1,1)
end
OnUpdate
local frame2 = kgPanels:FetchFrame("OpenButton2")
if MouseIsOver( frame ) then
self.text:SetTextColor(1,1,1)
UI_OpenButton2TextAlpha = 1
else
if UI_OpenButton2TextAlpha > 0 then
self.text:SetTextColor(1,1,1,UI_OpenButton2TextAlpha)
if UI_OpenButton2TextAlpha < 0 then
UI_OpenButton2TextAlpha = 0 else
UI_OpenButton2TextAlpha= UI_OpenButton2TextAlpha - 0.1
end
end
end
OnLoad
UI_OpenButton2TextAlpha = 1
BT4Bar2:Hide()
---------- Post added 2011-10-20 at 10:30 AM ----------
CloseButton= now CloseButton2
OnLoad
self:Hide()
OnClick
local openFrame2 = kgPanels:FetchFrame("OpenFrame2")
local openButton2 = kgPanels:FetchFrame("OpenButton2")
if pressed then
openFrame2:Hide()
self:Hide()
openButton2:Show()
BT4Bar2:Hide()
end
---------- Post added 2011-10-20 at 10:35 AM ----------
OpenFrame= now OpenFrame2
OnLoad
self:Hide()
Thats all like i mentioned i tryed to replace mentioned variables (OpenButton, Openframe and Closebutton with OpenButton2, OpenFrame2and CloseButton2) every where i saw them, maby i shouldnt have done it . So pls master scripters help me with error in my "scripting" considering im a nab in that domain and all i know is via guides.