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:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user