diff options
author | frosch <frosch@openttd.org> | 2012-06-01 15:20:18 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2012-06-01 15:20:18 +0000 |
commit | c3ca57c42be1416d93738546acd2ad746ad02de6 (patch) | |
tree | 52475fb363477b3fe40f244fdc9009dc56579859 /src/newgrf_config.h | |
parent | be0b94400d6e7e9136703d60b70b495d84f25108 (diff) | |
download | openttd-c3ca57c42be1416d93738546acd2ad746ad02de6.tar.xz |
(svn r24318) -Feature: Add dropdowns to NewGRF configurations, if all values have labels.
Diffstat (limited to 'src/newgrf_config.h')
-rw-r--r-- | src/newgrf_config.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/newgrf_config.h b/src/newgrf_config.h index c950e698a..52818c8f0 100644 --- a/src/newgrf_config.h +++ b/src/newgrf_config.h @@ -133,9 +133,11 @@ struct GRFParameterInfo { byte first_bit; ///< First bit to use in the GRF parameter byte num_bit; ///< Number of bits to use for this parameter SmallMap<uint32, struct GRFText *, 8> value_names; ///< Names for each value. + bool complete_labels; ///< True if all values have a label. uint32 GetValue(struct GRFConfig *config) const; void SetValue(struct GRFConfig *config, uint32 value); + void Finalize(); }; /** Reference counted wrapper around a GRFText pointer. */ @@ -183,6 +185,7 @@ struct GRFConfig : ZeroedMemoryAllocator { void SetParameterDefaults(); void SetSuitablePalette(); + void FinalizeParameterInfo(); }; /** Method to find GRFs using FindGRFConfig */ |