Go Back   WowAce Forums > Official Addon Threads > General AddOns
General AddOns Authors, post your release ready addons here to get feedback or just to let everyone know about it.

Reply
 
Thread Tools
Old 2 Weeks Ago   #1091
Dajova
Member
 
Join Date: Oct 2007
Posts: 35
Default Re: kgPanels Offical Thread

K, i might be blind or just stupid, but i just can't fix this :S

I'm trying to have a panel to work for just a specific classmod that i use, so it wont show up on any of my other characters. But the "Script Dependency" doesn't seems to work (or im doing something wrong).

OnLoad
Quote:
self:RegisterEvent("PLAYER_LOGIN")
OnEvent
Quote:
if class == "SHAMAN" then
self:Show()
else
self:Hide()
end
Dajova is offline   Reply With Quote
Old 2 Weeks Ago   #1092
ImpalerCore
Member
 
Join Date: Sep 2009
Posts: 21
Default Re: kgPanels Offical Thread

Quote:
Originally Posted by Dajova View Post
K, i might be blind or just stupid, but i just can't fix this :S

I'm trying to have a panel to work for just a specific classmod that i use, so it wont show up on any of my other characters. But the "Script Dependency" doesn't seems to work (or im doing something wrong).

OnLoad


OnEvent
You can try something like this.

<OnLoad>
self:RegisterEvent( "PLAYER_ENTERING_WORLD" )
self:Hide()

<OnEvent>
local playerClass, englishClass = UnitClass("player");
if englishClass == "SHAMAN" then
self:Show()
end

http://www.wowwiki.com/API_UnitClass
ImpalerCore is offline   Reply With Quote
Old 2 Weeks Ago   #1093
Dajova
Member
 
Join Date: Oct 2007
Posts: 35
Default Re: kgPanels Offical Thread

Quote:
Originally Posted by ImpalerCore View Post
You can try something like this.

<OnLoad>
self:RegisterEvent( "PLAYER_ENTERING_WORLD" )
self:Hide()

<OnEvent>
local playerClass, englishClass = UnitClass("player");
if englishClass == "SHAMAN" then
self:Show()
end

http://www.wowwiki.com/API_UnitClass
Thx, that worked Made a few modification so the texture im using only shows if u play a class that uses stances/special bars But works like a charm!
Dajova is offline   Reply With Quote
Old 2 Weeks Ago   #1094
Dajova
Member
 
Join Date: Oct 2007
Posts: 35
Default Re: kgPanels Offical Thread

Hrm, having another issue... Have a look at these 2 pics:






Any reason why kgPanels acts like this? I haven't changed anything with either my actionbar mod or kgPanels itself...
Dajova is offline   Reply With Quote
Old 2 Weeks Ago   #1095
Seerah
Legendary Member
 
Seerah's Avatar
 
Join Date: May 2006
Posts: 6,102
Default Re: kgPanels Offical Thread

It's not kgPanels doing anything. In one screenshot, you have just hte rep bar showing. In the other, you have both the rep and exp bar up.
__________________
"ACE = Accidental Caps-Lock Error" -Dameek


Seerah is offline   Reply With Quote
Old 2 Weeks Ago   #1096
Dajova
Member
 
Join Date: Oct 2007
Posts: 35
Default Re: kgPanels Offical Thread

Quote:
Originally Posted by Seerah View Post
It's not kgPanels doing anything. In one screenshot, you have just hte rep bar showing. In the other, you have both the rep and exp bar up.
Oh... didn't notice that

Well, here comes the next question then: How to make the panel match the height of my actionbar... Since the actionbar im using only shows both bars when im not lvl 80
Dajova is offline   Reply With Quote
Old 2 Weeks Ago   #1097
ImpalerCore
Member
 
Join Date: Sep 2009
Posts: 21
Default Re: kgPanels Offical Thread

Quote:
Originally Posted by Dajova View Post
Oh... didn't notice that

Well, here comes the next question then: How to make the panel match the height of my actionbar... Since the actionbar im using only shows both bars when im not lvl 80
You can modify the frame height based on the unit level.

