mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-10-31 15:20:10 +00:00
(svn r14008) -Fix (r14004): NewGRF preset drop down list not working
This commit is contained in:
parent
3064767d69
commit
1a28c1c4ee
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user