Rev 8365 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 8365 | Rev 9602 | ||
---|---|---|---|
Line 21... | Line 21... | ||
21 | } |
21 | } |
22 | 22 | ||
Line 23... | Line 23... | ||
23 | :void sensor::draw_wrapper() |
23 | :void sensor::draw_wrapper() |
24 | { |
24 | { |
25 | DrawRectangle(x-1, y-1, w+1, h+1, sc.work_graph); |
25 | DrawRectangle(x-1, y-1, w+1, h+1, sc.line); |
26 | DrawRectangle3D(x-2, y-2, w+3, h+3, sc.work, sc.work_light); |
26 | DrawRectangle3D(x-2, y-2, w+3, h+3, sc.work, sc.light); |
27 | } |
27 | } |
Line 28... | Line 28... | ||
28 | 28 | ||
29 | :void sensor::draw_progress(dword progress_w) |
29 | :void sensor::draw_progress(dword progress_w) |
30 | { |
30 | { |
31 | char textp[16]; |
31 | char textp[16]; |
32 | DrawBar(x, y, w-progress_w, 1, MixColors(PROGRESS_ACTIVE, PROGRESS_BG, 200)); |
32 | DrawBar(x, y, w-progress_w, 1, MixColors(PROGRESS_ACTIVE, PROGRESS_BG, 200)); |
33 | DrawBar(x, y+1, w-progress_w, h-2, PROGRESS_ACTIVE); |
33 | DrawBar(x, y+1, w-progress_w, h-2, PROGRESS_ACTIVE); |
34 | DrawBar(x, y+h-1, w-progress_w, 1, MixColors(PROGRESS_ACTIVE, sc.work_graph, 200)); |
34 | DrawBar(x, y+h-1, w-progress_w, 1, MixColors(PROGRESS_ACTIVE, sc.line, 200)); |
Line 35... | Line 35... | ||
35 | DrawBar(x+w-progress_w, y, progress_w, h, PROGRESS_BG); |
35 | DrawBar(x+w-progress_w, y, progress_w, h, PROGRESS_BG); |
36 | 36 | ||
37 | strcpy(#textp, itoa(w-progress_w*100/w)); |
37 | strcpy(#textp, itoa(w-progress_w*100/w)); |