stash colors manually for now; havn't decided on a generic way to pass

parameters to actor loading
This commit is contained in:
Glenn Maynard
2006-10-15 09:30:31 +00:00
parent 4590dea0b3
commit d491ae1af8
3 changed files with 12 additions and 18 deletions
@@ -1,18 +1,14 @@
<ActorFrame><children>
<Layer
Type="@Sprite"
InitCommand="%function(self) self:LoadBackground( GAMESTATE:GetCurrentSong():GetBackgroundPath() ) end"
OnCommand="x,SCREEN_CENTER_X;y,SCREEN_CENTER_Y;ZoomToWidth,SCREEN_WIDTH;ZoomToHeight,SCREEN_HEIGHT;diffuse,color(self.Color1)"
>
<Input Name="@Color1" />
</Layer>
InitCommand="%function(self) self:LoadBackground( GAMESTATE:GetCurrentSong():GetBackgroundPath() ) self.Color = Color1 end"
OnCommand="x,SCREEN_CENTER_X;y,SCREEN_CENTER_Y;ZoomToWidth,SCREEN_WIDTH;ZoomToHeight,SCREEN_HEIGHT;diffuse,color(self.Color)"
/>
<Layer
File="P.File1"
InitCommand="Pause"
OnCommand="blend,add;x,SCREEN_CENTER_X;y,SCREEN_CENTER_Y;ZoomToWidth,SCREEN_WIDTH;ZoomToHeight,SCREEN_HEIGHT;diffuse,color(self.Color2)"
InitCommand="%function(self) self:pause(); self.Color = Color2; end"
OnCommand="blend,add;x,SCREEN_CENTER_X;y,SCREEN_CENTER_Y;ZoomToWidth,SCREEN_WIDTH;ZoomToHeight,SCREEN_HEIGHT;diffuse,color(self.Color)"
GainFocusCommand="Play"
LoseFocusCommand="Pause"
>
<Input Name="@Color2" />
</Layer>
/>
</children></ActorFrame>
@@ -1,10 +1,9 @@
<ActorFrame><children>
<Layer
File="P.File1"
OnCommand="scale_or_crop_background;diffuse,color(self.Color1)"
InitCommand="%function(self) self.Color = Color1; end"
OnCommand="scale_or_crop_background;diffuse,color(self.Color)"
GainFocusCommand="Play"
LoseFocusCommand="Pause"
>
<Input Name="@Color1" />
</Layer>
/>
</children></ActorFrame>
@@ -2,10 +2,9 @@
<ActorFrame><children>
<Layer
File="P.File1"
OnCommand="horizalign,left;scaletocover,0,0,SCREEN_WIDTH,SCREEN_HEIGHT;diffuse,color(self.Color1)"
InitCommand="%function(self) self.Color = Color1; end"
OnCommand="horizalign,left;scaletocover,0,0,SCREEN_WIDTH,SCREEN_HEIGHT;diffuse,color(self.Color)"
GainFocusCommand="Play"
LoseFocusCommand="Pause"
>
<Input Name="@Color1" />
</Layer>
/>
</children></ActorFrame>