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
commit1a28c1c4ee850be7a62d6942a708ca0f0c2eece0 (patch)
tree247bcfb8d311c3b07a7df1db1f2501c325b9668f
parent3064767d6984dc6ef0d40af372518f4733e276c4 (diff)
downloadopenttd-1a28c1c4ee850be7a62d6942a708ca0f0c2eece0.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);
}