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
@@ -213,6 +213,12 @@ const TimingData &PlayerState::GetDisplayedTiming() const
class LunaPlayerState: public Luna<PlayerState>
{
public:
static int ApplyPreferredOptionsToOtherLevels(T* p, lua_State* L)
{
p->m_PlayerOptions.Assign(ModsLevel_Preferred,
p->m_PlayerOptions.Get(ModsLevel_Preferred));
return 0;
}
DEFINE_METHOD( GetPlayerNumber, m_PlayerNumber );
static int GetSongPosition( T* p, lua_State *L )
{
@@ -260,6 +266,7 @@ public:
LunaPlayerState()
{
ADD_METHOD( ApplyPreferredOptionsToOtherLevels );
ADD_METHOD( GetPlayerNumber );
ADD_METHOD( GetMultiPlayerNumber );
ADD_METHOD( GetPlayerController );