Added metrics for setting the screens Edit Mode uses for setting mods. Added functions for apply ModsLevel_Preferred to the other levels.

This commit is contained in:
Kyzentun
2014-12-09 21:59:01 -07:00
parent 89ed68f86d
commit c9a17dc48e
7 changed files with 40 additions and 7 deletions
+7
View File
@@ -2470,6 +2470,12 @@ public:
lua_pushstring(L, so.GetString());
return 1;
}
static int ApplyPreferredSongOptionsToOtherLevels(T* p, lua_State* L)
{
p->m_SongOptions.Assign(ModsLevel_Preferred,
p->m_SongOptions.Get(ModsLevel_Preferred));
return 0;
}
static int ApplyStageModifiers( T* p, lua_State *L )
{
p->ApplyStageModifiers( Enum::Check<PlayerNumber>(L, 1), SArg(2) );
@@ -2862,6 +2868,7 @@ public:
ADD_METHOD( GetSongOptions );
ADD_METHOD( GetSongOptionsObject );
ADD_METHOD( GetDefaultSongOptions );
ADD_METHOD( ApplyPreferredSongOptionsToOtherLevels );
ADD_METHOD( ApplyPreferredModifiers );
ADD_METHOD( ApplyStageModifiers );
ADD_METHOD( ClearStageModifiersIllegalForCourse );