Files
itgmania212121/Themes/rsr/Graphics/MusicWheelItem Roulette NormalPart.lua
T

61 lines
1.5 KiB
Lua
Raw Normal View History

2013-10-05 06:10:21 -07:00
local t = Def.ActorFrame {}
local width = 330
local height = 46
local offset = -16
-- background mask
t[#t+1] = Def.Quad {}
t[#t].InitCommand = function(self)
self:x(offset)
self:setsize(width, height)
self:diffuse({0, 0, 0, 0.6})
end
t[#t+1] = LoadActor(THEME:GetPathG("", "_texture checkerboard"))
t[#t].InitCommand = function(self)
self:rainbow()
self:diffusealpha(0.05)
self:stretchto(-width/2 + offset, -height/2, width/2 + offset, height/2)
self:customtexturerect(0, 0, width/32, height/32)
self:texcoordvelocity(0.5, 0.25)
end
t[#t+1] = LoadActor(THEME:GetPathG("", "_texture checkerboard"))
t[#t].InitCommand = function(self)
self:rainbow()
self:diffusealpha(0.05)
self:stretchto(-width/2 + offset, -height/2, width/2 + offset, height/2)
self:customtexturerect(0, 0, width/32, height/32)
self:texcoordvelocity(0.5, -0.25)
end
t[#t+1] = LoadActor(THEME:GetPathG("", "_texture checkerboard"))
t[#t].InitCommand = function(self)
self:rainbow()
self:diffusealpha(0.05)
self:stretchto(-width/2 + offset, -height/2, width/2 + offset, height/2)
self:customtexturerect(0, 0, width/32, height/32)
self:texcoordvelocity(-0, 0.5)
end
-- bottom border
t[#t+1] = Def.Quad {}
t[#t].InitCommand = function(self)
self:x(offset+10)
self:y(math.ceil(height/2)+1)
self:setsize(width+20, 2)
self:diffuse({0.0, 0.0, 0.0, 0.8})
end
-- left border
t[#t+1] = Def.Quad {}
t[#t].InitCommand = function(self)
self:x(-width/2+offset)
self:y(1)
self:setsize(2, height+2)
self:diffuse({0.0, 0.0, 0.0, 0.8})
end
return t