reomve old "children" node

This commit is contained in:
Glenn Maynard
2007-05-20 17:59:03 +00:00
parent f4cec5f3d1
commit f31e2edcc2
4 changed files with 11 additions and 14 deletions
@@ -7,7 +7,7 @@ local NumberMinZoom = THEME:GetMetric("Combo", "NumberMinZoom");
local NumberMaxZoom = THEME:GetMetric("Combo", "NumberMaxZoom"); local NumberMaxZoom = THEME:GetMetric("Combo", "NumberMaxZoom");
local NumberMaxZoomAt = THEME:GetMetric("Combo", "NumberMaxZoomAt"); local NumberMaxZoomAt = THEME:GetMetric("Combo", "NumberMaxZoomAt");
local t = { local t = Def.ActorFrame {
LoadFont( "Combo", "numbers" ) .. { LoadFont( "Combo", "numbers" ) .. {
Name="Number"; Name="Number";
OnCommand = THEME:GetMetric("Combo", "NumberOnCommand"); OnCommand = THEME:GetMetric("Combo", "NumberOnCommand");
@@ -20,10 +20,7 @@ local t = {
Name="MissesLabel"; Name="MissesLabel";
OnCommand = THEME:GetMetric("Combo", "LabelOnCommand"); OnCommand = THEME:GetMetric("Combo", "LabelOnCommand");
}; };
};
return Def.ActorFrame {
children = t;
InitCommand = function(self) InitCommand = function(self)
c = self:GetChildren(); c = self:GetChildren();
c.Number:visible(false); c.Number:visible(false);
@@ -59,3 +56,5 @@ return Def.ActorFrame {
Pulse( Label, param ); Pulse( Label, param );
end; end;
}; };
return t;
@@ -27,8 +27,7 @@ local TNSFrames = {
TapNoteScore_Miss = 5; TapNoteScore_Miss = 5;
}; };
return Def.ActorFrame { local t = Def.ActorFrame {
children = t;
InitCommand = function(self) InitCommand = function(self)
c = self:GetChildren(); c = self:GetChildren();
end; end;
@@ -53,3 +52,5 @@ return Def.ActorFrame {
JudgeCmds[param.TapNoteScore](c.Judgment); JudgeCmds[param.TapNoteScore](c.Judgment);
end; end;
}; };
return t;
@@ -1,4 +1,4 @@
local children = { local t = Def.ActorFrame {
LoadFont("", "blaster") ..{ LoadFont("", "blaster") ..{
Text=THEME:GetString( 'ScreenTitleMenu', ThisGameCommand:GetText() ); Text=THEME:GetString( 'ScreenTitleMenu', ThisGameCommand:GetText() );
InitCommand=cmd(horizalign,center;shadowlength,0); InitCommand=cmd(horizalign,center;shadowlength,0);
@@ -8,4 +8,4 @@ local children = {
}; };
}; };
return Def.ActorFrame { children = children }; return t;
@@ -5,11 +5,8 @@ return Def.ActorFrame {
OffFocusedCommand=cmd(); OffFocusedCommand=cmd();
OffUnfocusedCommand=cmd(); OffUnfocusedCommand=cmd();
children = LoadFont( "Common", "normal" ) .. {
{ Text=THEME:GetString("PaneDisplay", text);
LoadFont( "Common", "normal" ) .. { OnCommand=cmd(shadowlength,0;horizalign,left;zoom,0.5);
Text=THEME:GetString("PaneDisplay", text);
OnCommand=cmd(shadowlength,0;horizalign,left;zoom,0.5);
};
}; };
}; };