kgPanels stuff

I don’t really use kgPanels, but I’m not going to dig through internet scum again just to remember how to do some simple yet useful stuff.

 

Mouseover trigger script:

self:Show()
self:SetAlpha(0)
self:SetScript("OnEnter", function(self) self:SetAlpha(1) end)
self:SetScript("OnLeave", function(self) self:SetAlpha(0) end)

 

I dunno but looked important:

if pressed then
if kgPanels:FetchFrame ("Lock Crest") :IsVisible() then
kgPanels:FetchFrame("Lock Crest") :Hide()
else
kgPanels:FetchFrame("Lock Crest") :Show()
end
end

 

World Map Onclick trigger:

if WorldMapFrame:IsVisible() then
WorldMapFrame:Hide()
else
WorldMapFrame:Show()
end

 

Triggering a kgPanel from a Weak Aura frame (courtesy of peterparker on MMO-champ):

Your aura > Actions > On Show > Custom > paste this line: LibStub("AceAddon-3.0"):GetAddon("kgPanels"):FetchFrame("Your_Panel_Name"):Show()
Your aura > Actions > On Hide > Custom > paste this line: LibStub("AceAddon-3.0"):GetAddon("kgPanels"):FetchFrame("Your_Panel_Name"):Hide()

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s