Thread Tools Display Modes
12-11-15, 06:41 AM   #1
Nonus
A Deviate Faerie Dragon
 
Nonus's Avatar
Join Date: Aug 2011
Posts: 10
Help with oUF

Hello, im using the lastest oUF(1.6.8) and i need help with:
  • Replacing the standard role icons (self.LFDRole)?
  • Changing the aura duration font/size
  • How do i figure out the above mentioned question on my own? Are there any addons that can help me in the future?
Last but not least, any suggestions on minimalistic actionbar, tooltip addons that i can check out?
  Reply With Quote
12-11-15, 07:48 AM   #2
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2007
Posts: 1,710
Originally Posted by Nonus View Post
Hello, im using the lastest oUF(1.6.8) and i need help with:
  • Replacing the standard role icons (self.LFDRole)?
  • Changing the aura duration font/size
  • How do i figure out the above mentioned question on my own? Are there any addons that can help me in the future?
LFDRole defaults to a texture at Interface\LFGFrame\UI-LFG-ICON-PORTRAITROLES, you can replace the texture the element uses with your own (.LFDIcon:SetTexture()) as oUF only uses the texture if the layout hasn't provided one.
Source: https://github.com/haste/oUF/blob/1....fdrole.lua#L78

Aura duration fontstrings is not provided by oUF, you'll have to provide that yourself.
Here is how I did it, as an example: https://github.com/p3lim-wow/oUF_P3l....lua#L103-L108
Also take a look at lines 75-85, 111-119 and 363-364 in the same file.

As for figuring out these things yourself, look at how the elements in oUF is built up, try to understand how they work when they are being created/updated internally, as well as the in-line documentation of the elements.
Another good resource is this forum and other layouts, but make sure you can use the code when copying (licenses).
  Reply With Quote
12-11-15, 08:06 AM   #3
Nonus
A Deviate Faerie Dragon
 
Nonus's Avatar
Join Date: Aug 2011
Posts: 10
Thanks a lot p3lim!
  Reply With Quote

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » Help with oUF

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off