Added ArbSpeedMods function for a better way of setting speed modifiers. Added NotifyHandlerOfSelection to OptionRowHandler to support this. Changed exceptions thrown by OptionRowHandlerLua into log warnings because crashing out is not helpful to themers. Fixed SetEnabledForPlayers in OptionRowHandlerLua to correctly read the PlayerNumber enum. Removed silly git add Docs/Themerdocs/Examples/OptionRowHandlerLua.lua and second check for ExportOnChange.
This commit is contained in:
+5
-2
@@ -76,7 +76,7 @@ public:
|
||||
|
||||
RString GetRowTitle() const;
|
||||
|
||||
void ChoicesChanged( RowType type );
|
||||
void ChoicesChanged( RowType type, bool reset_focus= true );
|
||||
void PositionUnderlines( PlayerNumber pn );
|
||||
void PositionIcons( PlayerNumber pn );
|
||||
void UpdateText( PlayerNumber pn );
|
||||
@@ -96,7 +96,10 @@ public:
|
||||
void ResetFocusFromSelection( PlayerNumber pn );
|
||||
|
||||
bool GetSelected( PlayerNumber pn, int iChoice ) const;
|
||||
void SetSelected( PlayerNumber pn, int iChoice, bool b );
|
||||
// SetSelected returns true if the choices changed because of setting.
|
||||
bool SetSelected( PlayerNumber pn, int iChoice, bool b );
|
||||
|
||||
bool NotifyHandlerOfSelection(PlayerNumber pn, int choice);
|
||||
|
||||
const OptionRowDefinition &GetRowDef() const;
|
||||
OptionRowDefinition &GetRowDef();
|
||||
|
||||
Reference in New Issue
Block a user