Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- return Def.ActorFrame {
- SongChosenMessageCommand=cmd();
- TwoPartConfirmCanceledMessageCommand=cmd();
- SongUnchosenMessageCommand=cmd();
- LoadActor("bannermask") .. {
- InitCommand=cmd(scaletoclipped,452,452;clearzbuffer,true;zwrite,true;blend,"BlendMode_NoEffect");
- };
- Def.Banner {
- Name="SongBanner";
- InitCommand=cmd(scaletoclipped,450,450;ztest,true);
- 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;
- };
- LoadActor("Title-Mask") .. {
- InitCommand=cmd(scaletoclipped,455,455);
- };
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement