Files
itgmania212121/Themes/_themekit-piu/Graphics/MusicWheelItem Song NormalPart/default.lua
T
2011-04-29 14:58:59 -04:00

33 lines
1019 B
Lua

return Def.ActorFrame {
Draw.RoundBox(276,212,20,20,color("#323232"));
Def.Banner {
Name="SongBanner";
InitCommand=cmd(scaletoclipped,256,192);
SetMessageCommand=function(self,params)
local path = params.Song:GetBannerPath()
if not path then path = THEME:GetPathG("Common","fallback banner") end
local bHighResTextures = PREFSMAN:GetPreference("HighResolutionTextures")
--banner loading stuff...
--is on
if bHighResTextures == 'HighResolutionTextures_ForceOn' or GetUserPrefB("goodbanners") then
self:LoadFromSong(params.Song);
--is off
elseif bHighResTextures == 'HighResolutionTextures_ForceOff' then
self:LoadFromCachedBanner(path);
--is auto
elseif bHighResTextures == 'HighResolutionTextures_Auto' then
local iWidth = DISPLAY:GetDisplayHeight()
--display is over ninethousand eh... 480
if iWidth > 480 then
self:LoadFromSong(params.Song);
--display is 480 or less
else
self:LoadFromCachedBanner(path);
end
end
end;
};
}