(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:
@@ -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();
|
||||
|
Reference in New Issue
Block a user