backgrounds fixup
This commit is contained in:
@@ -1,11 +1,18 @@
|
||||
<ActorFrame><children>
|
||||
<Sprite
|
||||
Command="LoadBackground,GAMESTATE:GetCurrentSong():GetBackgroundPath();x,SCREEN_CENTER_X;y,SCREEN_CENTER_Y;ZoomToWidth,SCREEN_WIDTH;ZoomToHeight,SCREEN_HEIGHT;diffuse,color(Color1)"
|
||||
/>
|
||||
<AutoActor
|
||||
<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>
|
||||
<Layer
|
||||
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"
|
||||
LoseFocusCommand="Pause"
|
||||
/>
|
||||
>
|
||||
<Input Name="Color2" />
|
||||
</Layer>
|
||||
</children></ActorFrame>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<ActorFrame><children>
|
||||
<AutoActor
|
||||
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>
|
||||
<AutoActor
|
||||
<Layer
|
||||
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"
|
||||
LoseFocusCommand="Pause"
|
||||
/>
|
||||
</children></ActorFrame>
|
||||
>
|
||||
<Input Name="Color1" />
|
||||
</Layer>
|
||||
</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>
|
||||
<AutoActor
|
||||
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>
|
||||
<AutoActor
|
||||
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>
|
||||
|
||||
Reference in New Issue
Block a user