Files
itgmania212121/Themes/_themekit-piu/Graphics/MusicWheelItem Song NormalPart/default.lua
T
2013-07-03 18:38:57 -04:00

35 lines
1.0 KiB
Lua

return Def.ActorFrame {
Draw.RoundBox(276,212,20,20,color("#323232"));
Def.Banner {
Name="SongBanner";
InitCommand=function(self)
self:scaletoclipped(256, 192);
end;
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;
};
}