oUF Lanerra

A simple unit frame addon based off of the oUF core framework. The design and purpose of these unit frames is to allow as much configuration as possible via an attached configuration lua to alter certain settings of the unit frames, while remaining as light on memory usage as possible.

It also has a toggle-able 'healer mode' that alters the location of the raid and party frames dependent on whether the "Healer" option has been toggled to true in the config for party or raid.

Please Note
Some knowledge of Lua is required for customization of these frames beyond the configuration file. To alter options in the configuration file, simple open it in your favorite text editor and change options from false to true, or vice versa. Also of note, for the displaying of health, more than one health option cannot be functional at a time so please choose only one.

Quick Note
Please do not hesitate to leave feedback. I don't really know what you guys need or want from my unit frames unless you suggest or critique. I'm open to suggestions and would definitely like to know if something is broken somewhere. Your assistance is greatly appreciated and improves the experience for everyone.

While not a change, I just wanted to let everyone know I am likely going to be rewriting a good deal of this addon to make it a bit more efficient. I realize it's quite clunky and a bit wasteful resource-wise and I plan to alleviate that in the near future.

------------- 1.5.92 ----------
- Version bump and TOC update to 6.1
- Everything else appears to be working alright. Let me know, though, if it doesn't

------------- 1.5.4 -----------
- Version bump to 1.5.4
- Fix a couple of taint issues
- Code cleanup
- Added party buffs/debuffs option (still needs tuning)
- Fixed non-healer layout for raid
- Fixed predictive healing display for raid frames
- Remove Dismiss Pet option from pet frame, since all it does is throw errors and taint. Sadly, this can't be avoided due to an issue on Blizzard's side of the code. You must dismiss your pet, if a hunter, via the spellbook, or a button in your action bars.

- Fixed how tags were handled
- Now compatible with Mists of Pandaria
- TOC Bump

------------- 1.3.1 -----------

- Fixed deprecated functions no longer used in 5.0.4
- Removed UI option dimming for Unit Frames until I have time to work out the problem
- Version 1.3
- Other than this, it should function per normal. Let me know of any hiccups

------------- 1.2.3 -----------

- Fixed display of heal prediction on raid/group frames
- Added a HealerOverride option in the config to force display of heal prediction, regardless of role, for those who want it

-------------1.19-------------
- Finally completely corrected display of 'Offline', 'Dead', 'Ghost' text on all unit frames
- Initial code put in place for interrupt coloring
- Color changes to Status Bar when units are offline, dead, or ghost
- Added option to display current health and percent at the same time on target frame
- Made it so power text is always shown (if enabled in Config)
- Adjusted border padding on all frames, looks much cleaner now
- Removed Pet power text
- Added option to show or hide player buffs/debuffs (disabled by default)
- Fixed buff/debuff overlap issue
- Added option to change backdrop color for unit frames
- Repositioned ToT name to allow health text to show clearly
- Adjust health position on other frames just slightly to line up better.
- Prioritized the displaying of debuff border color over aggro color. No longer will you not know if the tank has a debuff or not
- Fixed Druid Power not working properly
- Added functionality that detects if you're a healing class or not, and if so show one more buff and one less debuff to help keep track of HOTs and the like. Debuff border coloring works regardless
- Fixed raid icons not displaying on target frame
- Fixed a long standing problem with an improperly terminated 'if' statement in the oUF_RuneBar support
- Added code for killing the default Blizzard Group/Raid frames
- Bumping to 1.19

-------------1.18-------------
- Fixed quirk in display of shortnames on TargetTarget frame
- Redid the menu creation method for right-clicking in order to make it a bit more stable and intuitive.
- Clarified Healer option in config file
- Remove Blizzard options rendered useless by unit frames
- Attempt to fix status (Dead, Offline, etc.) not displaying as it should
- Restored custom UpdatePower function in anticipation of changing how power value is displayed
- Removed superfluous code in PowerText display code, optimized it for better functionality
- Consolidated Name code to make it a bit more optimized, and make ready for future power text change
- Added option to show PowerText for pet
- Target power text will now display properly, but I have yet to work out a good place for it.
- Changed position of Power Text for Target Frame
- Added option for Vertical Healthbar toggle for Focus Frame
- Added functionality that hides pet's name with either or both Health/Power displayed on that frame
- Version bump to 1.18

