From 6b60db25d6905bf516f1551c6f1853b3d57807b1 Mon Sep 17 00:00:00 2001 From: AJ Kelly Date: Sun, 20 Feb 2011 12:53:57 -0600 Subject: [PATCH 1/3] small cleanup --- src/OptionRow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OptionRow.cpp b/src/OptionRow.cpp index 98b3204bc8..24dfaf752a 100644 --- a/src/OptionRow.cpp +++ b/src/OptionRow.cpp @@ -732,7 +732,7 @@ int OptionRow::GetChoiceInRowWithFocus( PlayerNumber pn ) const if( m_pHand->m_Def.m_vsChoices.empty() ) return -1; int iChoice = m_iChoiceInRowWithFocus[pn]; - return iChoice; + return iChoice; } int OptionRow::GetChoiceInRowWithFocusShared() const From 035e0830d7cc7eb2a2312975a53adbbbb6fa5391 Mon Sep 17 00:00:00 2001 From: AJ Kelly Date: Sun, 20 Feb 2011 12:54:26 -0600 Subject: [PATCH 2/3] move message --- src/ScreenOptions.cpp | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/src/ScreenOptions.cpp b/src/ScreenOptions.cpp index 093c1a3932..d23abd4ea7 100644 --- a/src/ScreenOptions.cpp +++ b/src/ScreenOptions.cpp @@ -1193,6 +1193,13 @@ bool ScreenOptions::MoveRowAbsolute( PlayerNumber pn, int iRow ) AfterChangeRow( p ); bChanged = true; + + const OptionRow &row = *m_pRows[iRow]; + Message msg( "ChangeRow" ); + msg.SetParam( "PlayerNumber", p ); + msg.SetParam( "RowIndex", GetCurrentRow(p) ); + msg.SetParam( "ChangedToExit", row.GetRowType() == OptionRow::RowType_Exit ); + MESSAGEMAN->Broadcast( msg ); } return bChanged; @@ -1268,14 +1275,6 @@ void ScreenOptions::MenuUpDown( const InputEventPlus &input, int iDir ) m_SoundPrevRow.Play(); else m_SoundNextRow.Play(); - - const OptionRow &row = *m_pRows[m_iCurrentRow[pn]]; - Message msg( "Change" ); - msg.SetParam( "RowIndex", GetCurrentRow(pn) ); - msg.SetParam( "ChangedToExit", row.GetRowType() == OptionRow::RowType_Exit ); - // This isn't working too well... -aj - //msg.SetParam( "PlayerNumber", pn ); - MESSAGEMAN->Broadcast( msg ); } } From 00d137362f2e2f03e894a5052949694a9077ca15 Mon Sep 17 00:00:00 2001 From: AJ Kelly Date: Sun, 20 Feb 2011 12:58:38 -0600 Subject: [PATCH 3/3] update luadoc --- Docs/Luadoc/Lua.xml | 22 +++++++++++++------ Docs/Luadoc/LuaDocumentation.xml | 36 ++++++++++++++++++++++++++++++-- 2 files changed, 50 insertions(+), 8 deletions(-) diff --git a/Docs/Luadoc/Lua.xml b/Docs/Luadoc/Lua.xml index 85cd618dd9..07bd45b814 100644 --- a/Docs/Luadoc/Lua.xml +++ b/Docs/Luadoc/Lua.xml @@ -775,8 +775,6 @@ - - @@ -856,6 +854,15 @@ + + + + + + + + + @@ -1074,9 +1081,11 @@ - + + + - + @@ -1236,8 +1245,8 @@ - + @@ -1348,6 +1357,7 @@ + @@ -1955,5 +1965,5 @@ sm-ssc v1.2.1 - 2011-02-10 + 2011-02-20 diff --git a/Docs/Luadoc/LuaDocumentation.xml b/Docs/Luadoc/LuaDocumentation.xml index 173a5495d0..9fb419a4a8 100644 --- a/Docs/Luadoc/LuaDocumentation.xml +++ b/Docs/Luadoc/LuaDocumentation.xml @@ -2038,6 +2038,29 @@ Returns a table of noteskin names for the current gametype. + + + Returns true if the first item in the row goes down. + + + Returns an index of the choice in the row that player pn is on. + + + Returns the name of the OptionRow. + + + Returns the number of choices in this OptionRow. + + + Returns the row title string. + + + Returns true if this row is focused by player pn. + + + Returns true if this row forces one choice on all players. + + Sets the PaneDisplay from the GameState. @@ -2604,8 +2627,14 @@ Returns true if all active players are on the last options row. - - Returns the current row that player pn is on. + + Returns true if the specified player is on an items that ends the screen. + + + Returns the current row that player pn is on. (Was previously GetCurrentRow.) + + + Returns the specified OptionRow. @@ -3325,6 +3354,9 @@ Moves the wheel by n. + + Attempts to set the open section to sSection. +