git-svn-id: https://openitg.svn.sourceforge.net/svnroot/openitg@376 83fadc84-e282...
authorPatrick McIlroy <itgpmc@gmail.com>
Thu, 12 Jun 2008 01:53:57 +0000 (01:53 +0000)
committerPatrick McIlroy <itgpmc@gmail.com>
Thu, 12 Jun 2008 01:53:57 +0000 (01:53 +0000)
src/OptionRowHandler.cpp
src/OptionRowHandler.h

index c90df4b..53a4466 100755 (executable)
@@ -49,7 +49,6 @@ static int GetOneSelection( const vector<bool> &vbSelected )
        return iRet;
 }
 
-
 class OptionRowHandlerList : public OptionRowHandler
 {
 public:
@@ -288,7 +287,15 @@ public:
                const GameCommand &mc = ListEntries[iChoice];
                return !mc.m_sScreen.empty();
        }
-
+       virtual CString GetScreen( int iChoice ) const
+        {
+                const GameCommand &gc = ListEntries[iChoice];
+                return gc.m_sScreen;
+        }
+       virtual void GetGameCommand( int iChoice, GameCommand &out ) const
+       {
+               out = ListEntries[iChoice];
+       }
        void FillNoteSkins( OptionRowDefinition &defOut, CString sParam )
        {
                Init();
index ad24cba..c48d2ef 100755 (executable)
@@ -29,6 +29,8 @@ public:
        /* Returns an OPT mask. */
        virtual int ExportOption( const OptionRowDefinition &def, const vector<PlayerNumber> &vpns, const vector<bool> vbSelected[NUM_PLAYERS] ) const = 0;
        virtual CString GetIconText( const OptionRowDefinition &def, int iFirstSelection ) const { return ""; }
+       virtual CString GetScreen( int iChoice) const { return ""; }
+       virtual void GetGameCommand( int iChoice, GameCommand &out ) const { out.Init(); }
        virtual bool HasScreen( int iChoice ) const { return false; }
 };