Pretty sure I got everything, but please let me know if there are any bugs that I've missed. I'll try to get around to adding the requested features as soon as I have enough time to sit down and really crunch it out.

Originally posted by adaroundtown took a look at the LUA file in an attempt to find the bits you metioned. i'm really nooby, as mentioned previously when it comes to such things. i'm thinking text would be better than bars, in the end and would like to try copying the text display for power that the player unit frame has. if you have a free second, any chance you can help out with which line numbers and code i should be looking for in terms of copying/adding power text to party/raid frames? cheers!

NOTE: Go to the end of this post for status update on the unit frames.

If oUF_Lanerra.lua line 579 - line 590 is where the power text is defined for player and target frames. That can be used as a basis to create the power text for party/raid, if you like. Just use something like those lines and insert them into the StylishGroup(line 1001) and/or StylishRaid(line 1262) immediately following where self.Health.Value is defined.

Then, it's a matter of positioning and sizing the text how you like. If you want to have the power text for party/raid frames behave a certain way, you'll need to write your own PostUpdatePower function for the PostUpdate of the Power.Value portion of the code.

If you choose not to have a custom function for that (and just want default oUF behavior for the power value), make sure you don't copy the self.Power.PostUpdate = UpdatePower line into StylishGroup and StylishRaid.

That should do the trick for you. If it doesn't...then essentially explaining further would mean writing the actual code for it into the unit frames, themselves, thusly making this a moot point.

Also, for those of you who are wondering, I have made an update to my unit frames that is compatible with 4.2 and am just waiting until 4.2 drops to push it to WoWInterface/Curse. Sorry for the wait and all, but I don't want to push an update only to have a PTR build break it and then I have to wind up releasing multiple versions to correct it as the PTR progresses.

Originally posted by Lanerra Thanks, I'm glad you like the unit frames

As for where to begin adding the mana bars yourself, you can use the Stylish function as a start. Just locate the section that defines the power bar for other frames (self.Power) and copy it to the Party/Raid frames (StylishGroup or StylishRaid) as you like. Just remember that when adding the power bar you have to adjust the size (or orientation in the case of the raid frames, possibly) to accommodate the room the power bar will take up.

I'll let you know in advance, though, that it can be a bit of a pain to make everything proportional and lined up right, just for starters. If you use the code that's already there for the other frames though, you should have a pretty good comparison for a starting point to base the code off of for the party/raid frames as you like.

Hope this helps.

took a look at the LUA file in an attempt to find the bits you metioned. i'm really nooby, as mentioned previously when it comes to such things. i'm thinking text would be better than bars, in the end and would like to try copying the text display for power that the player unit frame has. if you have a free second, any chance you can help out with which line numbers and code i should be looking for in terms of copying/adding power text to party/raid frames? cheers!

Originally posted by Lanerra Thanks, I'm glad you like the unit frames

As for where to begin adding the mana bars yourself, you can use the Stylish function as a start. Just locate the section that defines the power bar for other frames (self.Power) and copy it to the Party/Raid frames (StylishGroup or StylishRaid) as you like. Just remember that when adding the power bar you have to adjust the size (or orientation in the case of the raid frames, possibly) to accommodate the room the power bar will take up.

I'll let you know in advance, though, that it can be a bit of a pain to make everything proportional and lined up right, just for starters. If you use the code that's already there for the other frames though, you should have a pretty good comparison for a starting point to base the code off of for the party/raid frames as you like.

