updating cdtitle resizer, change back if you guys dont like it.
This commit is contained in:
@@ -1,12 +1,18 @@
|
|||||||
--I'ma call it the fuck you people with fucking huge cdtitles script, With Love - Jousway
|
|
||||||
local t = Def.ActorFrame {
|
local t = Def.ActorFrame {
|
||||||
|
OnCommand=cmd(x,SCREEN_CENTER_X;y,SCREEN_BOTTOM-96;zoomy,0;sleep,0.5;decelerate,0.25;zoomy,1);
|
||||||
|
OffCommand=cmd(bouncebegin,0.15;zoomx,0);
|
||||||
|
LoadActor(THEME:GetPathG("CDTitle", "Con")) .. {
|
||||||
|
InitCommand=cmd(diffuse,Color("Orange"));
|
||||||
|
};
|
||||||
|
LoadFont("Common Normal") .. {
|
||||||
|
Text="Author";
|
||||||
|
InitCommand=cmd(zoom,0.7;y,-36,diffuse,0,0,0,1;shadowlength,1); -- strokecolor,Color("Black")
|
||||||
|
};
|
||||||
Def.Sprite {
|
Def.Sprite {
|
||||||
Name="CDTitle";
|
Name="CDTitle";
|
||||||
InitCommand=cmd(x,SCREEN_CENTER_X-43;y,SCREEN_TOP+210);
|
InitCommand=cmd(y,19);
|
||||||
OnCommand=cmd(draworder,106;shadowlength,1;zoom,0.75;diffusealpha,1;zoom,0;bounceend,0.35;zoom,0.75;spin;effectmagnitude,0,180,0);
|
--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 function Update(self)
|
||||||
@@ -26,16 +32,16 @@ local function Update(self)
|
|||||||
cdtitle:visible(false);
|
cdtitle:visible(false);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
if height >= 70 and width >= 70 then
|
if height >= 60 and width >= 80 then
|
||||||
if height >= width then
|
if height+20 >= width then
|
||||||
cdtitle:zoom(70/height);
|
cdtitle:zoom(60/height);
|
||||||
else
|
else
|
||||||
cdtitle:zoom(70/width);
|
cdtitle:zoom(80/width);
|
||||||
end;
|
end;
|
||||||
elseif height >= 70 then
|
elseif height >= 60 then
|
||||||
cdtitle:zoom(70/height);
|
cdtitle:zoom(60/height);
|
||||||
elseif width >= 70 then
|
elseif width >= 80 then
|
||||||
cdtitle:zoom(70/width);
|
cdtitle:zoom(80/width);
|
||||||
else
|
else
|
||||||
cdtitle:zoom(1);
|
cdtitle:zoom(1);
|
||||||
end;
|
end;
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 4.1 KiB |
Reference in New Issue
Block a user