Download
(92Kb)
Download
Updated: 10-27-09 03:01 PM
Pictures
File Info
Updated:10-27-09 03:01 PM
Created:07-27-09 11:38 AM
Downloads:3,517
Favorites:11
MD5:

oUF RingThing

Version: 004
by: zork [More]


News
I rewrote the mod. Its patch 3.3 compatible.

What is it for?
It is basically a tech-demo for developers that show how radial filling rings/circles can be connected to the oUF framework.

The latest version is a complete rewrite. But as you can see the structure is already there and working.

What left is someone addicted enough to create some crazy background art to bring this to life.

The most important part is the "default_config" function. It contains all the basic values with that you are going to set up the frames. It is possible to rewrite parts of the default config in the given style functions (I do this for the scale for example)

Self and the ringcontainer are independent now. You can freely move self, the background art, the foreground art and the segment-container.

Think of this like an onion, which has many layers so does this layout work. self on the bottom, then the background art with the portraits, then the ring-segements and on top some highlights with a foreground texture.

Currently I'm trying to find a good solution on how to load different ring setups, but I think it would be just to much of a hassle. So one layout for any kind of ring setup (half-rings, full ring etc.)

What the mod can do?
It can display health and mana as a ring. The ring can be either a quarter, half or a full-ring. You can select the fill direction, the starting segment and how many segments should be used.

Each ring has its own container and you can move the ring freely by adjusting the setpoints and the scale.

Never ever touch the size though. Its bound to the basic texture that you are using.

Move frames
The new layout has no preset setpoints. Hold down SHIFT+ALT and start dragging the frame around.

GIT
https://github.com/zorker/rothui/tre.../oUF_RingThing

004
- integrated the new unitframe design

003
- the health and the mana ring now have independent containers and thus can be moved freely
- do NEVER change the size of the ring, always work with setpoints and scale. Do not touch the size or you will find yourself in trouble.

002
- complete rewrite

001b
- one texture had the false strata

001a
- fixed the last display bug, finally found it. happened when a segment is at 0.

001
- initial release
Optional Files (0)


Post A Reply Comment Options
Unread 07-28-09, 06:13 AM  
lodewijk
A Deviate Faerie Dragon

Forum posts: 13
File comments: 120
Uploads: 0
gratz zork on this ouf implemantation!

i understand ringthing is meant to be a starting point for devellopers, but it would have made such a leap forward in ouf designed frames if a ingame setup of only the most basicaspect would have been added: moving the frames around! all other stuff can easily be altered in the files itself, but moving frames around on the screen it what ouf and 99% of its derivates is sorely missing.

other than that i repeat, ringthing is awesome!
Report comment to moderator  
Reply With Quote
Unread 07-28-09, 08:36 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1740
File comments: 3728
Uploads: 77
Originally posted by lodewijk
move
Err...no. http://www.wowinterface.com/forums/s...ad.php?t=21586
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
Report comment to moderator  
Reply With Quote
Unread 07-28-09, 03:09 PM  
Dawn
A Molten Giant
 
Dawn's Avatar
AddOn Author - Click to view AddOns

Forum posts: 918
File comments: 959
Uploads: 22
Glad you took the time to make use out of this kind of animation! Simple and beautiful.
Report comment to moderator  
Reply With Quote
Unread 10-26-09, 01:54 PM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1740
File comments: 3728
Uploads: 77
New version is online.
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
Report comment to moderator  
Reply With Quote
Unread 10-26-09, 03:55 PM  
Saintvallen
An Aku'mai Servant

Forum posts: 33
File comments: 141
Uploads: 0
Love your potential final look picture.
It's just ouf together with squidframe or?
Because it could end up being used together with some bad ass KGpanels!
Especially with that "rough" look for the texture, i simply, love how it looks.
It can be class colored like rDiabloOrbs?
Last edited by Saintvallen : 10-26-09 at 03:56 PM.
Report comment to moderator  
Reply With Quote
Unread 10-26-09, 05:15 PM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1740
File comments: 3728
Uploads: 77
So I decided to give it a try.





Hopefully I can get it working .

TGA files are done now. Pretty happy with the outcome. Hmm...I really think this could work but we will see.



Notice for me:
272 / 512 = 0.53125 | 72 / 128 = 0.5625 | (0,0.53125,0,0.5625)
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
Last edited by zork : 10-27-09 at 04:32 AM.
Report comment to moderator  
Reply With Quote
Unread 10-27-09, 04:18 AM  
Dawn
A Molten Giant
 
Dawn's Avatar
AddOn Author - Click to view AddOns

Forum posts: 918
File comments: 959
Uploads: 22
Not being able to play with the size also means the rings will always have the same thickness, right? Not? Because scaling means it gets larger (radius), but only a little thicker. For example, a thicker health and thinner mana bar with almost the same radius (like in your pictures below) is not really possible, is it? Just curious.
Report comment to moderator  
Reply With Quote
Unread 10-27-09, 04:39 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1740
File comments: 3728
Uploads: 77
Dawn its mathematically not possible to change the thickness dynamically because the ring_width of your segment texture will not change if you change the size in the code. (Because we are going to calculate SetTexCoords that will be applied to that texture)

If you set up a new segment texture its no problem to change the size. As I wrote: the size is bound to the texture used.

