The script looks ok. Do you have any other scripts which use the PLAYER_TARGET_CHANGED event? If you do, that's the problem. An addon (eePanels2 in this case) can only listen to an event once. If possible, combine your scripts.
Can the addon only listen to 1 event period or just once to each event with the same name?
MoonWitch, could you maybe make some small tutorial on what you're saying in your post above? Maybe just some screenies with a simple black square on a transparent plane and what step to do first, what next, etc.
I understand, but apperently it isn't possible to use that bar as a parent.
That's why the workaround with setting the healthbar as the parent is thought out by some clever people.
You just need to add an offset to the position of the panel to get it behind the pet button bar.
Looking very nice!
Not sure how it looks when no pet and no target of target are there though... (the panels don't line up at the top any more)
One hint: You might want to change "PetExists" in your code to something like "ToTExist", for future reference (so you still know what you mean later) and it might even conflict with the PetExists in your other panel (not sure about that last one, maybe it's use is limited to the panel it's defined in; which is probably the case since it's declared a "local"... :-P )
Anyone got any idea why this does not work I got it off the Wiki
Want to use it to show my EEPANEL only in party/raid but not arena, etc
-- Hide the panel so it's not shown until we want it to
-- Change our panel's visibility when in/out of a raid
function eePanels2:RaidPanelVisibility(self, event, ...)
-- If we're in a raid
if GetNumPartyMembers() > 0 and not ((select(2, IsInInstance()) == "pvp" or select(2, IsInInstance()) == "arena")
or GetNumRaidMembers() > 0 and not ((select(2, IsInInstance()) == "pvp" or select(2, IsInInstance()) == "arena")
-- Show the panel this script is attached to
-- If we're not in a raid, hide the panel this script is attached to
-- Ace2 event listeners; can't do this in more than one script
Error I get:
Date: 2007-10-07 19:12:06
Error occured in: Global
Message: [string "-- Hide the panel so it's not shown until we want it to..."] line 10:
')' expected (to close '(' at line 7) near 'then'
Looks like on of your functions / lines is not closed correctly...
But I also think you have some more code before the piece you posted (because the error is talking about lines 7 and 10 and the lines it's talking about in the code you posted are not even near lines 7 and 10), am I right?
Level only affects the ordering of items on the same strata. Strata is the 'plane' which the item should be located in.
Okay, thanks for explaining!
Quote from Evil Elvis »
The only code you would need to CML is code to allow you to move CML via the mouse.
What are you saying here?
Quote from Lanerra »
Using the GetName method, it would appear it has no frame name, as it's returning a nil value when I run the script while hovering my mouse over the CML text. So, I can't just parent something to it, sadly. Also, I still can't seem to update the text for the time in an eePanel. It's come to my attention now that it's not even updating. It reports the time as of the initial execution of the LUA within the eePanel, but after that, it just sits there and does change.
That's because the code you put into the eepanel doesn't have an update process running like the original CML code does.
I think the key to getting this to work is to rewrite the CML code to code eepanels "understands"...