Code:
-- 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,
},
},
}