From 49d220188280036e555c715a9660c195e882630e Mon Sep 17 00:00:00 2001 From: Flameshadowxeroshin Date: Wed, 31 Aug 2011 03:41:26 +0000 Subject: [PATCH] add SetOptionRowFromName to ScreenOptions. not yet tested or proofread. --- src/ScreenOptions.cpp | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/ScreenOptions.cpp b/src/ScreenOptions.cpp index 0c203ca22c..7633c1dc58 100644 --- a/src/ScreenOptions.cpp +++ b/src/ScreenOptions.cpp @@ -1327,8 +1327,19 @@ public: return 1; } - //FSX's WIP code, don't touch - //static int SetOptio + /*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; iGetRowTitle() == SArg(1) && m_pRows[i]->GetRowDef().IsEnabledForPlayer(p) ) + p->MoveRowAbsolute(pn,i + } + } + } + */ LunaScreenOptions() {