<OnLoad>
self:RegisterEvent( "PLAYER_ENTERING_WORLD" )
self:RegisterEvent( "PLAYER_LEVEL_UP" )
self.playerLevel = UnitLevel( "player" )
self.lvl80FrameHeight = 50
self.xpBarHeight = 10

<OnEvent>
if event == "PLAYER_LEVEL_UP" then
if arg1 == "player" then
self.playerLevel = UnitLevel( "player" )
end
end

-- This should be run on login and if a player levels up
if self.playerLevel ~= 80 then
self:SetHeight( self.lvl80FrameHeight + self.xpBarHeight )
else
self:SetHeight( self.lvl80FrameHeight )
end

http://www.wowwiki.com/API_UnitLevel

http://www.wowwiki.com/Events/P
(for PLAYER_LEVEL_UP and PLAYER_ENTERING_WORLD events)

Change the self.lvl80FrameHeight and self.xpBarHeight variables to the appropriate heights and try it out.
ImpalerCore is offline   Reply With Quote
Old 2 Weeks Ago   #1098
Dajova
Member
 
Join Date: Oct 2007
Posts: 35
Default Re: kgPanels Offical Thread

Quote:
Originally Posted by ImpalerCore View Post
You can modify the frame height based on the unit level.

<OnLoad>
self:RegisterEvent( "PLAYER_ENTERING_WORLD" )
self:RegisterEvent( "PLAYER_LEVEL_UP" )
self.playerLevel = UnitLevel( "player" )
self.lvl80FrameHeight = 50
self.xpBarHeight = 10

<OnEvent>
if event == "PLAYER_LEVEL_UP" then
if arg1 == "player" then
self.playerLevel = UnitLevel( "player" )
end
end

-- This should be run on login and if a player levels up
if self.playerLevel ~= 80 then
self:SetHeight( self.lvl80FrameHeight + self.xpBarHeight )
else
self:SetHeight( self.lvl80FrameHeight )
end

http://www.wowwiki.com/API_UnitLevel

http://www.wowwiki.com/Events/P
(for PLAYER_LEVEL_UP and PLAYER_ENTERING_WORLD events)

Change the self.lvl80FrameHeight and self.xpBarHeight variables to the appropriate heights and try it out.
Thx again m8 worked as intended, even tho i had to play around with the code for a bit before i realized how to make it work
Dajova is offline   Reply With Quote
Old 6 Days Ago   #1099
dyzophoria
Newbie
 
Join Date: Apr 2009
Posts: 1
Default Re: kgPanels Offical Thread

im getting the script where you enter a city it shows or hides a panel work, im not sure but I have exausted everything,lol, does it still work?

Quote:
if event == "CHAT_MSG_CHANNEL_NOTICE" then
-- arg1 is either "YOU JOINED", "YOU LEFT" or "THROTTLED"
-- arg7 is channel type (trade is type 2)
-- so
if arg1 == "YOU_JOINED" and arg7 == 2 then
self:Show()
end
if arg1 == "YOU_LEFT" and arg7 == 2 then
self:Hide()
end
end
dyzophoria is offline   Reply With Quote
Old 5 Days Ago   #1100
Legionlars
Newbie
 
Join Date: May 2009
Posts: 1
Default Re: kgPanels Offical Thread

Hey guys , im kinda new to this and i've got a question.

My ui looks like this:



My question is about profile switching, what didn't seem to work.
When i log my alt character and change the color of the red Layouts to Green of the Alt his profile . it automaticly ALSO changes the profile of my Main and made the red images to green.

Ive tried some things already.
1. Made layouts like Actionbarhunter , Actionbardruid (those look the same), and change the color of Actionbardruid to green. but the Hunter also went green.

2. i thought , maybe the problem is because its the same File/Image . so ive made 2 of each layout so i could make 1 red and the other 1 green . but after putting them into WoW . it gave the same problem

Sorry if my spelling is bad, and because of that it isn't understandable . ask me !
Legionlars is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 09:06 AM.