like ActorUtil::Create. Most of the time, use LoadActor, which is for loading files by filename, like ActorUtil::MakeActor. (If you're creating "a Model with these parameters", use Def.Model. If you're just loading "this other filename, whatever it is", use LoadActor.)
18 lines
494 B
Lua
18 lines
494 B
Lua
local t =
|
|
Def.ActorFrame {
|
|
children = {
|
|
LoadActor("white.png")() .. {
|
|
OnCommand=cmd(x,SCREEN_CENTER_X;y,SCREEN_CENTER_Y;stretchto,SCREEN_LEFT,SCREEN_TOP,SCREEN_RIGHT,SCREEN_BOTTOM)
|
|
},
|
|
LoadActor("shadow (32bpp).png")() .. {
|
|
OnCommand=cmd(x,SCREEN_CENTER_X;y,SCREEN_CENTER_Y;diffuse,0,0,0,1;addx,20;addy,6;linear,8;addx,-40)
|
|
},
|
|
LoadActor("stepmania (dither).png")() .. {
|
|
File="stepmania (dither).png",
|
|
OnCommand=cmd(x,SCREEN_CENTER_X;y,SCREEN_CENTER_Y),
|
|
}
|
|
}
|
|
}
|
|
|
|
return t
|