(svn r11915) -Codechange: Add a function to draw a sort button's up/down arrow. Arrows are now drawn in a consistent position based on the widget, instead of randomly positioned by pixel.

This commit is contained in:
peter1138
2008-01-18 10:36:55 +00:00
parent b7f50533c2
commit 68707808c0
11 changed files with 38 additions and 28 deletions

View File

@@ -581,6 +581,14 @@ static inline void GuiShowTooltips(StringID str)
int GetWidgetFromPos(const Window *w, int x, int y);
void DrawWindowWidgets(const Window *w);
enum SortButtonState {
SBS_OFF,
SBS_DOWN,
SBS_UP,
};
void DrawSortButtonState(const Window *w, int widget, SortButtonState state);
Window *GetCallbackWnd();
void DeleteNonVitalWindows();