Rev 3110 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3110 | Rev 3114 | ||
---|---|---|---|
Line 55... | Line 55... | ||
55 | { |
55 | { |
56 | DrawRectangle3D(x+1, y+1, w-2, h-2, 0xDDDddd, 0xffffff); |
56 | DrawRectangle3D(x+1, y+1, w-2, h-2, 0xDDDddd, 0xffffff); |
57 | DrawBar(x+2, y+2, w-3, h-3, 0xffffff); |
57 | DrawBar(x+2, y+2, w-3, h-3, 0xffffff); |
58 | } |
58 | } |
59 | }> |
59 | } |
60 | 60 | ||
- | 61 | void DrawProgressBar(dword st_x, st_y, st_w, st_h, col_fon, col_border, col_fill, col_text, progress_percent, status_text) |
|
- | 62 | { |
|
- | 63 | int progress_w = progress_percent * st_w / 100 - 3; |
|
- | 64 | static int fill_old; |
|
- | 65 | ||
- | 66 | if (!progress_percent) {DrawBar(st_x,st_y, st_x + st_y + fill_old + 15,st_h+1, col_fon); return;} |
|
- | 67 | ||
- | 68 | DrawRectangle(st_x, st_y, st_w,st_h, col_border); |
|
- | 69 | DrawRectangle3D(st_x+1, st_y+1, st_w-2,st_h-2, 0xFFFfff, 0xFFFfff); |
|
- | 70 | if (progress_percent) DrawBar(st_x+2, st_y+2, progress_w, st_h-3, col_fill); |
|
- | 71 | if (progress_percent<100) DrawBar(st_x+2+progress_w, st_y+2, st_w-progress_w-3, st_h-3, 0xFFFfff); |
|
- | 72 | ||
- | 73 | if (status_text) |
|
- | 74 | { |
|
- | 75 | DrawBar(st_x+st_w+15, st_h/2-4+st_y, fill_old, 9, col_fon); |
|
- | 76 | WriteText(st_x+st_w+15, st_h/2-4+st_y, 0x80, col_text, status_text); |
|
- | 77 | fill_old = strlen(status_text) * 6; |
|
- | 78 | } |
|
- | 79 | }100)>> |
|
- | 80 | ||
61 | 81 |