Settings GUI: Add support for DECIMAL1 settings.

This commit is contained in:
Jonathan G Rennison
2016-11-25 23:14:11 +00:00
parent f5212b27e4
commit 842728bd17
2 changed files with 13 additions and 3 deletions

View File

@@ -48,6 +48,7 @@ enum SettingGuiFlagLong {
SGF_NEWGAME_ONLY = 1 << 6, ///< this setting cannot be changed in a game
SGF_SCENEDIT_TOO = 1 << 7, ///< this setting can be changed in the scenario editor (only makes sense when SGF_NEWGAME_ONLY is set)
SGF_PER_COMPANY = 1 << 8, ///< this setting can be different for each company (saved in company struct)
SGF_DECIMAL1 = 1 << 9, ///< display a decimal representation of the setting value divided by 10
};
DECLARE_ENUM_AS_BIT_SET(SettingGuiFlagLong)
typedef SimpleTinyEnumT<SettingGuiFlagLong, uint16> SettingGuiFlag;