Thread Tools Display Modes
07-26-10, 05:19 AM   #1
adrika
A Defias Bandit
Join Date: Jul 2010
Posts: 2
Script kgpanels

Sorry for my english but i don't speak verry well I'm speak french.

I use Kgpanels and I'm looking for a script for see a texture when Omen show.

I hope have a answer to my question.

Thank you verry much.
  Reply With Quote
07-26-10, 05:29 AM   #2
voodoodad
Large, Friendly Letters!
 
voodoodad's Avatar
Join Date: Oct 2008
Posts: 1,632
You don't need a script.

1. type "/fstack" (without quotes)

2. Mousover the omen panel

3. The tooltip will give you the name of the panel

4. type "/fstack" again to turn of the framestack feature

5. Anchor your kgpanel to whatever the name of the omen panel is. (you may have to futz with the anchor points, I usually set mine to center)

6. Profit! Your kgpanel should show when the omen panel shows
__________________

~ no need to make the message completely obnoxious - Cairenn
  Reply With Quote
07-27-10, 10:58 AM   #3
adrika
A Defias Bandit
Join Date: Jul 2010
Posts: 2
I have tried but it isn't i will want.

Is this possible to make a script when i in combat AND in party and raid members?

I've a script for the 2 separately:

On load
self:RegisterEvent("PLAYER_ENTERING_WORLD")
self:RegisterEvent("PARTY_MEMBERS_CHANGED")
self:RegisterEvent("RAID_ROSTER_UPDATE")
On event
if GetNumRaidMembers() > 0 and GetNumRaidMembers() <= 25 then
self:Show() else self:Hide() end


On load:
self:RegisterEvent("PLAYER_REGEN_DISABLED")
self:RegisterEvent("PLAYER_REGEN_ENABLED")
On Event
if event == "PLAYER_REGEN_ENABLED" then
self:Hide()
elseif event == "PLAYER_REGEN_DISABLED" then
self:Show()
else
end

Thank you
  Reply With Quote
07-28-10, 08:01 PM   #4
jeffy162
A Pyroguard Emberseer
 
jeffy162's Avatar
AddOn Author - Click to view addons
Join Date: May 2009
Posts: 2,364
If your texture (panel?) is anchored to the Omen window, then any time that Omen shows the panel will also show.

IF, however, you want a panel to show up somewhere on your screen that is not where Omen is but just shows at the same time Omen shows, then you have to figure out what triggers Omen to show at the appointed times and write your script accordingly. If this is what you want, you might be able to do it by anchoring to the Omen window and then adjusting the offsets for the panel. I really don't think you can offset the panel very far, but I've never gone more than enough to even it back up the way I wanted things to look after the anchoring process.

Good luck.

Last edited by jeffy162 : 07-28-10 at 08:11 PM.
  Reply With Quote
07-28-10, 10:55 PM   #5
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
Thisn't isn't true. You can set both parent and anchor separately. You can even set both parent and anchor to the Omen frame and still place the kgpanel wherever you wish on your screen.


P.S.- Parenting sets the parent to control scale/visibility. Anchoring sets the anchor for placement.
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote
07-29-10, 09:31 AM   #6
jeffy162
A Pyroguard Emberseer
 
jeffy162's Avatar
AddOn Author - Click to view addons
Join Date: May 2009
Posts: 2,364
Originally Posted by Seerah View Post
Thisn't isn't true. You can set both parent and anchor separately. You can even set both parent and anchor to the Omen frame and still place the kgpanel wherever you wish on your screen.


P.S.- Parenting sets the parent to control scale/visibility. Anchoring sets the anchor for placement.
Ah-HA! So that's how that works! I read, and do not retain (unfortunately). I read all the information on the kgPanels "Wiki", but not a lot made sense to me, so I just blundered around until I figured out how to get it to do what I wanted. I never realized you could parent a panel to something and then put it anywhere you wanted.

Learn something new every day. Now, if I can only remember this....

I wholeheartedly apologize for the misinformation.

Last edited by jeffy162 : 07-29-10 at 09:34 AM.
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » Script kgpanels


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off