senhor saturno beckons
This commit is contained in:
+14
-14
@@ -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
|
// lua start
|
||||||
#include "LuaBinding.h"
|
#include "LuaBinding.h"
|
||||||
|
|
||||||
@@ -1326,20 +1339,7 @@ public:
|
|||||||
lua_pushnil( L );
|
lua_pushnil( L );
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
//static int SetOptionRowFromName( T* p, lua_State *L ) { p->SetOptionRowFromName( SArg(1) ); return 0; }
|
||||||
/*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)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
LunaScreenOptions()
|
LunaScreenOptions()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user