stash colors manually for now; havn't decided on a generic way to pass
parameters to actor loading
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user