diff options
author | frosch <frosch@openttd.org> | 2011-04-10 15:01:14 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2011-04-10 15:01:14 +0000 |
commit | ea1ca5bf1e34bf1a3ddf6e04c3b9435e7ea488fc (patch) | |
tree | fd2b048a12526b2cb2e52450256dfc6abf0a1795 /src/widgets/dropdown_type.h | |
parent | 18f0add50ad1066345ffe79f5e5e0e998b40c40d (diff) | |
download | openttd-ea1ca5bf1e34bf1a3ddf6e04c3b9435e7ea488fc.tar.xz |
(svn r22311) -Add: DropDownListStringItem::NatSortFunc() which can be used as comparator function in DropDownList::sort().
Diffstat (limited to 'src/widgets/dropdown_type.h')
-rw-r--r-- | src/widgets/dropdown_type.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/widgets/dropdown_type.h b/src/widgets/dropdown_type.h index 4981cbee7..6edc5b847 100644 --- a/src/widgets/dropdown_type.h +++ b/src/widgets/dropdown_type.h @@ -49,6 +49,8 @@ public: virtual uint Width() const; virtual void Draw(int left, int right, int top, int bottom, bool sel, int bg_colour) const; virtual StringID String() const { return this->string; } + + static bool NatSortFunc(const DropDownListItem *first, const DropDownListItem *second); }; /** |