Files
itgmania212121/Themes/dimension-tripper/Graphics/MusicWheelItem Roulette NormalPart.lua
T
AJ Kelly ff12dc332f small changes to roulette item
(Sourced from shakesoda/stepmania.)
2013-10-07 15:05:34 -05:00

51 lines
1.4 KiB
Lua

local t = Def.ActorFrame {}
local Metric = function(c,k) return tonumber(THEME:GetMetric(c, k)) end
local width = Theme.MusicWheelItemWidth()
local height = Metric("MusicWheel", "ItemHeight")
local offset = Metric("MusicWheel", "ItemOffset")
-- 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
-- blu blockers
t[#t+1] = Def.Quad {}
t[#t].InitCommand = function(self)
self:setsize(width, height * 0.8)
self:diffuse({0, 0, 0, 0.65})
end
return t