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:
Kyzentun
2014-06-19 06:41:18 -06:00
parent 006fcd84a7
commit 045e9edcdd
9 changed files with 361 additions and 36 deletions
+5 -2
View File
@@ -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();