[2007/09/04 19:26:13-705-x1]: <string>:"-- Create a new ace2 addon for hooking...":11: AceHook-2.1: Bad argument #2 to `HookScript' (table expected, got nil)
Ace2\AceLibrary\AceLibrary.lua:133: in function <Interface\AddOns\Ace2\AceLibrary\AceLibrary.lua:86>
(tail call): ?:
AceHook-2.1-40869 (Ace2):437: in function `HookScript'
<string>:"-- Create a new ace2 addon for hooking...":11: in main chunk
<in C code>: in function `RunScript'
eePanels2-2.0\core.lua:2004: in function `ChangeScript'
eePanels2-2.0\core.lua:517: in function `CreatePanel'
eePanels2-2.0\core.lua:376: in function `InitPanels'
eePanels2-2.0\core.lua:350: in function <Interface\AddOns\eePanels2\core.lua:349>
<in C code>: in function `pcall'
AceAddon-2.0-46764 (Ace2):24: in function <Interface\AddOns\Ace2\AceAddon-2.0\AceAddon-2.0.lua:23>
AceAddon-2.0-46764 (Ace2):999: in function `ManualEnable'
AceAddon-2.0-46764 (Ace2):927: in function <Interface\AddOns\Ace2\AceAddon-2.0\AceAddon-2.0.lua:920>
<in C code>: ?
AceEvent-2.0-44693 (Ace2):262: in function `TriggerEvent'
AceEvent-2.0-44693 (Ace2):955: in function <Interface\AddOns\Ace2\AceEvent-2.0\AceEvent-2.0.lua:948>
---
wat i do rong?
You didn't see if anyone else has had this problem recently.
The explanition is a bit complex for me unfortunately.
I started getting this error when I tried to Parent a panel to GridLayoutFrame and then parent 2 other panels to that initial panel [the typical 3 panels to create border look] The panel, and subsequent script 'seem' to work. Not sure if they will resize as more and more people get added to the raid. I guess I'll find out tonight. Maybe I just went about making a grid panel the wrong way?
Kicked up eePanels2 today and setup the panels, looks amazing now, I must say, the simple addition of the waterfall GUI, and the ability to right click on each frame makes setting up the panels so simple.
What i am missing is possibly if somebody could help me out with a simple script to hide/show a panel depending on whether i have a target selected or not. i use pitbull, and I have a panel that sits behind the UF, looks a bit daft with no target selected though.
Kicked up eePanels2 today and setup the panels, looks amazing now, I must say, the simple addition of the waterfall GUI, and the ability to right click on each frame makes setting up the panels so simple.
What i am missing is possibly if somebody could help me out with a simple script to hide/show a panel depending on whether i have a target selected or not. i use pitbull, and I have a panel that sits behind the UF, looks a bit daft with no target selected though.
Regards.
Well, I have no idea what I'm doing, but try this out?
function eePanels2:TargetFrameVisibility(self, event, ...)
if(UnitExists("target")) = 1 then
eePanel1:Show()
else
eePanel1:Hide()
end
end
eePanels2:RegisterEvent("PLAYER_ENTERING_WORLD", eePanels2.TargetFrameVisibility)
eePanels2:RegisterEvent("PLAYER_TARGET_CHANGED", eePanels2.TargetFrameVisibility)
Would there be any way to use the scripting function in EEpanels to generate text? I would really like to do away with the stance bar in my UI and replace it with a simple text using GetsShapeshiftFormInfo. Will the script function support this?
Would there be any way to use the scripting function in EEpanels to generate text? I would really like to do away with the stance bar in my UI and replace it with a simple text using GetsShapeshiftFormInfo. Will the script function support this?
If you made little images with the name of the form it would work, then just use a variant of the raid form back a page to make a different one show up according to what stance you had on.
Kicked up eePanels2 today and setup the panels, looks amazing now, I must say, the simple addition of the waterfall GUI, and the ability to right click on each frame makes setting up the panels so simple.
What i am missing is possibly if somebody could help me out with a simple script to hide/show a panel depending on whether i have a target selected or not. i use pitbull, and I have a panel that sits behind the UF, looks a bit daft with no target selected though.
Regards.
Well, I have no idea what I'm doing, but try this out?
function eePanels2:TargetFrameVisibility(self, event, ...)
if(UnitExists("target")) = 1 then
eePanel1:Show()
else
eePanel1:Hide()
end
end
eePanels2:RegisterEvent("PLAYER_ENTERING_WORLD", eePanels2.TargetFrameVisibility)
eePanels2:RegisterEvent("PLAYER_TARGET_CHANGED", eePanels2.TargetFrameVisibility)
Hope it works ^^, be sure to tell me if it does.
A script is not needed. It just needs to be parented to the target frame.
Kicked up eePanels2 today and setup the panels, looks amazing now, I must say, the simple addition of the waterfall GUI, and the ability to right click on each frame makes setting up the panels so simple.
What i am missing is possibly if somebody could help me out with a simple script to hide/show a panel depending on whether i have a target selected or not. i use pitbull, and I have a panel that sits behind the UF, looks a bit daft with no target selected though.
Regards.
Well, I have no idea what I'm doing, but try this out?
function eePanels2:TargetFrameVisibility(self, event, ...)
if(UnitExists("target")) = 1 then
eePanel1:Show()
else
eePanel1:Hide()
end
end
eePanels2:RegisterEvent("PLAYER_ENTERING_WORLD", eePanels2.TargetFrameVisibility)
eePanels2:RegisterEvent("PLAYER_TARGET_CHANGED", eePanels2.TargetFrameVisibility)
Hope it works ^^, be sure to tell me if it does.
A script is not needed. It just needs to be parented to the target frame.
Heh. That works too ^^ (would my method work? I honestly have no idea what I'm doing and I'd like to know if it would...
BTW, can I please get some .tga exporting help from you Seerah? I posted a few pages back, and I would really like to skin my interface, but it isn't working right.
Oh, right, Overshee - I really like those graphics. :) Anyway, I just have PS Elements instead of Photoshop, and it's not as easy (for me at least) to set up alpha channels, etc. Try downloading GIMP (it's free) and opening your textures in that program. Right-click on your image in GIMP, go to Transparency, then Add Alpha channel. Just as long as it has the proper dimensions, an alpha channel, and is a TGA or BLP file, it should work. As for the white edges, here's a tutorial by Bouvi that has a tip in there about how to fix it in Photoshop: http://www.box.net/shared/xu51y48fip
Oh, right, Overshee - I really like those graphics. :) Anyway, I just have PS Elements instead of Photoshop, and it's not as easy (for me at least) to set up alpha channels, etc. Try downloading GIMP (it's free) and opening your textures in that program. Right-click on your image in GIMP, go to Transparency, then Add Alpha channel. Just as long as it has the proper dimensions, an alpha channel, and is a TGA or BLP file, it should work. As for the white edges, here's a tutorial by Bouvi that has a tip in there about how to fix it in Photoshop: http://www.box.net/shared/xu51y48fip
Heh, that means a lot coming from you, your interface isn't exactly unknown :).
It's just a gradient and some brushes I found on DA, really :-P.
Also, is there the odd chance you know how to make a bar texture? Or know of a tutorial for one?
It's not difficult. I even took a texture off of wowtextures (colors and everything) cropped it, and used it as a status bar/cast bar texture before. It's in the AuraBlue textures pack on WoWI. It's best to use something long and narrow so that the texture doesn't get skewed too much when placed as a status bar. You can use a pre-existing texture (cropped if needed) or make your own using grayscale in photoshop. White will show the statusbar color, black will hide it, gray will shade it accordingly. Just like a normal alpha channel does. Just like textures for eePanels, anything loaded into WoW needs the proper dimensions, alpha-channel, and saved as a TGA or BLP.
What i am missing is possibly if somebody could help me out with a simple script to hide/show a panel depending on whether i have a target selected or not.
The simplest/easiest solution is to set the Parent to the pitbull target frame. This [modified and untested] script should also work:
function eePanels2:TargetFrameVisibility(self, event, ...)
if (UnitExists("target")) then
THIS:Show()
else
THIS:Hide()
end
end
eePanels2:RegisterEvent("PLAYER_ENTERING_WORLD", eePanels2.TargetFrameVisibility)
eePanels2:RegisterEvent("PLAYER_TARGET_CHANGED", eePanels2.TargetFrameVisibility)
Quote from Killariel »
Would there be any way to use the scripting function in EEpanels to generate text? I would really like to do away with the stance bar in my UI and replace it with a simple text using GetsShapeshiftFormInfo. Will the script function support this?
Yes, but you'll need to know what you're doing. WoW frames have the ability to display text, and scripts can do just about anything possible via the WoW API. A simple script to display text (which I haven't tested, but looks ok) would be this:
local THIS_text = THIS:CreateFontString(nil, "OVERLAY ") -- set strata of text;
THIS_text:SetFontObject(GameFontHighlightSmall) -- Set the font type
THIS_text:SetPoint("CENTER", THIS, "CENTER", 0, 0) -- center the text
THIS_text:SetText("big badda boom") -- text to display
The simplest/easiest solution is to set the Parent to the pitbull target frame. This [modified and untested] script should also work:
function eePanels2:TargetFrameVisibility(self, event, ...)
if (UnitExists("target")) then
THIS:Show()
else
THIS:Hide()
end
end
eePanels2:RegisterEvent("PLAYER_ENTERING_WORLD", eePanels2.TargetFrameVisibility)
eePanels2:RegisterEvent("PLAYER_TARGET_CHANGED", eePanels2.TargetFrameVisibility)
Heh! I was really close :-P, good for my second LUA script ever.
Ta guys, Im going to try the script now, any of you know offhand what the name of the pitbull target frame is?
EDIT: The parenting didn't seem to work, so I put the script onto one of the panels (groups of 3 for each item) and added the other panels to be shown or hidden as well. Working perfectly.
I like the new version, especially the possibility to add scripts from within the UI (I did this with eePanels1 by creating a separate addon for resizing frames).
However, I'd like to see the following features:
1. An easy way to address panels by their name (ie. the name that the user sets in the "Name" field, not the name of the Lua variable). Currently I'm using a hand written Lua function that maps all eePanels names to references on startup/reload. I think this should be a feature of eePanels itself.
2. The possibility to clone panels, ie. create a prototype and "copy" it completely. This would make many things a lot easier, and one wouldn't have to mess around with Global Settings etc. too much when it's actually not necessary.
3. An option, per panel, to resize all children of that panel if the panel itself is resized. I know that this can be done by attaching a script, but since it is a very commonly needed function one should keep things as simple as possible for the user by providing a generic option for this.
Thanks for updating this, Elvis, it's great to have this for us UI addicts ;-).
No, the parenting works. With your cursor over the pitbull target frame, type this into chat:
/print GetMouseFocus():GetName()
Put whatever it spits back out at you as the parent for your frame. And, yes, capitalization *does* matter.
The above is correct information, but I'd like to add that it doesn't work so well with all frames created by PitBull. For me it works for the player/target/pet/targettarget frames, but not for the party/raid/MT frames. Their names seem to be generated dynamically, and since PitBull keeps the entire variable namespace private, I haven't found an easy way yet to access this dynamically during run time. Probably one would have to write a plugin for PitBull that does expose the variables, but since it's a very sophisticated and complex addon I doubt that anybody will write it ;).
Just in case somebody is messing around with panels and Pitbull frames.
Right. Because if you do that with your cursor over the party frames, you get a Cluster name and not a Frame name. That is why there is the script in the second post of this thread to show a frame when grouped.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
You didn't see if anyone else has had this problem recently.
3 posts above yours.
I started getting this error when I tried to Parent a panel to GridLayoutFrame and then parent 2 other panels to that initial panel [the typical 3 panels to create border look] The panel, and subsequent script 'seem' to work. Not sure if they will resize as more and more people get added to the raid. I guess I'll find out tonight. Maybe I just went about making a grid panel the wrong way?
What i am missing is possibly if somebody could help me out with a simple script to hide/show a panel depending on whether i have a target selected or not. i use pitbull, and I have a panel that sits behind the UF, looks a bit daft with no target selected though.
Regards.
Well, I have no idea what I'm doing, but try this out?
Hope it works ^^, be sure to tell me if it does.
If you made little images with the name of the form it would work, then just use a variant of the raid form back a page to make a different one show up according to what stance you had on.
A script is not needed. It just needs to be parented to the target frame.
Heh. That works too ^^ (would my method work? I honestly have no idea what I'm doing and I'd like to know if it would...
BTW, can I please get some .tga exporting help from you Seerah? I posted a few pages back, and I would really like to skin my interface, but it isn't working right.
Any help would be amazing!
Heh, that means a lot coming from you, your interface isn't exactly unknown :).
It's just a gradient and some brushes I found on DA, really :-P.
Also, is there the odd chance you know how to make a bar texture? Or know of a tutorial for one?
The simplest/easiest solution is to set the Parent to the pitbull target frame. This [modified and untested] script should also work:
Yes, but you'll need to know what you're doing. WoW frames have the ability to display text, and scripts can do just about anything possible via the WoW API. A simple script to display text (which I haven't tested, but looks ok) would be this:
You'll have to figure out the rest on your own
Heh! I was really close :-P, good for my second LUA script ever.
Is there a list of Events anywhere?
EDIT: The parenting didn't seem to work, so I put the script onto one of the panels (groups of 3 for each item) and added the other panels to be shown or hidden as well. Working perfectly.
Thanks a mil.
Put whatever it spits back out at you as the parent for your frame. And, yes, capitalization *does* matter.
@Overshee: there's a list of all events on wowwiki
However, I'd like to see the following features:
1. An easy way to address panels by their name (ie. the name that the user sets in the "Name" field, not the name of the Lua variable). Currently I'm using a hand written Lua function that maps all eePanels names to references on startup/reload. I think this should be a feature of eePanels itself.
2. The possibility to clone panels, ie. create a prototype and "copy" it completely. This would make many things a lot easier, and one wouldn't have to mess around with Global Settings etc. too much when it's actually not necessary.
3. An option, per panel, to resize all children of that panel if the panel itself is resized. I know that this can be done by attaching a script, but since it is a very commonly needed function one should keep things as simple as possible for the user by providing a generic option for this.
Thanks for updating this, Elvis, it's great to have this for us UI addicts ;-).
The above is correct information, but I'd like to add that it doesn't work so well with all frames created by PitBull. For me it works for the player/target/pet/targettarget frames, but not for the party/raid/MT frames. Their names seem to be generated dynamically, and since PitBull keeps the entire variable namespace private, I haven't found an easy way yet to access this dynamically during run time. Probably one would have to write a plugin for PitBull that does expose the variables, but since it's a very sophisticated and complex addon I doubt that anybody will write it ;).
Just in case somebody is messing around with panels and Pitbull frames.
wowwiki.com