WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   oUF (Otravi Unit Frames) (https://www.wowinterface.com/forums/forumdisplay.php?f=87)
-   -   Help with oUF (https://www.wowinterface.com/forums/showthread.php?t=52968)

Nonus 12-11-15 06:41 AM

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?

p3lim 12-11-15 07:48 AM

Quote:

Originally Posted by Nonus (Post 312237)
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).

Nonus 12-11-15 08:06 AM

Thanks a lot p3lim!


All times are GMT -6. The time now is 12:40 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI