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