Annoying: allow OptionRowHandlers to specify what they reloaded, and
don't re-create things if we've only changed what's enabled. Use this with the Lua interface, by making EnabledForPlayers a function returning a table instead of a table.
This commit is contained in:
@@ -60,10 +60,10 @@ public:
|
||||
FillSongsAndChoices( m_sSongGroup, m_vpDisplayedSongs, m_Def.m_vsChoices );
|
||||
}
|
||||
|
||||
virtual bool Reload()
|
||||
virtual ReloadChanged Reload()
|
||||
{
|
||||
FillSongsAndChoices( m_sSongGroup, m_vpDisplayedSongs, m_Def.m_vsChoices );
|
||||
return true;
|
||||
return RELOAD_CHANGED_ALL;
|
||||
}
|
||||
|
||||
virtual void ImportOption( const vector<PlayerNumber> &vpns, vector<bool> vbSelectedOut[NUM_PLAYERS] ) const
|
||||
|
||||
Reference in New Issue
Block a user