added GetRowHasFocus(pn) function, moved GetRowTitle() to public for use with Lua, added RowType enum to Lua, and finally PushSelf

This commit is contained in:
AJ Kelly
2011-02-19 23:39:54 -06:00
parent 1ea45319f2
commit 58436d2579
+8 -2
View File
@@ -68,13 +68,18 @@ public:
RowType_Normal,
RowType_Exit
};
LuaDeclareType( RowType );
void InitText( RowType type );
void AfterImportOptions( PlayerNumber pn );
RString GetRowTitle() const;
void ChoicesChanged( RowType type );
void PositionUnderlines( PlayerNumber pn );
void PositionIcons( PlayerNumber pn );
void UpdateText( PlayerNumber pn );
bool GetRowHasFocus( PlayerNumber pn ) const { return m_bRowHasFocus[pn]; }
void SetRowHasFocus( PlayerNumber pn, bool bRowHasFocus );
void UpdateEnabledDisabled();
@@ -113,9 +118,10 @@ public:
// Messages
virtual void HandleMessage( const Message &msg );
protected:
RString GetRowTitle() const;
// Lua
void PushSelf( lua_State *L );
protected:
const OptionRowType *m_pParentType;
RowType m_RowType;
OptionRowHandler* m_pHand;