Originally posted by adaroundtown Thanks for your reply. Fair enough if it's something you're not a fan of. I'd be willing to try adding in some code myself (though i am incredibly n00by when it comes to such things). i wouldn't want to screw up the work you've done, though, since it is by far the most beautiful i've seen in terms of unit frames (the colours you achieved are really amazing. so vivid, yet not so much so that they're hard on the eyes). if you could point me in the direction of some code that could be added in, that would be greatly appreciated. the best thing i can think of would be simply some text on frames which would indicate percentages (of health and mana - having just one would seem unfinished i think). all that said, i'll truck along without it if you haven't the time to help out and will continue to hunt forums and the like for info. since finding your unit frames, i've been playing with the rest of my ui to match their theme. happy with the results, i have to say. will post a screenshot here once it's all done if you're interested in seeing it. keep up the great work!

Thanks, I'm glad you like the unit frames

As for where to begin adding the mana bars yourself, you can use the Stylish function as a start. Just locate the section that defines the power bar for other frames (self.Power) and copy it to the Party/Raid frames (StylishGroup or StylishRaid) as you like. Just remember that when adding the power bar you have to adjust the size (or orientation in the case of the raid frames, possibly) to accommodate the room the power bar will take up.

I'll let you know in advance, though, that it can be a bit of a pain to make everything proportional and lined up right, just for starters. If you use the code that's already there for the other frames though, you should have a pretty good comparison for a starting point to base the code off of for the party/raid frames as you like.

[quote]Originally posted by Lanerra
[b]I'm not a big fan of mana bars on party/raid frames. I can understand the party frames, perhaps, but I just can't see a mana bar on the raid frames. I don't really like squishing things together too much, because then they just look too 'busy'.

I believe there's a placeholder option in the Config for a party mana bar, but I just haven't done the code for it yet, since I've been rather busy, and haven't heard any bug or feature requests lately so I thought things were just working smoothly.

Thanks for your reply. Fair enough if it's something you're not a fan of. I'd be willing to try adding in some code myself (though i am incredibly n00by when it comes to such things). i wouldn't want to screw up the work you've done, though, since it is by far the most beautiful i've seen in terms of unit frames (the colours you achieved are really amazing. so vivid, yet not so much so that they're hard on the eyes). if you could point me in the direction of some code that could be added in, that would be greatly appreciated. the best thing i can think of would be simply some text on frames which would indicate percentages (of health and mana - having just one would seem unfinished i think). all that said, i'll truck along without it if you haven't the time to help out and will continue to hunt forums and the like for info. since finding your unit frames, i've been playing with the rest of my ui to match their theme. happy with the results, i have to say. will post a screenshot here once it's all done if you're interested in seeing it. keep up the great work!

Originally posted by adaroundtown Hey, everything looks amazing. Was reading through the comments and you'd mentioned you were working on a complete UI. would love to see it, and hopes it's coming along well. just a request, if it's not too much work: ever thought of adding a power/mana bar to party/raid frames? as a druid, sometimes guildies call on me to help them out with an innervate or two. having a better idea of their mana status, this would be very helpful

I'm not a big fan of mana bars on party/raid frames. I can understand the party frames, perhaps, but I just can't see a mana bar on the raid frames. I don't really like squishing things together too much, because then they just look too 'busy'.

I believe there's a placeholder option in the Config for a party mana bar, but I just haven't done the code for it yet, since I've been rather busy, and haven't heard any bug or feature requests lately so I thought things were just working smoothly.

I had planned on writing in aura indicators for debuffs on the raid frames, but as I said I've been rather busy lately. Sadly, my available time for WoW has been greatly diminished since I began looking for new work.

My apologies to those who've been waiting for features/updates/bug fixes. I will do what I can, when I can. If there are any problems please let me know, and I'll try to push out a bugfix update when I get a chance.

Hey, everything looks amazing. Was reading through the comments and you'd mentioned you were working on a complete UI. would love to see it, and hopes it's coming along well. just a request, if it's not too much work: ever thought of adding a power/mana bar to party/raid frames? as a druid, sometimes guildies call on me to help them out with an innervate or two. having a better idea of their mana status, this would be very helpful

I'd like to know how it produces the final number to decide the variable 'd'.

Why "size / 2 + 0.5"? xD

Thanks!

well, it's just order of operations, really.

Code:

local d = offset or (floor(size / 2 + 0.5) - 2)

What this means, firstly, is that it will try to use the offset you pass it in the AddBorder function. If there isn't one present, ie. you pass AddBorder(framename, 12) with no offset value, then it'll use an offset based on the size of the border you've chosen.

What that bit of math does mentioned above, is ensure a nice clean proportion in relation to the border size and the offset as a sort of failsafe. That way it doesn't throw errors and screw up the whole thing if you (or I, I suppose in this case) forget to put an offset into the function call.

Support AddOn Development!

You have just downloaded by the author . If you like this AddOn why not consider supporting the author? This author has set up a donation account. Donations ensure that authors can continue to develop useful tools for everyone.