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:
+8
-2
@@ -68,13 +68,18 @@ public:
|
|||||||
RowType_Normal,
|
RowType_Normal,
|
||||||
RowType_Exit
|
RowType_Exit
|
||||||
};
|
};
|
||||||
|
LuaDeclareType( RowType );
|
||||||
|
|
||||||
void InitText( RowType type );
|
void InitText( RowType type );
|
||||||
void AfterImportOptions( PlayerNumber pn );
|
void AfterImportOptions( PlayerNumber pn );
|
||||||
|
|
||||||
|
RString GetRowTitle() const;
|
||||||
|
|
||||||
void ChoicesChanged( RowType type );
|
void ChoicesChanged( RowType type );
|
||||||
void PositionUnderlines( PlayerNumber pn );
|
void PositionUnderlines( PlayerNumber pn );
|
||||||
void PositionIcons( PlayerNumber pn );
|
void PositionIcons( PlayerNumber pn );
|
||||||
void UpdateText( PlayerNumber pn );
|
void UpdateText( PlayerNumber pn );
|
||||||
|
bool GetRowHasFocus( PlayerNumber pn ) const { return m_bRowHasFocus[pn]; }
|
||||||
void SetRowHasFocus( PlayerNumber pn, bool bRowHasFocus );
|
void SetRowHasFocus( PlayerNumber pn, bool bRowHasFocus );
|
||||||
void UpdateEnabledDisabled();
|
void UpdateEnabledDisabled();
|
||||||
|
|
||||||
@@ -113,9 +118,10 @@ public:
|
|||||||
// Messages
|
// Messages
|
||||||
virtual void HandleMessage( const Message &msg );
|
virtual void HandleMessage( const Message &msg );
|
||||||
|
|
||||||
protected:
|
// Lua
|
||||||
RString GetRowTitle() const;
|
void PushSelf( lua_State *L );
|
||||||
|
|
||||||
|
protected:
|
||||||
const OptionRowType *m_pParentType;
|
const OptionRowType *m_pParentType;
|
||||||
RowType m_RowType;
|
RowType m_RowType;
|
||||||
OptionRowHandler* m_pHand;
|
OptionRowHandler* m_pHand;
|
||||||
|
|||||||
Reference in New Issue
Block a user