I plan to eventually create my own unitframes using oUF.
Can anyone recommend any resources or good "basic" examples which could be good to learn from.
zork's oUF simple is a good overview:
:: http://www.wowinterface.com/download...mple.html#info
and oUF author haste has a couple of layouts that are very well written. i tend to to use oUF lily as a base when i write something new:
:: https://github.com/haste/oUF_Lily
:: https://github.com/haste/oUF_Classic
id personally also recommend oUF p3lim just because he has a long history of writing very accessible, easily understandable and strong code. it was one of the earliest oUF layouts and covers a lot of options without turning it all into a jumbled mess.
:: http://www.wowinterface.com/download...-oUFP3lim.html
oUF itself also has documentation at the top of all files in the "elements" directory that detail options and begin to explain how some parts are handled. lines 1-85 here for example:
:: https://github.com/haste/oUF/blob/ma...nts/health.lua
the github page for it also has a wiki
:: https://github.com/haste/oUF/wiki
& the "official" oUF support sub-forum on wow interface
:: http://www.wowinterface.com/forums/f...splay.php?f=87
Last edited by modernist; 2016-06-29 at 10:50 PM.
I'm considering switching from writing custom Elv to oUF and hoping it will be a little more friendly to take apart. However, it looks like oUF hasn't been updated in a while. Is it compatible with Legion's API changes, artifact xp, nameplates, personal bar, etc?
Using computers to make demons kill dragons: Warlock beta spell WeakAuras here, @OOMM_UI, OOMM@kt-us
Yes, because p3lim is updating it for legion .. using it at the moment. You may have to switch the branch.
https://github.com/p3lim-wow/oUF
For Artifact XP, there is some plugin
http://www.wowinterface.com/download...factPower.html
And nameplates (also personal bar, since this is just a modified nameplate) ... third party addon (nothing to do with oUF) or else. There are a ton coming, like always. Rothar already has one for example:
https://github.com/zorker/rothui/tre...7.0/rNamePlate
Also, modernist (obble) has one on his own on his github
https://github.com/obble/lovelyui/tr...ter/nameplates
— oh, honey.
As far as custom unit frames go, you will want to become familiar with the workings of the various Secure*.lua scripts to get an idea of what addons are allowed to do during combat.
In general, SecureFrameTemplate and a host of pre-defined framescript constructs are provided for setting up custom control frames. Since calling things like Hide/Show directly would taint secure execution, you are limited to the predefined attribute infrastructure. SecureStateDriver.lua provides your sole means of utilizing custom code, but they have to be defined while out of combat and are limited to the function scope of an `OnAttributeChanged' script and are still subject to secure execution restrictions, making the invocation of foreign methods tricky.
Last edited by Radipon; 2016-07-01 at 04:35 PM.