Intro
This mod lets you set up textures that can be rotated.
You can set up a infinite number of textures and anchor them to frames of your liking. Everything can be set in the Lua and only in the Lua config.
LUA-Config
Code:
-----------------------
-- CONFIG AREA START --
-----------------------
frames_to_rotate = {
[1] = {
texture = "ring", --texturename under media folder
width = 190,
height = 190,
scale = 0.82,
anchorframe = Minimap,
framelevel = "3", --defines the framelevel to overlay or underlay other stuff
color_red = 0/255,
color_green = 0/255,
color_blue = 0/255,
alpha = 0.4,
duration = 60, --how long should the rotation need to finish 360°
direction = 1, --0 = counter-clockwise, 1 = clockwise
blendmode = "BLEND", --ADD or BLEND
setpoint = "CENTER",
setpointx = 0,
setpointy = 0,
},
[2] = {
texture = "zahnrad", --texturename under media folder
width = 215,
height = 215,
scale = 0.82,
anchorframe = Minimap,
framelevel = "0",
color_red = 48/255,
color_green = 44/255,
color_blue = 35/255,
alpha = 1,
duration = 60, --how long should the rotation need to finish 360°
direction = 1, --0 = counter-clockwise, 1 = clockwise
blendmode = "BLEND", --ADD or BLEND
setpoint = "CENTER",
setpointx = 0,
setpointy = 0,
},
[3] = {
texture = "zahnrad", --texturename under media folder
width = 300,
height = 300,
scale = 0.82,
anchorframe = UIParent,
framelevel = "0",
color_red = 255/255,
color_green = 0/255,
color_blue = 0/255,
alpha = 1,
duration = 60, --how long should the rotation need to finish 360°
direction = 1, --0 = counter-clockwise, 1 = clockwise
blendmode = "BLEND", --ADD or BLEND
setpoint = "CENTER",
setpointx = 0,
setpointy = 0,
},
}
In the latest version you uploaded you left a 3rd frame to be rotated which was using the zahnrad image, right in the middle of the screen!!! This drove me absolutely batcrap insane trying to figure out which one was doing it. Please fix
Is there a way you can have more than 2 rotations? I tried copying the code, ie. 1, 2 then 3 then 4 then 5 but it doesnt seem to want to have more than 2
Originally posted by Trogalith i got one question, lol whats the two circles the red and blue on the actionbar. lol i think that looks neat (if its what im thinking it is; the health and mana meter) it would def be something i would like to have
i got one question, lol whats the two circles the red and blue on the actionbar. lol i think that looks neat (if its what im thinking it is; the health and mana meter) it would def be something i would like to have
I really like the way this looks. I have a question though. On your screenshot "Example with color=white and blendmode = 1" what exactly would I have to make the LUA look like to get mine the same?
Originally posted by pHishr Say I want to parent on of the frames to TargetFrame, how would I do that? I'm not very good at lua but I know how to edit stuff. )
Originally posted by OttoDeFe I was wondering if there's a way to set the texture as a path - there's several in game textures I would use this for to back my Buffed! cluster I have set up.
Sure. Use your path instead of the texturename and edit the part where I am calling the texture from inside the "rFrameRotater/media"-folder.
I was wondering if there's a way to set the texture as a path - there's several in game textures I would use this for to back my Buffed! cluster I have set up.
__________________
"They say
the pen is mightier than any saber -
any sword -
but if there's a war
I just don't know if a Bic will save ya..."