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>
|
<ActorFrame><children>
|
||||||
<Layer
|
<Layer
|
||||||
Type="@Sprite"
|
Type="@Sprite"
|
||||||
InitCommand="%function(self) self:LoadBackground( GAMESTATE:GetCurrentSong():GetBackgroundPath() ) end"
|
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.Color1)"
|
OnCommand="x,SCREEN_CENTER_X;y,SCREEN_CENTER_Y;ZoomToWidth,SCREEN_WIDTH;ZoomToHeight,SCREEN_HEIGHT;diffuse,color(self.Color)"
|
||||||
>
|
/>
|
||||||
<Input Name="@Color1" />
|
|
||||||
</Layer>
|
|
||||||
<Layer
|
<Layer
|
||||||
File="P.File1"
|
File="P.File1"
|
||||||
InitCommand="Pause"
|
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.Color2)"
|
OnCommand="blend,add;x,SCREEN_CENTER_X;y,SCREEN_CENTER_Y;ZoomToWidth,SCREEN_WIDTH;ZoomToHeight,SCREEN_HEIGHT;diffuse,color(self.Color)"
|
||||||
GainFocusCommand="Play"
|
GainFocusCommand="Play"
|
||||||
LoseFocusCommand="Pause"
|
LoseFocusCommand="Pause"
|
||||||
>
|
/>
|
||||||
<Input Name="@Color2" />
|
|
||||||
</Layer>
|
|
||||||
</children></ActorFrame>
|
</children></ActorFrame>
|
||||||
|
|||||||
@@ -1,10 +1,9 @@
|
|||||||
<ActorFrame><children>
|
<ActorFrame><children>
|
||||||
<Layer
|
<Layer
|
||||||
File="P.File1"
|
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"
|
GainFocusCommand="Play"
|
||||||
LoseFocusCommand="Pause"
|
LoseFocusCommand="Pause"
|
||||||
>
|
/>
|
||||||
<Input Name="@Color1" />
|
|
||||||
</Layer>
|
|
||||||
</children></ActorFrame>
|
</children></ActorFrame>
|
||||||
|
|||||||
@@ -2,10 +2,9 @@
|
|||||||
<ActorFrame><children>
|
<ActorFrame><children>
|
||||||
<Layer
|
<Layer
|
||||||
File="P.File1"
|
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"
|
GainFocusCommand="Play"
|
||||||
LoseFocusCommand="Pause"
|
LoseFocusCommand="Pause"
|
||||||
>
|
/>
|
||||||
<Input Name="@Color1" />
|
|
||||||
</Layer>
|
|
||||||
</children></ActorFrame>
|
</children></ActorFrame>
|
||||||
|
|||||||
Reference in New Issue
Block a user