2015-12-17 16:48:28 +01:00
|
|
|
void DrawToolbarButton(char image_id, int x)
|
|
|
|
{
|
2018-04-03 14:45:08 +02:00
|
|
|
DefineButton(x+1, 6, TOOLBAR_ICON_WIDTH-2, TOOLBAR_ICON_HEIGHT-2, 10+image_id + BT_HIDE, 0);
|
|
|
|
img_draw stdcall(skin.image, x, 5, TOOLBAR_ICON_WIDTH, TOOLBAR_ICON_HEIGHT, 0, image_id*TOOLBAR_ICON_HEIGHT);
|
2015-12-17 16:48:28 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void DrawScroller()
|
|
|
|
{
|
|
|
|
scroll.max_area = list.count;
|
|
|
|
scroll.cur_area = list.visible;
|
|
|
|
scroll.position = list.first;
|
|
|
|
scroll.all_redraw = 0;
|
|
|
|
scroll.start_x = list.x + list.w;
|
|
|
|
scroll.start_y = list.y;
|
|
|
|
scroll.size_y = list.h;
|
|
|
|
scrollbar_v_draw(#scroll);
|
|
|
|
}
|