summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2008-08-06 20:12:42 +0000
committerpeter1138 <peter1138@openttd.org>2008-08-06 20:12:42 +0000
commit1e5175451a2fe84effe9d844999cb6b618c8aeaa (patch)
tree247bcfb8d311c3b07a7df1db1f2501c325b9668f
parentacf224683d1f3d40f74b16b75a904f5719d240c3 (diff)
downloadopenttd-1e5175451a2fe84effe9d844999cb6b618c8aeaa.tar.xz
(svn r14008) -Fix (r14004): NewGRF preset drop down list not working
-rw-r--r--src/newgrf_gui.cpp8
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);
}