Add text using Lua rather than baked in.
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
return LoadActor( "_music scroll background" ) .. {
|
||||
InitCommand = cmd(scale_or_crop_background),
|
||||
local children = {
|
||||
LoadActor( "_music scroll background" ) .. {
|
||||
InitCommand = cmd(scale_or_crop_background);
|
||||
};
|
||||
LoadFont( "ScreenMusicScroll", "thanks" ) .. {
|
||||
Text = "Thank you for playing!";
|
||||
InitCommand = cmd(align,0,1;x,SCREEN_LEFT+20;y,SCREEN_BOTTOM-40;zoom,.8)
|
||||
};
|
||||
}
|
||||
return WrapInActorFrame( children )
|
||||
|
||||
Reference in New Issue
Block a user