Improved three-key support. Default theme should be completely usable with three-key cabinets if ThreeKeyNavigation pref is true. Added ThreeKeyNavigation pref. ScreenOptions:NavigationMode metric now uses that pref to decide between normal and toggle modes. Added GoToFirstOnStart to OptionRowHandlerLua so an option row can control that behavior. Rewrote input for default's ScreenSelectProfile to use an input callback to take advantage of menu button mapping. Fixed inconsistent indentation in ORHL documentation.
This commit is contained in:
@@ -833,8 +833,9 @@ public:
|
||||
LuaReference m_EnabledForPlayersFunc;
|
||||
|
||||
bool m_TableIsSane;
|
||||
bool m_GoToFirstOnStart;
|
||||
|
||||
OptionRowHandlerLua(): m_TableIsSane(false)
|
||||
OptionRowHandlerLua(): m_TableIsSane(false), m_GoToFirstOnStart(false)
|
||||
{ m_pLuaTable = new LuaReference; Init(); }
|
||||
virtual ~OptionRowHandlerLua() { delete m_pLuaTable; }
|
||||
void Init()
|
||||
@@ -1030,6 +1031,10 @@ public:
|
||||
m_Def.m_sName = pStr;
|
||||
lua_pop( L, 1 );
|
||||
|
||||
lua_getfield(L, -1, "GoToFirstOnStart");
|
||||
m_GoToFirstOnStart= lua_toboolean(L, -1);
|
||||
lua_pop(L, 1);
|
||||
|
||||
lua_getfield(L, -1, "OneChoiceForAllPlayers");
|
||||
m_Def.m_bOneChoiceForAllPlayers = lua_toboolean( L, -1 );
|
||||
lua_pop( L, 1 );
|
||||
@@ -1253,6 +1258,10 @@ public:
|
||||
LUA->Release(L);
|
||||
return changed;
|
||||
}
|
||||
virtual bool GoToFirstOnStart()
|
||||
{
|
||||
return m_GoToFirstOnStart;
|
||||
}
|
||||
};
|
||||
|
||||
class OptionRowHandlerConfig : public OptionRowHandler
|
||||
|
||||
Reference in New Issue
Block a user