From 1e5175451a2fe84effe9d844999cb6b618c8aeaa Mon Sep 17 00:00:00 2001 From: peter1138 Date: Wed, 6 Aug 2008 20:12:42 +0000 Subject: (svn r14008) -Fix (r14004): NewGRF preset drop down list not working --- src/newgrf_gui.cpp | 8 ++++---- 1 file 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); } -- cgit v1.2.3-54-g00ecf