senhor saturno beckons

This commit is contained in:
Flameshadowxeroshin
2011-09-26 02:03:12 +00:00
parent f40d37f2b6
commit e9cd8cf863
+14 -14
View File
@@ -1308,6 +1308,19 @@ void ScreenOptions::MenuUpDown( const InputEventPlus &input, int iDir )
}
}
/*
void ScreenOptions::SetOptionRowFromName( RString nombre )
{
FOREACH_PlayerNumber( pn )
{
for( unsigned i=0; i<m_pRows.size(); i++ )
{
if( m_pRows[i]->GetRowTitle() == nombre) && m_pRows[i]->GetRowDef().IsEnabledForPlayer(p) )
MoveRowAbsolute(pn,i)
}
}
}
*/
// lua start
#include "LuaBinding.h"
@@ -1326,20 +1339,7 @@ public:
lua_pushnil( L );
return 1;
}
/*FSX's WIP code, touch if it's wrong (which it probably is)
static int SetOptionRowFromName( T* p, lua_State *L )
{
FOREACH_PlayerNumber( pn )
{
for( unsigned i=0; i<m_pRows.size(); i++ )
{
if( m_pRows[i]->GetRowTitle() == SArg(1) && m_pRows[i]->GetRowDef().IsEnabledForPlayer(p) )
p->MoveRowAbsolute(pn,i)
}
}
}
*/
//static int SetOptionRowFromName( T* p, lua_State *L ) { p->SetOptionRowFromName( SArg(1) ); return 0; }
LunaScreenOptions()
{