So if you make yourself alot of different segment files you can have alot of possible sizes (ring_width).

See this in the default config:
Code:
    hs.size = 256
    hs.texture = "Interface\\AddOns\\oUF_RingThing3\\media\\ring1_segment"
    ...
    hs.segmentsize = 128
    hs.outer_radius = 110
    hs.inner_radius = 90
This is going to match your ring texture.
256 = what a full ring would need in space (original texture)
segement = 128 (this must be ring_size/2 obiously)
now whats pretty cool is that your ring can be anywhere inside that segemt texture. You can define start and end of the ring radius for that segment.
If your ring is veeeery thick the values could look like:
Code:
    hs.size = 256
    hs.texture = "Interface\\AddOns\\oUF_RingThing3\\media\\ring1_segment"
    ...
    hs.segmentsize = 128
    hs.outer_radius = 110
    hs.inner_radius = 10
But this will only work if you have a segment texture with a ring segment that will match those values. Otherwise it will look Goofy.

Btw inner_radius must be >= 1.

To make this even more clear check those two segment textures:



The first segment has the values from above. The new one will have

Code:
    hs.size = 256
    hs.texture = "Interface\\AddOns\\oUF_RingThing3\\media\\ring2_segment"
    ...
    hs.segmentsize = 128
    hs.outer_radius = 109
    hs.inner_radius = 70
Btw...My picture below uses the same ring texture for both rings. The mana ring is just scaled and thus thinner on its own.
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
Last edited by zork : 10-27-09 at 04:57 AM.
Report comment to moderator  
Reply With Quote
Unread 10-27-09, 05:04 AM  
Dawn
A Molten Giant
 
Dawn's Avatar
AddOn Author - Click to view AddOns

Forum posts: 918
File comments: 959
Uploads: 22
Ah, I think I got it. "Texture ring thickness" defines the actual thickness, while inner and outer radius are more or less there to calculate how the ring fills?

Outer and inner ring radius are this... ?



E: Let's say I have a real thick ring, do I need to adjust one of the slicer.tga's ? or ring1_segment.tga or will that be no issue?

E2: Err, your edit beat my picture comment.
Last edited by Dawn : 10-27-09 at 05:07 AM.
Report comment to moderator  
Reply With Quote
Unread 10-27-09, 05:08 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1740
File comments: 3728
Uploads: 77
Yes. But only the top-right segment is needed.

More to read:
http://elitistjerks.com/blogs/zork/362-ring.html

The slicer is ring independent. Read the ejerks blog entry and try to understand what the slicer does. Its just needed for the gap between the two squares.
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
Last edited by zork : 10-27-09 at 05:14 AM.
Report comment to moderator  
Reply With Quote
Unread 10-27-09, 05:13 AM  
Dawn
A Molten Giant
 
Dawn's Avatar
AddOn Author - Click to view AddOns

Forum posts: 918
File comments: 959
Uploads: 22
Originally posted by zork
Yes. But only the top-right segment is needed.

More to read:
http://elitistjerks.com/blogs/zork/362-ring.html
And the numbers are in pixel? Like 110 outer radius means the outer ring radius is at 110 pixel (while 128 is the texture border)? Is there an option in Photoshop to see "coordiantes of pixels"?

Thanks for pointing things out! I think I'll give it a shot, too.
Report comment to moderator  
Reply With Quote
Unread 10-27-09, 05:15 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1740
File comments: 3728
Uploads: 77
Yes. The segment is 128px in size. The outer ring radius is 110px, the inner ring radius is 90px.
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
Report comment to moderator  
Reply With Quote
Unread 10-27-09, 05:54 AM  
Saintvallen
An Aku'mai Servant

Forum posts: 33
File comments: 141
Uploads: 0
What do you use to make the textures you use?
Gimp, PhotoShop or something.
And at what image sizes do you work at?
Because your circles have such a fucking nice border but when i try and create a ring in PS CS4 i get some very pixilated edges.
Report comment to moderator  
Reply With Quote
Unread 10-27-09, 06:56 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1740
File comments: 3728
Uploads: 77
Photoshop 6.0 for Windows (not kidding, it has every I need and can be bought for no money at ebay)
I work at the size I want the texture to be at. 512x512, 512x256 etc. anything that is 16, 32, 64, 128, 256, 512, 1024, 2048 works.
Make sure you have "smooth edges" activated in your selection tool.
To get the smooth outer shadow I edit the alpha layer and add a smooth edge to it. Do all the Phong.com tutorials they are outstanding. http://phong.com/tutorials/ and check http://revision3.com/pixelperfect/ Bert Monroy can help you out (Nearly 150 video tutorials)
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
Last edited by zork : 10-27-09 at 07:04 AM.
Report comment to moderator  
Reply With Quote
Unread 10-27-09, 07:49 AM  
Saintvallen
An Aku'mai Servant

Forum posts: 33
File comments: 141
Uploads: 0
Nice, i only use cs3 because the school pays for a creative suite package for all their students.

Totally forgot about revision3.com , i used to visit that website back when i was still in what we in Denmark call 10th grade(aka 10th year of school after kindergarden).

Thank you so much.
I'm currently working on a texture that would fit on a KGpanel of a shield for my Warrior and Shaman.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: