Rev 4137 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4137 | Rev 4686 | ||
---|---|---|---|
Line 58... | Line 58... | ||
58 | DrawRectangle3D(x+1, y+1, w-2, h-2, 0xDDDddd, 0xffffff); |
58 | DrawRectangle3D(x+1, y+1, w-2, h-2, 0xDDDddd, 0xffffff); |
59 | DrawBar(x+2, y+2, w-3, h-3, 0xffffff); |
59 | DrawBar(x+2, y+2, w-3, h-3, 0xffffff); |
60 | } |
60 | } |
61 | } |
61 | } |
Line 62... | Line 62... | ||
62 | 62 | ||
63 | :void DrawProgressBar(dword st_x, st_y, st_w, st_h, col_fon, col_border, col_fill, col_text, progress_percent, status_text) |
63 | :void DrawProgressBar(dword st_x, st_y, st_w, st_h, col_fon, col_border, col_fill, col_text, progress_percent) |
64 | { |
64 | { |
65 | int progress_w; |
65 | int progress_w; |
Line 66... | Line 66... | ||
66 | static int fill_old; |
66 | static int fill_old; |
Line 75... | Line 75... | ||
75 | { |
75 | { |
76 | progress_w = st_w - 3 * progress_percent / 100; |
76 | progress_w = st_w - 3 * progress_percent / 100; |
77 | DrawBar(st_x+2, st_y+2, progress_w, st_h-3, col_fill); |
77 | DrawBar(st_x+2, st_y+2, progress_w, st_h-3, col_fill); |
78 | DrawBar(st_x+2+progress_w, st_y+2, st_w-progress_w-3, st_h-3, 0xFFFfff); |
78 | DrawBar(st_x+2+progress_w, st_y+2, st_w-progress_w-3, st_h-3, 0xFFFfff); |
79 | } |
79 | } |
80 | - | ||
81 | if (status_text) |
- | |
82 | { |
- | |
83 | DrawBar(st_x+st_w+15, st_h/2-4+st_y, fill_old, 9, col_fon); |
- | |
84 | WriteText(st_x+st_w+15, st_h/2-4+st_y, 0x80, col_text, status_text); |
- | |
85 | fill_old = strlen(status_text) * 6; |
- | |
86 | } |
- | |
87 | } |
80 | } |
Line 88... | Line 81... | ||
88 | 81 | ||
89 | :void DrawLink(dword x,y,font_type,btn_id, inscription) |
82 | :void DrawLink(dword x,y,font_type,btn_id, inscription) |
90 | { |
83 | { |