oUF tutorial layout for oUF 1.5
oUF_Simple, a oUF 1.5 tutorial layout.
HOW TO USE In this tutorial I'm showing you step by step how I wrote the following layout. You can follow the steps by checking each Googlecode link under each step. You can even highlight the differences from each step to another by clicking on DIFF at the Googlecode pages. Try to analyse what I'm doing. Copy the code and try to edit it. Reload your UI and see what happens. This way you will gain knowledge on how to write your own oUF layout. FINAL CODE http://code.google.com/p/rothui/sour...unk/oUF_Simple for oUF 1.4.x DOWNLOAD http://www.wowinterface.com/download...oUFSimple.html MAJOR FILES - config FEATURES - how to do outer glow with using SetBackDrop DEVELOPMENT STEPS If you want to follow the development steps check out the links and click on DIFF!. |
Nice work. :)
I wouldn't use another file for libs, though. But that's just me. :cool: |
Makes sense when you are going to have different lua files for raid and party and all the other units.
|
Quote:
...Sweet :D |
Quote:
|
Can you edit oUF layouts while WoW is open and then reloadui to see instant changes?
|
Quote:
|
You can even edit textures in your GFX program while being in the game, assuming that a texture of the same name already existed at the start of WoW.
/reload is probably my most used slash command ever. *UPDATE* Edited the first post. |
Quote:
|
Great layout zork, thanks for your work!
I found it very smart the way you organize and build frames (i.e. separate style function for every frame type). This (and also upgrading to oUF1.4) actually inspired me to rebuild my own oUF layout using your code structure as base. And so far so good, I managed to get like 70% of the features I had in my old layout to the new one. Though I encountered a little problem: I can't figure out how to properly implement PostUpdateHealth -like functions. Basically I need this for stuff like gradient colored health bars, that need to be updated after creation. It'd be great if you could give me some advice concerning this issue. |
how does this addon show you HOW to do things? when i load this addon along with ouf 1.4, i get a tidy little layout. am i supposed to look at the previous versions and compare to see what changed? id love to learn ouf coding but im wondering how this teaches it.
|
Quote:
|
Quote:
|
For some reason.... the buffs for oUF aren't being skinned by the code.. for some weird reason. Idk why, maybe an AddOn is conflicting... I'll have to dig deeper.
edit - does it have something to do with the new oUF release? I posted this in the comments as well to oUF_Simple. |
Quote:
|
Quote:
|
Quote:
|
Quote:
|
@Werr
Your first intention was correct. Follow the development steps in the tutorial step by step and look at what changed at every step. Thus you get an overview what part does what. You can always download each version from googlecode. And see how every step behaves. If you just download the last version its just a big mess of code. Start at step one and try to understand what I'm doing. Change stuff and hit "/reload" ingame. See what it does and try/error it out. @Ferous I answered in the addon comments. Just add some button.overlay code to the "ib.PostCreateIcon" function in lib.lua. You can even do "button.overlay.Hide = function() end" to make the overlay stay forever and not only appear for specific debuffs. You can apply SetTexture(), SetVertexColor() and so on. Whatever you like. |
Any link to some API stuff about health/name/power text :)?
I wanna do something like this |[deficitmp] *playerframe* [curhp]| |[name(on the border)] |[curhp] *targetframe* [curmp]| and on ToT |[name]| But as it is now i can only change on 2 things that changes all of the units tags together? :p line 125-126 in lib.lua f:Tag(name, "[name]") f:Tag(hpval, "[curhp]") Also i have like a big black border below my UF's atm, dunno what it is/how i got it there O.o. http://img534.imageshack.us/img534/8509/trolololl.png dont mind the timer thar :o Btw thx for this guide, i love oUF but im a lua noob so i cant do that much alone, great way to start for me. Any help would be great! (and sry for any bad english) (Have moved the powerbar to the top now also, and removed the portrait's/buffs/debuffs on everything else than Target/Party.) Just hope that it works now D: |
All times are GMT -6. The time now is 04:32 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI