diff --git a/stepmania/Themes/default/BGAnimations/_standard decoration required.lua b/stepmania/Themes/default/BGAnimations/_standard decoration required.lua index 13adbdc343..4cbe70a5db 100644 --- a/stepmania/Themes/default/BGAnimations/_standard decoration required.lua +++ b/stepmania/Themes/default/BGAnimations/_standard decoration required.lua @@ -2,7 +2,7 @@ local MetricsName, FileName = ...; local t = LoadActor( THEME:GetPathG(Var "LoadingScreen",FileName) ); if type(t) == "table" then t = t .. { - InitCommand=function(self) self:name(MetricsName); ActorUtil.LoadAllCommandsAndSetXY(self,Var "LoadingScreen"); end; + InitCommand=function(self) self:name(MetricsName); ActorUtil.LoadAllCommandsAndSetXYAndOnCommand(self,Var "LoadingScreen"); end; }; end return t; diff --git a/stepmania/src/ActorUtil.cpp b/stepmania/src/ActorUtil.cpp index 5dde6b6098..be8e514cee 100644 --- a/stepmania/src/ActorUtil.cpp +++ b/stepmania/src/ActorUtil.cpp @@ -435,10 +435,10 @@ namespace lua_pushboolean( L, IsRegistered(SArg(1)) ); return 1; } - static int LoadAllCommandsAndSetXY( lua_State *L ) + static int LoadAllCommandsAndSetXYAndOnCommand( lua_State *L ) { Actor *p = Luna::check( L, 1 ); - ActorUtil::LoadAllCommandsAndSetXY( p, SArg(2) ); + ActorUtil::LoadAllCommandsAndSetXYAndOnCommand( p, SArg(2) ); return 0; } @@ -447,7 +447,7 @@ namespace LIST_METHOD( GetFileType ), LIST_METHOD( ResolvePath ), LIST_METHOD( IsRegisteredClass ), - LIST_METHOD( LoadAllCommandsAndSetXY ), + LIST_METHOD( LoadAllCommandsAndSetXYAndOnCommand ), { NULL, NULL } }; }