Rev 7634 | Rev 7645 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7634 | Rev 7637 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | void Scroll() { |
1 | void Scroll() { |
2 | dword i; |
2 | dword i; |
Line 3... | Line 3... | ||
3 | 3 | ||
4 | word sc_x = files.x + files.w; |
4 | dword sc_x = files.x + files.w; |
5 | word sc_y = files.y; |
5 | dword sc_y = files.y; |
6 | word sc_h = files.h - 16; |
6 | dword sc_h = files.h - 16; |
- | 7 | dword sc_slider_y; |
|
Line 7... | Line 8... | ||
7 | word sc_slider_y; |
8 | dword sc_center; |
8 | 9 | ||
9 | if (files.count<=0) |
10 | if (files.count<=0) |
10 | { |
11 | { |
Line 22... | Line 23... | ||
22 | DrawRectangle(sc_x,sc_slider_y,16,sc_slider_h,col.graph); |
23 | DrawRectangle(sc_x,sc_slider_y,16,sc_slider_h,col.graph); |
23 | DrawRectangle3D(sc_x+1,sc_slider_y+1,14,sc_slider_h-2, system.color.work_light , system.color.work_dark); |
24 | DrawRectangle3D(sc_x+1,sc_slider_y+1,14,sc_slider_h-2, system.color.work_light , system.color.work_dark); |
24 | if (!scroll_used) for (i=0; i<13; i++) DrawBar(sc_x + 2 + i, sc_slider_y+2, 1, sc_slider_h-3, col.work_gradient[13-i]); |
25 | if (!scroll_used) for (i=0; i<13; i++) DrawBar(sc_x + 2 + i, sc_slider_y+2, 1, sc_slider_h-3, col.work_gradient[13-i]); |
25 | if (scroll_used) for (i=0; i<13; i++) DrawBar(sc_x + 2 + i, sc_slider_y+2, 1, sc_slider_h-3, col.work_gradient[i]); |
26 | if (scroll_used) for (i=0; i<13; i++) DrawBar(sc_x + 2 + i, sc_slider_y+2, 1, sc_slider_h-3, col.work_gradient[i]); |
26 | //area before slider |
27 | |
- | 28 | sc_center = sc_slider_h / 2 + sc_slider_y; |
|
- | 29 | ||
- | 30 | DrawBar(sc_x+4, sc_center-3, 8, 1, col.graph); |
|
- | 31 | DrawBar(sc_x+4+1, sc_center-2, 8, 1, system.color.work_light); |
|
- | 32 | ||
- | 33 | DrawBar(sc_x+3, sc_center, 10, 1, col.graph); |
|
- | 34 | DrawBar(sc_x+3+1, sc_center+1, 10, 1, system.color.work_light); |
|
- | 35 | ||
- | 36 | DrawBar(sc_x+4, sc_center+3, 8, 1, col.graph); |
|
- | 37 | DrawBar(sc_x+4+1, sc_center+4, 8, 1, system.color.work_light); |
|
- | 38 | ||
- | 39 | //area before slider |
|
27 | if (sc_slider_y > sc_y + 1) |
40 | if (sc_slider_y > sc_y + 1) |
28 | { |
41 | { |
29 | DrawBar(sc_x+1, sc_y, 15, 1, col.slider_bg_left); |
42 | DrawBar(sc_x+1, sc_y, 15, 1, col.slider_bg_left); |
30 | DrawBar(sc_x+1, sc_y+1, 1, sc_slider_y-sc_y-1, col.slider_bg_left); |
43 | DrawBar(sc_x+1, sc_y+1, 1, sc_slider_y-sc_y-1, col.slider_bg_left); |
31 | DrawBar(sc_x+2, sc_y+1, 14, sc_slider_y-sc_y-1, col.slider_bg_big); |
44 | DrawBar(sc_x+2, sc_y+1, 14, sc_slider_y-sc_y-1, col.slider_bg_big); |