i have a trouble with target names, they run on target hp http://img139.imageshack.us/my.php?image=lolnv5.jpg
how it to correct? P.S. sorry for my english (: |
Caellian, you really need to stop using that edit button :p. Especially when you add ten pages of text (and that 3 hours after it's been posted).
1) "Interface\AddOns\oUF_Caellian\oUF_Caellian.lua:56: attempt to index local 'parent' (a nil value)" tells you that you should take a look at line 56 in your layout code. 2) :GetText() returns a string containing the text of the fontstring, it won't do some magic updating for you. What you could do is to remove .Name, and use the castbar .Text to display name. You can do this with a post hook in the stop functions. Remember that you will have to do all the name updating yourself, and that is has to be aware of casts/channels. vaddn, use locals and not globals when you create those frames. The initial code should work fine with that. zhz, it's because your fontstrings have no width limitations. You can set these with :SetWidth and/or :SetPoint. zynix, read up on :SetPoint, and look for it in the layout. Usually placed at the bottom. |
Quote:
|
Quote:
On another note, is it possible to add the AFK and DND flags with oUF? I've tried looking, but haven't managed to find an answer yet. The only reason I ask is that I have a bad habit of setting flags and forgetting about them if there is nothing to remind me on my character frame. |
Quote:
|
Quote:
Code:
oUF.Tags["[AFK]"] = function(u) return UnitIsAFK(u) and "AFK" or "" and then use those tags as you would normally. |
Quote:
(dont be fooled by the name of the event, it works for any unit) |
One question, i would like to have my experience bar to show but only when i mouseover it.
I've tried something like the code below but obviously it doesn't work, i know it's wrong but that's all i could come up with using wowwiki and unfortunately i couldn't find any better information on how to do this. Code:
local OnEnter = function(self) |
Quote:
Code:
self.Experience:SetScript('OnEnter', function(self) self:SetAlpha(1) end) |
Thanks a lot i will give it a try, it's a statusbar btw. (here's the main part of it)
Code:
if(IsAddOnLoaded('oUF_Experience')) then |
Quote:
|
Quote:
|
You'll need to set the alpha to 0 when it's loaded as well, or else it will be shown until moused over.
soo: Code:
self.Experience:SetScript('OnEnter', function(self) self:SetAlpha(1) end) |
...I am not editing, i am not editing, i am not editing...
Nvm the above, actually i didn't even need to use that, i just edited my current OnEnter/OnLeave, thanks for the hints. Code:
self:SetScript("OnEnter", function(self) Quote:
|
Quote:
So you'll need to force it to hide when shown i.e. Code:
local function Hide(f) |
Hmm this doesn't work at all
Code:
local function Hide(f) Code:
Interface\AddOns\oUF_Caellian\oUF_Caellian.lua:280: syntax error near 'f' |
Quote:
Code:
local function Hide(f) |
Quote:
I forgot the "function" bit, amoung other things :P. Post edited so it'll work now. |
Yes yes now it works, it's hidden on login, but it won't show up anymore :D
|
This is what i've got, hidden on login, but doesn't show up on mouseover.
Beginning of the style (where the OnEnter/OnLeave were) Code:
local function Hide(f) Code:
Hide(self.Experience) Code:
f:SetScript("OnShow", function() f.Hide end) Code:
Interface\AddOns\oUF_Caellian\oUF_Caellian.lua:282: '=' expected near 'end' |
All times are GMT -6. The time now is 12:13 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI