<@Jousway> I should just add my cdtitle resizer to sm5 default theme and piss
the entire comunity off ;) <~freem> yes <~freem> didn't holo just say add it to default <&holo> do it up in before everyone hates me haha
This commit is contained in:
@@ -0,0 +1,46 @@
|
|||||||
|
--I'ma call it the fuck you people with fucking huge cdtitles script, With Love - Jousway
|
||||||
|
local t = Def.ActorFrame {
|
||||||
|
|
||||||
|
Def.Sprite {
|
||||||
|
Name="CDTitle";
|
||||||
|
InitCommand=cmd(x,SCREEN_CENTER_X-43;y,SCREEN_TOP+210);
|
||||||
|
OnCommand=cmd(draworder,106;shadowlength,1;zoom,0.75;diffusealpha,1;zoom,0;bounceend,0.35;zoom,0.75;spin;effectmagnitude,0,180,0);
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
local function Update(self)
|
||||||
|
local song = GAMESTATE:GetCurrentSong();
|
||||||
|
local cdtitle = self:GetChild("CDTitle");
|
||||||
|
local height = cdtitle:GetHeight();
|
||||||
|
local width = cdtitle:GetWidth();
|
||||||
|
|
||||||
|
if song then
|
||||||
|
if song:HasCDTitle() then
|
||||||
|
cdtitle:visible(true);
|
||||||
|
cdtitle:Load(song:GetCDTitlePath());
|
||||||
|
else
|
||||||
|
cdtitle:visible(false);
|
||||||
|
end;
|
||||||
|
else
|
||||||
|
cdtitle:visible(false);
|
||||||
|
end;
|
||||||
|
|
||||||
|
if height >= 70 and width >= 70 then
|
||||||
|
if height >= width then
|
||||||
|
cdtitle:zoom(70/height);
|
||||||
|
else
|
||||||
|
cdtitle:zoom(70/width);
|
||||||
|
end;
|
||||||
|
elseif height >= 70 then
|
||||||
|
cdtitle:zoom(70/height);
|
||||||
|
elseif width >= 70 then
|
||||||
|
cdtitle:zoom(70/width);
|
||||||
|
else
|
||||||
|
cdtitle:zoom(1);
|
||||||
|
end;
|
||||||
|
|
||||||
|
end;
|
||||||
|
|
||||||
|
t.InitCommand=cmd(SetUpdateFunction,Update);
|
||||||
|
return t--]]
|
||||||
@@ -1040,7 +1040,8 @@ CDTitleX=SCREEN_CENTER_X-160+90
|
|||||||
CDTitleY=SCREEN_TOP+160+(36/2)+8
|
CDTitleY=SCREEN_TOP+160+(36/2)+8
|
||||||
CDTitleFrontCommand=diffuse,color('0.5,0.5,0.5,1');cullmode,'CullMode_Front'
|
CDTitleFrontCommand=diffuse,color('0.5,0.5,0.5,1');cullmode,'CullMode_Front'
|
||||||
CDTitleBackCommand=cullmode,'CullMode_Back'
|
CDTitleBackCommand=cullmode,'CullMode_Back'
|
||||||
CDTitleOnCommand=draworder,106;shadowlength,1;zoom,0.75;diffusealpha,1;zoom,0;bounceend,0.35;zoom,0.75;spin;effectmagnitude,0,180,0;
|
#CDTitleOnCommand=draworder,106;shadowlength,1;zoom,0.75;diffusealpha,1;zoom,0;bounceend,0.35;zoom,0.75;spin;effectmagnitude,0,180,0;
|
||||||
|
CDTitleOnCommand=diffusealpha,0
|
||||||
CDTitleOffCommand=bouncebegin,0.15;zoomx,0;
|
CDTitleOffCommand=bouncebegin,0.15;zoomx,0;
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
|
|||||||
Reference in New Issue
Block a user