| Updated: | 07-24-09 03:29 AM |
| Created: | 07-23-09 11:49 AM |
| Downloads: | 1,253 |
| Favorites: | 45 |
| MD5: |




-- ring layout
-- ____ ____
-- / | \
-- | 4 | 1 |
-- ----+----
-- | 3 | 2 |
-- \____|____/
--
-- direction 1 = right (clockwise), 0 = left (counter-clockwise)
-----------------------
-- CONFIG
-----------------------
local ring_table = {
[1] = {
global = {
unit = "player",
active = 1,
ringname = "rM_PlayerHealth",
size = 256,
anchorframe = UIParent,
anchorpoint = "CENTER",
anchorposx = 0,
anchorposy = 0,
scale = 0.82,
alpha = 1,
framelevel = 1,
gfx_folder = "256_1",
segments_used = 4,
start_segment = 4,
fill_direction = 0,
ringtype = "health",
},
background = {
color = {r = 255/255, g = 255/255, b = 255/255, a = 1},
alpha = 0.7,
framelevel = 1,
blendmode = "blend",
use_texture = 1,
do_rotation = 1,
rotation = {
update_timer = 1/30,
step_size = 0.3,
direction = 0,
},
},
foreground = {
color = {r = 255/255, g = 255/255, b = 255/255, a = 1},
alpha = 1,
blendmode = "blend",
framelevel = 3,
use_texture = 1,
},
segment = {
color = {r = 180/255, g = 10/255, b = 10/255, a = 1},
alpha = 1,
blendmode = "add",
framelevel = 2,
segmentsize = 128,
outer_radius = 110,
inner_radius = 90,
},
},
[2] = {
global = {
unit = "player",
active = 1,
ringname = "rM_PlayerMana",
size = 256,
anchorframe = UIParent,
anchorpoint = "CENTER",
anchorposx = 0,
anchorposy = 0,
scale = 0.65,
alpha = 1,
framelevel = 1,
gfx_folder = "256_1",
segments_used = 4,
start_segment = 1,
fill_direction = 1,
ringtype = "mana",
},
background = {
color = {r = 255/255, g = 255/255, b = 255/255, a = 1},
alpha = 0.7,
framelevel = 1,
blendmode = "blend",
use_texture = 1,
do_rotation = 1,
rotation = {
update_timer = 1/30,
step_size = 0.2,
direction = 1,
},
},
foreground = {
color = {r = 255/255, g = 255/255, b = 255/255, a = 1},
alpha = 1,
blendmode = "blend",
framelevel = 3,
use_texture = 1,
},
segment = {
color = {r = 10/255, g = 100/255, b = 150/255, a = 1},
alpha = 1,
blendmode = "add",
framelevel = 2,
segmentsize = 128,
outer_radius = 110,
inner_radius = 90,
},
},
}
File Name |
Version |
Size |
Author |
Date |
002 |
151kB |
zork |
07-23-09 02:05 PM |
|
001 |
66kB |
zork |
07-23-09 11:49 AM |
![]() |
Comment Options |
|
|
||
|
Correct. Make sure you check http://www.wowinterface.com/download...rRingMod3.html aswell.
__________________
| Simple is beautiful. | Blog | Roth UI | Roth UI FAQ | GoogleCode | DevShots | TheBigOne | Guild | zorker.de
|
||
|
|
|
|
|
|
A Kobold Labourer
Forum posts: 0
File comments: 1
Uploads: 0
|
Is there anyway to move the frame in game? I can't find an interface nor am I experienced in LUA code
|
|
|
|
|
|
|
A Kobold Labourer
Forum posts: 0
File comments: 1
Uploads: 0
|
Been playing around with this for a little while, but I started to wonder one thing- instead of starting at the 90 degree marks (0, 90, 180) is it possible to have a ring start at a different degree (such as at 45)?
If so, where would this be found in the .lua? |
|
|
|
|
||
|
A Murloc Raider
Forum posts: 4
File comments: 65
Uploads: 0
|
Re: Love it but....
Agreed. It is an intriguing piece of work, but w/o a GUI it is for a select minority of players. If only there were someone who had the capacity and desire to make this available to the non-scripters amongst us. I'll have to do without for now. |
|
|
|
|
|
|
|
An Aku'mai Servant
Forum posts: 30
File comments: 63
Uploads: 0
|
Love it but....
Love the looks and customizations
![]() But I don't know lua ![]() I'll be watching for another config option... |
|
|
|
|
|
|
A Kobold Labourer
Forum posts: 0
File comments: 1
Uploads: 0
|
First off, I love this mod. I'll be making my interface just a little bit closer to perfect thanks to it.
So, for example I have this as my UI-in-progress. How would I make the two rings on the right belong to my target? When I looked through the config file, I found the Unit parameter, but when I changed it from player to target, the rings just blanked out. What am I doing wrong? |
|
|
|
|
|
|
A Kobold Labourer
Forum posts: 0
File comments: 2
Uploads: 0
|
Ring inside another ring
Do you have example code to put a smaller ring inside of a larger one like you've done with http://s.wowinterface.com/preview/pvw29492.jpg?
|
|
|
|
|
|
|
A Kobold Labourer
Forum posts: 0
File comments: 3
Uploads: 0
|
I hope that someone will make a gui for this mod, I love the thought of it and really want to use it but I know nothing about .lua coding.
|
|
|
|
|
|||
|
Re: the double slice image
__________________
| Simple is beautiful. | Blog | Roth UI | Roth UI FAQ | GoogleCode | DevShots | TheBigOne | Guild | zorker.de
Last edited by zork : 08-04-09 at 12:24 AM.
|
|||
|
|
|
|
|
|
the double slice image
Why have two separate slice images? wouldn't be better to use just the one and SetTexCoord() it around to the new position?
![]()
__________________
SELECT * FROM users WHERE clue > 0; 0 rows returned. |
|
|
|
|
|
|
|
So gonna be watching the development of this AddOn. I can think of a funky interface to make with it.
![]() |
|
|
|
|
|
||
|
Released oUF_RingThing
http://www.wowinterface.com/download...o.php?id=14213 and oUF_RingThing2 http://www.wowinterface.com/download...ingThing2.html
__________________
| Simple is beautiful. | Blog | Roth UI | Roth UI FAQ | GoogleCode | DevShots | TheBigOne | Guild | zorker.de
Last edited by zork : 07-27-09 at 02:15 PM.
|
||
|
|
|
|
|||
I am currently working on my first ring-layout for oUF. http://code.google.com/p/rothui/sour...oUF_RingThing/ Haven't tested it yet currently offline-coding . Only had to adjust one thing. I needed to add the complete config_table to the object aswell since in oUF I have no reference to the config of the specific ring in the PostUpdateHealth/Mana functions (for example) later but I have access to self. Thus the ring_config variable basically becomes obsolete since it is saved in the object aswell. Code:
local function setup_ring(id)
local ring_config = ring_table[id]
local ring_object = cre_ring_holder(ring_config)
ring_object.config = ring_config
ring_object.background = cre_ring_background(ring_object.config, ring_object)
ring_object.segments = cre_ring_segments(ring_object.config, ring_object)
ring_object.foreground = cre_ring_foreground(ring_object.config, ring_object)
return ring_object
end
http://www.wowinterface.com/forums/s...ad.php?t=25735 ![]()
__________________
| Simple is beautiful. | Blog | Roth UI | Roth UI FAQ | GoogleCode | DevShots | TheBigOne | Guild | zorker.de
Last edited by zork : 07-27-09 at 08:42 AM.
|
|||
|
|
![]() |