simplify
This commit is contained in:
@@ -135,7 +135,7 @@ local function AddLine( text, command )
|
|||||||
OnCommand = command or lineOn;
|
OnCommand = command or lineOn;
|
||||||
}
|
}
|
||||||
-- XXX: Hack. Wrap in an ActorFrame so OnCommand works
|
-- XXX: Hack. Wrap in an ActorFrame so OnCommand works
|
||||||
table.insert( t, WrapInActorFrame({t}) )
|
table.insert( t, Def.ActorFrame { t } )
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Add header and padding
|
-- Add header and padding
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ for i=1,num do
|
|||||||
OnCommand = cmd(zoom,0.7;diffuse,color);
|
OnCommand = cmd(zoom,0.7;diffuse,color);
|
||||||
}
|
}
|
||||||
|
|
||||||
table.insert( t, WrapInActorFrame({text}) )
|
table.insert( t, Def.ActorFrame { text } )
|
||||||
end
|
end
|
||||||
|
|
||||||
return t;
|
return t;
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ assert( Width );
|
|||||||
local FullFile = THEME:GetPathB('','_frame files 3x1/'..File )
|
local FullFile = THEME:GetPathB('','_frame files 3x1/'..File )
|
||||||
local Frame = LoadActor( FullFile )
|
local Frame = LoadActor( FullFile )
|
||||||
|
|
||||||
return WrapInActorFrame {
|
return Def.ActorFrame {
|
||||||
Frame .. { InitCommand=cmd(setstate,0;pause;horizalign,right;x,-Width/2) };
|
Frame .. { InitCommand=cmd(setstate,0;pause;horizalign,right;x,-Width/2) };
|
||||||
Frame .. { InitCommand=cmd(setstate,1;pause;zoomtowidth,Width) };
|
Frame .. { InitCommand=cmd(setstate,1;pause;zoomtowidth,Width) };
|
||||||
Frame .. { InitCommand=cmd(setstate,2;pause;horizalign,left;x,Width/2) };
|
Frame .. { InitCommand=cmd(setstate,2;pause;horizalign,left;x,Width/2) };
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ assert( Height );
|
|||||||
|
|
||||||
local FullFile = THEME:GetPathB('','_frame files 3x3/'..File )
|
local FullFile = THEME:GetPathB('','_frame files 3x3/'..File )
|
||||||
local Frame = LoadActor( FullFile )
|
local Frame = LoadActor( FullFile )
|
||||||
return WrapInActorFrame {
|
return Def.ActorFrame {
|
||||||
Frame .. { InitCommand=cmd(setstate,0;pause;horizalign,right;vertalign,bottom;x,-Width/2;y,-Height/2) };
|
Frame .. { InitCommand=cmd(setstate,0;pause;horizalign,right;vertalign,bottom;x,-Width/2;y,-Height/2) };
|
||||||
Frame .. { InitCommand=cmd(setstate,1;pause;zoomtowidth,Width;vertalign,bottom;zoomtowidth,Width;y,-Height/2) };
|
Frame .. { InitCommand=cmd(setstate,1;pause;zoomtowidth,Width;vertalign,bottom;zoomtowidth,Width;y,-Height/2) };
|
||||||
Frame .. { InitCommand=cmd(setstate,2;pause;horizalign,left;vertalign,bottom;x,Width/2;y,-Height/2) };
|
Frame .. { InitCommand=cmd(setstate,2;pause;horizalign,left;vertalign,bottom;x,Width/2;y,-Height/2) };
|
||||||
|
|||||||
Reference in New Issue
Block a user