Minion Beta! - Help us test our new AddOn updater. Get it now!
Download
(15 Kb)
Download
Updated: 04-24-13 11:43 AM
Pictures
File Info
Compatibility:
Thunder Isle (5.2)
Updated:04-24-13 11:43 AM
Created:04-24-13 11:43 AM
Downloads:599
Favorites:2
MD5:
oUF Donut
Version: 50200.01
by: zork [More]

Important: This is the first alpha release. It has all the code in it to create all the health, power and castrings including update functions and templating. More will come later.
Intro
This a circular unit layout for oUF based on the idea discussed in this thread.

The layout supports ring templates. You can setup different ring templates and use them on specific units.

The ring is split into 4 segments. Thus you can do quarter, half, three-quarter or full rings.



Alot of other ring settings can be changed in the template file. This includes filling direction and radius.

More screenshots...

If you got any questions feel free to ask me.
Currently implemented units
- player
- target
- targettarget
- pet
SVN
http://code.google.com/p/rothui/sour...w5.0/oUF_Donut
Optional Files (0)


Post A Reply Comment Options
Unread 03-29-14, 03:16 AM  
saxitoxin
A Fallenroot Satyr
 
saxitoxin's Avatar
AddOn Author - Click to view AddOns

Forum posts: 20
File comments: 61
Uploads: 1
Re: Re: How did you...

Originally Posted by skarie
Originally Posted by saxitoxin
I'm sorry to bother you Zork, but I can't figure out how you got the function in rTestRing and oUF to work together.
I'm trying to make a unitframe in oUF where the castbar and the manabar is like your ToT frame only sideways. If you could take your time and explain scrollframe/child and oUF I would be very happy.

Thanks
I as well want to know how to use rTestring in my oUF lay out. I guess we need another example of rTestring using quarter circle and spark together with scroll frames and blend mode. .
I kinda figured it out, if you go to my forum post, you can see how I did it
saxitoxin is offline Report comment to moderator  
Reply With Quote
Unread 03-28-14, 09:24 PM  
skarie
An Aku'mai Servant
AddOn Author - Click to view AddOns

Forum posts: 37
File comments: 77
Uploads: 1
Re: How did you...

Originally Posted by saxitoxin
I'm sorry to bother you Zork, but I can't figure out how you got the function in rTestRing and oUF to work together.
I'm trying to make a unitframe in oUF where the castbar and the manabar is like your ToT frame only sideways. If you could take your time and explain scrollframe/child and oUF I would be very happy.

Thanks
I as well want to know how to use rTestring in my oUF lay out. I guess we need another example of rTestring using quarter circle and spark together with scroll frames and blend mode. .
skarie is offline Report comment to moderator  
Reply With Quote
Unread 02-16-14, 02:33 PM  
saxitoxin
A Fallenroot Satyr
 
saxitoxin's Avatar
AddOn Author - Click to view AddOns

Forum posts: 20
File comments: 61
Uploads: 1
How did you...

I'm sorry to bother you Zork, but I can't figure out how you got the function in rTestRing and oUF to work together.
I'm trying to make a unitframe in oUF where the castbar and the manabar is like your ToT frame only sideways. If you could take your time and explain scrollframe/child and oUF I would be very happy.

Thanks
saxitoxin is offline Report comment to moderator  
Reply With Quote
Unread 10-01-13, 08:06 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1365
File comments: 3275
Uploads: 86
For later...
Lua Code:
  1. local ringFrame.width, ringFrame.height = ringFrame.width:GetSize()
  2. local ringTextureFile = "Interface\\AddOns\\MyAddOn\\media\\ringTexture"
  3. local texLeft, texRight, texTop, texBottom = 0, 1, 0, 1
  4. local vFlip = true
  5. local hFlip = true
  6. local angle = 40
  7. local sqrt_2 = sqrt(2)
  8. local mrad = math.rad
  9.  
  10. local ringTexture = ringFrame:CreateTexture(nil,"BACKGROUND",nil,-8)
  11.  
  12. ringTexture:SetPoint("CENTER")
  13. ringTexture:SetSize(sqrt_2*ringFrame.width,sqrt_2*ringFrame.height)
  14. ringTexture:SetTexture(ringTextureFile)
  15. ringTexture:SetVertexColor(1,0,0)
  16.  
  17. if vFlip then
  18.   texTop, texBottom = 1, 0
  19. end
  20. if hFlip then
  21.   texLeft, texRight = 1, 0
  22. end
  23. ringTexture:SetTexCoord(texLeft, texRight, texTop, texBottom)
  24.  
  25. ringTexture:SetRotation(mrad(angle))
__________________
| Simple is beautiful.
| Roth UI | Roth UI FAQ | GoogleCode | Zork | TDMOG

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
zork is offline Report comment to moderator  
Reply With Quote
Unread 04-25-13, 06:44 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1365
File comments: 3275
Uploads: 86
This could be a possible ring template:


It combines all possible bars in one layout.

This is just one suggestion.

Health and power could have been done in two half-rings aswell.

Thus it could look like:


Basically any combination can be done.

You can swap rings, you can only make a ring use 1, 2, 3 or all 4 segments. You have control of the filling direction and so on.
__________________
| Simple is beautiful.
| Roth UI | Roth UI FAQ | GoogleCode | Zork | TDMOG

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
Last edited by zork : 04-25-13 at 07:01 AM.
zork is offline Report comment to moderator  
Reply With Quote
Unread 04-24-13, 04:44 PM  
Kendian
A Molten Giant
 
Kendian's Avatar
AddOn Author - Click to view AddOns

Forum posts: 614
File comments: 168
Uploads: 13
No more ring THEORY =) Great job, as always, Zork~
__________________
Kendian is offline Report comment to moderator  
Reply With Quote
Unread 04-24-13, 04:00 PM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1365
File comments: 3275
Uploads: 86
Originally Posted by 10leej
hmm only thing I can think of now is how to go about implementing alternate resorces like combo points/sould shards and what have you...
Those are standard oUF elements, so it is not a technical question. But when thinking about it why not do them as a ring aswell? 5 points or a ring divided into 5 sub-parts, no real difference.

The optical diversity can be easily achieved by overlaying that ring with a radial grid texture (or textures that you rotate properly)
__________________
| Simple is beautiful.
| Roth UI | Roth UI FAQ | GoogleCode | Zork | TDMOG

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
Last edited by zork : 04-24-13 at 04:09 PM.
zork is offline Report comment to moderator  
Reply With Quote
Unread 04-24-13, 03:23 PM  
Nibelheim
local roygbi-
 
Nibelheim's Avatar
Featured Addon Author

Forum posts: 1540
File comments: 2315
Uploads: 50
Hmmmm... donuts /drool
Nibelheim is offline Report comment to moderator  
Reply With Quote
Unread 04-24-13, 03:10 PM  
10leej
A Scalebane Royal Guard
 
10leej's Avatar
AddOn Author - Click to view AddOns

Forum posts: 440
File comments: 336
Uploads: 20
hmm only thing I can think of now is how to go about implementing alternate resorces like combo points/sould shards and what have you...
10leej is offline Report comment to moderator  
Reply With Quote
Unread 04-24-13, 11:45 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1365
File comments: 3275
Uploads: 86
Welcome.
__________________
| Simple is beautiful.
| Roth UI | Roth UI FAQ | GoogleCode | Zork | TDMOG

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
zork is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: