backgrounds fixup

This commit is contained in:
Chris Danford
2006-05-05 21:48:00 +00:00
parent 68425c887e
commit f9c08d4a19
6 changed files with 36 additions and 16 deletions
@@ -1,11 +1,18 @@
<ActorFrame><children> <ActorFrame><children>
<Sprite <Layer
Command="LoadBackground,GAMESTATE:GetCurrentSong():GetBackgroundPath();x,SCREEN_CENTER_X;y,SCREEN_CENTER_Y;ZoomToWidth,SCREEN_WIDTH;ZoomToHeight,SCREEN_HEIGHT;diffuse,color(Color1)" Type="Sprite"
/> InitCommand="%function(self) self:LoadBackground( GAMESTATE:GetCurrentSong():GetBackgroundPath() ) end"
<AutoActor OnCommand="x,SCREEN_CENTER_X;y,SCREEN_CENTER_Y;ZoomToWidth,SCREEN_WIDTH;ZoomToHeight,SCREEN_HEIGHT;diffuse,color(self.Color1)"
>
<Input Name="Color1" />
</Layer>
<Layer
File="@File1" File="@File1"
OnCommand="Pause;blend,add;x,SCREEN_CENTER_X;y,SCREEN_CENTER_Y;ZoomToWidth,SCREEN_WIDTH;ZoomToHeight,SCREEN_HEIGHT;diffuse,color(Color2)" InitCommand="Pause"
OnCommand="blend,add;x,SCREEN_CENTER_X;y,SCREEN_CENTER_Y;ZoomToWidth,SCREEN_WIDTH;ZoomToHeight,SCREEN_HEIGHT;diffuse,color(self.Color2)"
GainFocusCommand="Play" GainFocusCommand="Play"
LoseFocusCommand="Pause" LoseFocusCommand="Pause"
/> >
<Input Name="Color2" />
</Layer>
</children></ActorFrame> </children></ActorFrame>
@@ -1,6 +1,6 @@
<ActorFrame><children> <ActorFrame><children>
<AutoActor <AutoActor
File="@File1" File="@File1"
OnCommand="x,SCREEN_CENTER_X;y,SCREEN_CENTER_Y;zoomtowidth,SCREEN_WIDTH;zoomtoheight,SCREEN_HEIGHT;loop,0" OnCommand="scale_or_crop_background;loop,0"
/> />
</children></ActorFrame> </children></ActorFrame>
@@ -1,8 +1,10 @@
<ActorFrame><children> <ActorFrame><children>
<AutoActor <Layer
File="@File1" File="@File1"
OnCommand="x,SCREEN_CENTER_X;y,SCREEN_CENTER_Y;zoomtowidth,SCREEN_WIDTH;zoomtoheight,SCREEN_HEIGHT;diffuse,color(Color1)" OnCommand="scale_or_crop_background;diffuse,color(self.Color1)"
GainFocusCommand="Play" GainFocusCommand="Play"
LoseFocusCommand="Pause" LoseFocusCommand="Pause"
/> >
<Input Name="Color1" />
</Layer>
</children></ActorFrame> </children></ActorFrame>
@@ -0,0 +1,11 @@
<!-- Align left when cropping to 4:3. Avoid this; it's not compatible with PS2 movie pre-rendering. -->
<ActorFrame><children>
<Layer
File="@File1"
OnCommand="horizalign,left;scaletocover,0,0,SCREEN_WIDTH,SCREEN_HEIGHT;diffuse,color(self.Color1)"
GainFocusCommand="Play"
LoseFocusCommand="Pause"
>
<Input Name="Color1" />
</Layer>
</children></ActorFrame>
@@ -1,6 +1,6 @@
<ActorFrame><children> <ActorFrame><children>
<AutoActor <AutoActor
File="@File1" File="@File1"
OnCommand="x,SCREEN_CENTER_X;y,SCREEN_CENTER_Y;zoomtowidth,SCREEN_WIDTH;zoomtoheight,SCREEN_HEIGHT;Pause" OnCommand="scale_or_crop_background;Pause"
/> />
</children></ActorFrame> </children></ActorFrame>
@@ -1,6 +1,6 @@
<ActorFrame><children> <ActorFrame><children>
<AutoActor <AutoActor
File="@File1" File="@File1"
OnCommand="x,SCREEN_CENTER_X;y,SCREEN_CENTER_Y;zoomtowidth,SCREEN_WIDTH;zoomtoheight,SCREEN_HEIGHT;position,0" OnCommand="scale_or_crop_background;position,0"
/> />
</children></ActorFrame> </children></ActorFrame>