diff options
author | peter1138 <peter1138@openttd.org> | 2008-08-06 20:12:42 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2008-08-06 20:12:42 +0000 |
commit | 1a28c1c4ee850be7a62d6942a708ca0f0c2eece0 (patch) | |
tree | 247bcfb8d311c3b07a7df1db1f2501c325b9668f /src | |
parent | 3064767d6984dc6ef0d40af372518f4733e276c4 (diff) | |
download | openttd-1a28c1c4ee850be7a62d6942a708ca0f0c2eece0.tar.xz |
(svn r14008) -Fix (r14004): NewGRF preset drop down list not working
Diffstat (limited to 'src')
-rw-r--r-- | src/newgrf_gui.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/newgrf_gui.cpp b/src/newgrf_gui.cpp index 3f41a2820..13332ea6a 100644 --- a/src/newgrf_gui.cpp +++ b/src/newgrf_gui.cpp @@ -269,13 +269,13 @@ public: DropDownListPresetItem(int result) : DropDownListItem(result, false) {} virtual ~DropDownListPresetItem() {} - - virtual StringID String() const + + bool Selectable() const { - return STR_EMPTY; + return true; } - virtual void Draw(int x, int y, uint width, uint height, bool sel) const + void Draw(int x, int y, uint width, uint height, bool sel, int bg_colour) const { DoDrawStringTruncated(_grf_preset_list[this->result], x + 2, y, sel ? TC_WHITE : TC_BLACK, x + width); } |