all the live long eh

This commit is contained in:
Flameshadowxeroshin
2011-09-25 21:23:01 -05:00
+15 -15
View File
@@ -1308,6 +1308,19 @@ void ScreenOptions::MenuUpDown( const InputEventPlus &input, int iDir )
}
}
/*
void ScreenOptions::SetOptionRowFromName( const 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()
{
@@ -1347,7 +1347,7 @@ public:
ADD_METHOD( FocusedItemEndsScreen );
ADD_METHOD( GetCurrentRowIndex );
ADD_METHOD( GetOptionRow );
//ADD_METHOD( SetOptionRowFromName );
//ADD_METHOD( SetOptionRowFromName );
}
};