Files
itgmania212121/Themes/dimension-tripper/Graphics/MusicWheelItem SectionExpanded NormalPart.lua
T
Colby Klein 02ec3d871b Add dimension-tripper theme
(Sourced from shakesoda/stepmania.)
2013-10-07 12:48:42 -07:00

28 lines
680 B
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 top
t[#t+1] = Def.Quad {}
t[#t].InitCommand = function(self)
self:x(offset)
self:vertalign(bottom)
self:setsize(width, height/2)
self:diffuse({0.1, 0.1, 0.1, 0.6})
end
-- background bottom
t[#t+1] = Def.Quad {}
t[#t].InitCommand = function(self)
self:x(offset)
self:vertalign(top)
self:setsize(width, height/2)
self:diffusebottomedge({0.2, 0.2, 0.2, 0.6})
self:diffusetopedge({0.1, 0.1, 0.1, 0.6})
end
return t