Mercurial > hg > openttd
changeset 9863:3db7ce31355e draft
(svn r14008) -Fix (r14004): NewGRF preset drop down list not working
author | peter1138 <peter1138@openttd.org> |
---|---|
date | Wed, 06 Aug 2008 20:12:42 +0000 |
parents | 699b265b904b |
children | 199cb67d074d |
files | src/newgrf_gui.cpp |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/newgrf_gui.cpp +++ b/src/newgrf_gui.cpp @@ -269,13 +269,13 @@ 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); }