Also you have seperated the bars Right and left i am not sure how to put that in coz i put both of the codes for right and left together and it doesnt do any change. I am not sure of any other way to seperate them coz i only have one textbox to play around with well as far as i am aware.
I am not sure if it is possible but i want the name on left and the total health on the right if you know what i mean.
Anyway i will try mess around with it tomorrow see what i can get.
Again thanks for the codes appreciate it.
Edit:
Just did a quick test
Right Health Bar works perfect
Right Mana bar works perfect
Bottom blank space works perfect too.
Thanks
Just need the Name and the class working
----------------
oh and Power Bar, Left
return Classification(unit)
this gives me an error when i put it in on its own.
The tag I wrote regarding classes does display it as you wanted, for players, it just leaves out NPCs displaying 'race' alone.
As for other issues, I'll get to it tomorrow, I'm tired from a long day of work (and by work I mean slacking off and helping you guys) and evening class.
Just a heads up, if you use Visor2 make sure to not touch any of the pitbull frames, even by accident.
If they are listed at all in V2's SV's they will stop working, can't even change layout or anything.
I really wish addons like Visor2 would learn about protected frames and refuse to touch them unless you say "Yes I realize this will very likely break the frame, but I know what I'm doing and I want to do it anyway."
I really wish addons like Visor2 would learn about protected frames and refuse to touch them unless you say "Yes I realize this will very likely break the frame, but I know what I'm doing and I want to do it anyway."
I just wish i could find a better option for moving all em odd frames, but sofar i haven't found any that i like and don't loose options over Visor2.
I've searched both the WoWAce forums as well as the general Internet for info on the bar fading/smoothing functionality that was present in earlier versions of Pitbull. I couldn't find this feature in the Pitbull4 settings, and if it's not implemented, is there any word on when it'll be added?
I was redoing my UI and a particular feature I would love for Pitbull is verticle-oriented text. An easier way to change bars to verticle would be nice too.
I was redoing my UI and a particular feature I would love for Pitbull is verticle-oriented text. An easier way to change bars to verticle would be nice too.
This really depends on what you mean by vertical text. If you mean text like this:
Can't be done... WoW doesn't have any way to rotate FontString's like that.
If you mean like this:
You can do it by putting \n or |n 's in your text string. But it's kinda a pain in the butt.
hrmm, okay so I wrote a function that could be used to make any string vertical:
local function vert.string(input)
local working = #input
local output = input
while true do
if working==0 then
break
else
local b=strsub(output,1, working-1)
local e=strsub(output, working)
output=strjoin("|n",b,e)
end
working=working-1
end
output = strsub(output,3)
return output
end
I'm not sure I wrote the function aspect of this correctly, but I do know that the core of the code works.
I tested a very slightly modified version I made the input Name(unit)
I tried changing the break check to working==1, and removing output = strsub(output,3). It created an infinite loop though...I'll try and solve that one.
DO NOT RUN THIS CODE
local function vert.string(input)
local working = #input
local output = input
while true do
if working==1 then
break
else
local b=strsub(output,1, working-1)
local e=strsub(output, working)
output=strjoin("|n",b,e)
end
working=working-1
end
return output
end
I generalized the function to deliminate by other strings ('.' for example).
I also added the option to prepend the string with the deliminator (defaults to FALSE).
local function sep.string(input,delim,prepend=FALSE)
local length = #input
local position = 2
local output = strsub(input,1,1)
while position <= length do
output = output .. delim .. strsub(input, position, position)
position = position + 1
end
if prepend then
output = output .. delim
end
return output
end
I posted a couple of comments on Curse, but deleting to re-post here (fyi just in case these look a bit familiar):
I'm loving it so far!
Question: I'm a Lua newb. I'm currently modifying the Lua:Health text (I like being verbose) to show all the time and to color the missing/current/max numbers. I spent about an hour looking around for a Lua reference that discussed the following ... if you know of one that would cover this feel free to point me to it. Moving PitBull to Lua makes a lot of sense so I don't mind learning more.
Q: Is there any way to modify "Short()" to display "k" abbreviations -always-?
Example: right now anything under 9999 is shown as 9999, I would like 9999 to always show as 9.9K (or preferably 9.99K).
Something small like 999 would become ".999K", 99 would be ".099K", etc.
Just helps my brain to process numbers quickly if the context doesn't shift, and at 80 it doesn't make sense to show things in sub-K context.
Alternatively I might see if Lua has a printf equivalent or do some more detailed function processing, but given how active this function is I would like to keep it simpler.
Request: Any way to -not- show the target-of-target (and target-of-target-of-target) chain if the frame = Self?
Ie, if I target myself it gets a bit recursive (hit F1 :)
But also if I target something, and it targets me ... I should see myself (so I know I have aggro) but I shouldn't see the target's target's target, since that is the same as the target.
Maybe the answer is (pseudocode):
if (target = player) { don't show target }
and
if (anySubTarget = Target) { don't show that subTarget }
Maybe there is LUA code I can use, but as mentioned above I'm just now learning some LUA and wouldn't know where to put it and this one would probably be handy for others, too.
Request: Would be useful to have additional opacity settings on target of target, focus target, etc that would override the main setting. Currently I'm just scaling these down, but I'd rather make target-of-target 25% more transparent, and target-of-target's target 50% more transparent.
Bug: Having a bit of a bug, first night with PitBull (it's replacing X-Perl + MoveAnything for me).
Click on a target to move the target frame
Target acquires a target-og-target and kills it while you are moving the Target frame
Can't unclick the Target frame to set its location
Only way I found to fix this so far is to have to log out to "unclick" the target frame. Even if you "escape" or switch targets, the new target frame will be moving with your mouse. Or at least mine :)
PS. Thanks again for PitBull, and apologies if the above are already covered in the thread, but 100+ pages is daunting. Maybe a separate threaded forum would be useful for a project this size?
I generalized the function to deliminate by other strings ('.' for example).
I also added the option to prepend the string with the deliminator (defaults to FALSE).
local function sep.string(input,delim,prepend=FALSE)
local length = #input
local position = 2
local output = strsub(input,1,1)
while position <= length do
output = output .. delim .. strsub(input, position, position)
position = position + 1
end
if prepend then
output = output .. delim
end
return output
end
sep.string(Name(unit),".",TRUE) ->
H.o.t.a.n.
sep.string(Name(unit),"\n") ->
H
o
t
a
n
Why don't you just do:
string.gsub(input,"(.)","%1\n")
And just to be clear. If you want just to put characters between other characters you can do:
string.gsub(input,"(.)","%1\n",#input - 1)
Just change \n to be whatever the separator you want.
Question: I'm a Lua newb. I'm currently modifying the Lua:Health text (I like being verbose) to show all the time and to color the missing/current/max numbers. I spent about an hour looking around for a Lua reference that discussed the following ... if you know of one that would cover this feel free to point me to it. Moving PitBull to Lua makes a lot of sense so I don't mind learning more.
Q: Is there any way to modify "Short()" to display "k" abbreviations -always-?
Example: right now anything under 9999 is shown as 9999, I would like 9999 to always show as 9.9K (or preferably 9.99K).
Something small like 999 would become ".999K", 99 would be ".099K", etc.
Just helps my brain to process numbers quickly if the context doesn't shift, and at 80 it doesn't make sense to show things in sub-K context.
Alternatively I might see if Lua has a printf equivalent or do some more detailed function processing, but given how active this function is I would like to keep it simpler
There isn't. But there's no reason you can't do it yourself if you want it always done. Shortening stuff up is pretty simple. It gets complicated if you want to shift the size you're shortening to but should be pretty simple to always go to thousands.
The return values are passed into SetFormattedString which is basically just printf for FontString's in the game.
Request: Any way to -not- show the target-of-target (and target-of-target-of-target) chain if the frame = Self?
Ie, if I target myself it gets a bit recursive (hit F1 :)
But also if I target something, and it targets me ... I should see myself (so I know I have aggro) but I shouldn't see the target's target's target, since that is the same as the target.
Maybe the answer is (pseudocode):
if (target = player) { don't show target }
and
if (anySubTarget = Target) { don't show that subTarget }
Maybe there is LUA code I can use, but as mentioned above I'm just now learning some LUA and wouldn't know where to put it and this one would probably be handy for others, too.
Can't be done because unit frames a secure frames and can not be hidden or shown in combat. If you target yourself and then enter combat you'd lose your target, targetoftarget and so on frames. This is obviously not what you want. We could add an option to make the transparent but the frames would still be there and they'd still capture mouse input.
Request:
Would be useful to have additional opacity settings on target of target, focus target, etc that would override the main setting. Currently I'm just scaling these down, but I'd rather make target-of-target 25% more transparent, and target-of-target's target 50% more transparent.
Just duplicate your layout and assign different layouts to them. Don't think we'll be adding fader stuff to the unit config because it's pretty connected to the fader modules on the layout.
Bug: Having a bit of a bug, first night with PitBull (it's replacing X-Perl + MoveAnything for me).
Click on a target to move the target frame
Target acquires a target-og-target and kills it while you are moving the Target frame
Can't unclick the Target frame to set its location
Only way I found to fix this so far is to have to log out to "unclick" the target frame. Even if you "escape" or switch targets, the new target frame will be moving with your mouse. Or at least mine :)
I've searched both the WoWAce forums as well as the general Internet for info on the bar fading/smoothing functionality that was present in earlier versions of Pitbull. I couldn't find this feature in the Pitbull4 settings, and if it's not implemented, is there any word on when it'll be added?
Currently I've got a problem with Buffs and displaying their time (like in my POM-tracker). Everytime a buff/debuff aside from the one I'm tracking has an event(new apply / incoming heal ...) the time in the tag gets refreshed. In a raid environment thats not really a problem because there will be always an event that happens on you, so the timer gets updated. But when soloing and for example when fearing a mob (so that it can't attack you) and then using POM the timer stays at 29 seconds and doesn't refresh until an event is fired, which could last several seconds. So the timer jumps e.g. from 29 to 25 to 19 seconds.
Even with all corresponding events enabled the tag doesnt refresh every second.
edit: Also in a raid environment sometimes the POM doesn't get tracked and I have no idea why this happens. I mean everytime that UNIT_AURA event fires it iterates over all raid member and over their buffs, so it shouldn't be possible that the algorithm misses a POM. Could this be a problem with the event itself or do I have to enable any other events besides UNIT_AURA?
Perhaps this is something obvious, and I'm just not seeing it, in which case, I apologize for the wasted space.
I have my layout set up allright. However, when in party, I get 2 unit frames for each member of the party, instead of just one; this generates two vertical rows of units parallel to each other, and one of them is colliding with other elements of my UI. Am I doing something wrong? I doubt this would be a previously unnoticed bug that sneaked past alpha into this late stage in testing.
I've searched both the WoWAce forums as well as the general Internet for info on the bar fading/smoothing functionality that was present in earlier versions of Pitbull. I couldn't find this feature in the Pitbull4 settings, and if it's not implemented, is there any word on when it'll be added?
You should open an enhancement ticket. Don't think there is one. The BarFader module has definitely not been implemented in PB4.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hello thanks for this, yes class for NPC's is meaningless but its my target window so i do kinda need it to show as i target other stuff.
Also you have seperated the bars Right and left i am not sure how to put that in coz i put both of the codes for right and left together and it doesnt do any change. I am not sure of any other way to seperate them coz i only have one textbox to play around with well as far as i am aware.
I am not sure if it is possible but i want the name on left and the total health on the right if you know what i mean.
Anyway i will try mess around with it tomorrow see what i can get.
Again thanks for the codes appreciate it.
Edit:
Just did a quick test
Right Health Bar works perfect
Right Mana bar works perfect
Bottom blank space works perfect too.
Thanks
Just need the Name and the class working
----------------
oh and Power Bar, Left
this gives me an error when i put it in on its own.
Why not use class color on Name , or HP bar? That way you don't need it as a text.
As for other issues, I'll get to it tomorrow, I'm tired from a long day of work (and by work I mean slacking off and helping you guys) and evening class.
If they are listed at all in V2's SV's they will stop working, can't even change layout or anything.
I really wish addons like Visor2 would learn about protected frames and refuse to touch them unless you say "Yes I realize this will very likely break the frame, but I know what I'm doing and I want to do it anyway."
I just wish i could find a better option for moving all em odd frames, but sofar i haven't found any that i like and don't loose options over Visor2.
This really depends on what you mean by vertical text. If you mean text like this:
Can't be done... WoW doesn't have any way to rotate FontString's like that.
If you mean like this:
You can do it by putting \n or |n 's in your text string. But it's kinda a pain in the butt.
I'm not sure I wrote the function aspect of this correctly, but I do know that the core of the code works.
I tested a very slightly modified version I made the input Name(unit)
I tried changing the break check to working==1, and removing output = strsub(output,3). It created an infinite loop though...I'll try and solve that one.
DO NOT RUN THIS CODE
I generalized the function to deliminate by other strings ('.' for example).
I also added the option to prepend the string with the deliminator (defaults to FALSE).
I'm loving it so far!
Example: right now anything under 9999 is shown as 9999, I would like 9999 to always show as 9.9K (or preferably 9.99K).
Something small like 999 would become ".999K", 99 would be ".099K", etc.
Just helps my brain to process numbers quickly if the context doesn't shift, and at 80 it doesn't make sense to show things in sub-K context.
Alternatively I might see if Lua has a printf equivalent or do some more detailed function processing, but given how active this function is I would like to keep it simpler.
But also if I target something, and it targets me ... I should see myself (so I know I have aggro) but I shouldn't see the target's target's target, since that is the same as the target.
Maybe the answer is (pseudocode):
if (target = player) { don't show target }
and
if (anySubTarget = Target) { don't show that subTarget }
Maybe there is LUA code I can use, but as mentioned above I'm just now learning some LUA and wouldn't know where to put it and this one would probably be handy for others, too.
Only way I found to fix this so far is to have to log out to "unclick" the target frame. Even if you "escape" or switch targets, the new target frame will be moving with your mouse. Or at least mine :)
PS. Thanks again for PitBull, and apologies if the above are already covered in the thread, but 100+ pages is daunting. Maybe a separate threaded forum would be useful for a project this size?
Why don't you just do:
string.gsub(input,"(.)","%1\n")
And just to be clear. If you want just to put characters between other characters you can do:
string.gsub(input,"(.)","%1\n",#input - 1)
Just change \n to be whatever the separator you want.
There isn't. But there's no reason you can't do it yourself if you want it always done. Shortening stuff up is pretty simple. It gets complicated if you want to shift the size you're shortening to but should be pretty simple to always go to thousands.
The return values are passed into SetFormattedString which is basically just printf for FontString's in the game.
Can't be done because unit frames a secure frames and can not be hidden or shown in combat. If you target yourself and then enter combat you'd lose your target, targetoftarget and so on frames. This is obviously not what you want. We could add an option to make the transparent but the frames would still be there and they'd still capture mouse input.
Would be useful to have additional opacity settings on target of target, focus target, etc that would override the main setting. Currently I'm just scaling these down, but I'd rather make target-of-target 25% more transparent, and target-of-target's target 50% more transparent.
Just duplicate your layout and assign different layouts to them. Don't think we'll be adding fader stuff to the unit config because it's pretty connected to the fader modules on the layout.
File a ticket on this. I'll look into it.
Any thoughts on this?
Even with all corresponding events enabled the tag doesnt refresh every second.
edit: Also in a raid environment sometimes the POM doesn't get tracked and I have no idea why this happens. I mean everytime that UNIT_AURA event fires it iterates over all raid member and over their buffs, so it shouldn't be possible that the algorithm misses a POM. Could this be a problem with the event itself or do I have to enable any other events besides UNIT_AURA?
I have my layout set up allright. However, when in party, I get 2 unit frames for each member of the party, instead of just one; this generates two vertical rows of units parallel to each other, and one of them is colliding with other elements of my UI. Am I doing something wrong? I doubt this would be a previously unnoticed bug that sneaked past alpha into this late stage in testing.
Thanks in advance for any pertinent input.
Circiter
You should open an enhancement ticket. Don't think there is one. The BarFader module has definitely not been implemented in PB4.