1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-27 16:39:09 +00:00

(svn r17374) -Codechange: make the town and vehicle GUIs use the scrollbar wrappers

This commit is contained in:
rubidium
2009-09-02 08:48:29 +00:00
parent 7aa9f8e3fb
commit 900aedf270
4 changed files with 41 additions and 81 deletions

View File

@@ -2626,42 +2626,6 @@ int PositionMainToolbar(Window *w)
return w->left;
}
/**
* Set the number of items of the vertical scrollbar.
*
* Function also updates the position of the scrollbar if necessary.
* @param w Window containing the vertical scrollbar
* @param num New number of items
*/
void SetVScrollCount(Window *w, int num)
{
w->vscroll.SetCount(num);
}
/**
* Set the number of items of the second vertical scrollbar.
*
* Function also updates the position of the scrollbar if necessary.
* @param w Window containing the second vertical scrollbar
* @param num New number of items
*/
void SetVScroll2Count(Window *w, int num)
{
w->vscroll2.SetCount(num);
}
/**
* Set the number of items of the horizontal scrollbar.
*
* Function also updates the position of the scrollbar if necessary.
* @param w Window containing the horizontal scrollbar
* @param num New number of items
*/
void SetHScrollCount(Window *w, int num)
{
w->hscroll.SetCount(num);
}
/**
* Switches viewports following vehicles, which get autoreplaced