Rev 8927 | Rev 8949 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
4042 | leency | 1 | |
8947 | leency | 2 | dword i; |
5532 | leency | 3 | |
4 | |||
7637 | leency | 5 | dword sc_y = files.y; |
6 | dword sc_h = files.h - 16; |
||
7 | dword sc_slider_y; |
||
8 | dword sc_center; |
||
9 | |||
5532 | leency | 10 | |
4042 | leency | 11 | { |
12 | sc_slider_y = sc_y - 1; |
||
8764 | leency | 13 | sc_slider_h = sc_h + 1; |
14 | } |
||
4042 | leency | 15 | else |
16 | { |
||
17 | sc_slider_y = files.first * sc_h / files.count + sc_y - 1; |
||
8764 | leency | 18 | sc_slider_h = sc_h * files.visible - files.visible / files.count + 2; |
19 | if (sc_slider_h < 20) sc_slider_h = 20; //minimal scroll height |
||
20 | if (sc_slider_h > sc_h-sc_slider_y+56) || (files.first+files.visible>=files.count) sc_slider_y= sc_y + sc_h - sc_slider_h; //для большого списка |
||
21 | } |
||
4042 | leency | 22 | //slider |
5532 | leency | 23 | DrawRectangle(sc_x,sc_slider_y,16,sc_slider_h,sc.work_graph); |
7806 | leency | 24 | DrawRectangle3D(sc_x+1,sc_slider_y+1,14,sc_slider_h-2, sc.work_light , sc.work_dark); |
25 | for (i=0; i<13; i++) { |
||
8947 | leency | 26 | if (!_scroll_used) EDX = col.work_gradient[13-i]; else EDX = col.work_gradient[i]; |
27 | DrawBar(sc_x + 2 + i, sc_slider_y+2, 1, sc_slider_h-3, EDX); |
||
28 | } |
||
29 | |||
7637 | leency | 30 | |
31 | |||
32 | |||
7806 | leency | 33 | DrawBar(sc_x+4+1, sc_center-2, 8, 1, sc.work_light); |
34 | |||
7637 | leency | 35 | |
7806 | leency | 36 | DrawBar(sc_x+3+1, sc_center+1, 10, 1, sc.work_light); |
37 | |||
7637 | leency | 38 | |
7806 | leency | 39 | DrawBar(sc_x+4+1, sc_center+4, 8, 1, sc.work_light); |
40 | |||
7637 | leency | 41 | |
5532 | leency | 42 | if (sc_slider_y > sc_y + 1) |
43 | { |
||
44 | DrawBar(sc_x+1, sc_y, 15, 1, col.slider_bg_left); |
||
7634 | leency | 45 | DrawBar(sc_x+1, sc_y+1, 1, sc_slider_y-sc_y-1, col.slider_bg_left); |
46 | DrawBar(sc_x+2, sc_y+1, 14, sc_slider_y-sc_y-1, col.slider_bg_big); |
||
47 | } |
||
5532 | leency | 48 | //area after slider |
49 | if (sc_h-sc_slider_h+sc_y-2>sc_slider_y) |
||
5703 | leency | 50 | { |
5532 | leency | 51 | DrawBar(sc_x+1, sc_slider_y + sc_slider_h+1, 15, 1, col.slider_bg_left); |
7634 | leency | 52 | DrawBar(sc_x+1, sc_slider_y + sc_slider_h+2, 1, sc_h-sc_slider_h-sc_slider_y+sc_y-2, col.slider_bg_left); |
53 | DrawBar(sc_x+2, sc_slider_y + sc_slider_h+2, 14, sc_h-sc_slider_h-sc_slider_y+sc_y-2, col.slider_bg_big); |
||
54 | } |
||
5532 | leency | 55 | } |
4042 | leency | 56 | |
57 | |||
6678 | leency | 58 | { |
4042 | leency | 59 | DrawRectangle(x,y,width,height,sc.work_graph); |
7806 | leency | 60 | DrawRectangle3D(x+1,y+1,width-2,height-2, sc.work_light, sc.work_dark); |
61 | PutPixel(x+width-1, y+1, sc.work_dark); |
||
62 | DrawFilledBar(x+2, y+2, width-3, height-3); |
||
6050 | leency | 63 | if (id) DefineHiddenButton(x+1,y+1,width-2,height-2,id); |
7462 | leency | 64 | WriteText(-strlen(text)*6+width/2+x+1,height/2+y-3,0x80,sc.work_text,text); |
7806 | leency | 65 | } |
4042 | leency | 66 | |
67 | |||
8927 | leency | 68 | { |
8895 | leency | 69 | #define FW 12 |
8927 | leency | 70 | #define FH 16 |
8895 | leency | 71 | int numw = calc(number/10)*6+FW; |
8927 | leency | 72 | if (skin_is_dark()) { |
8895 | leency | 73 | DrawFlatButtonSmall(x,y,width,FH,id,text); |
74 | return; |
||
75 | } |
||
76 | DrawRectangle(x,y,width,FH,sc.work_graph); |
||
77 | DrawRectangle3D(x+1,y+1,width-2,FH-2, 0x97D194, 0x00A100); |
||
8927 | leency | 78 | PutPixel(x+width-1, y+1, sc.work_dark); |
8895 | leency | 79 | DrawBar(x+2, y+2, numw, FH-2, 0x6060FF); |
8927 | leency | 80 | WriteText(x+6,FH/2+y-2,0x80,0x444444,itoa(number)); |
81 | $sub ebx, 1 <<16 + 1 |
||
82 | $add ecx, 0xFFFfff-0x444444 |
||
83 | $int 64 |
||
84 | DrawBar(x+2+numw, y+2, width-3-numw, FH-3, 0x00AA00); |
||
85 | DefineHiddenButton(x+1,y+1,width-2,FH-2,id); |
||
8895 | leency | 86 | WriteText(-strlen(text)*6+width/2+x+8,FH/2+y-2,0x80,0x444444,text); |
8927 | leency | 87 | $sub ebx, 1 <<16 + 1 |
8895 | leency | 88 | $add ecx, 0xFFFfff-0x444444 |
89 | $int 64 |
||
90 | } |
||
91 | |||
92 | |||
4042 | leency | 93 | { int i; for (i=0; i |
7804 | leency | 94 | |
4225 | punk_joker | 95 | |
6008 | leency | 96 | { |
4225 | punk_joker | 97 | #define POPIN_W 260 |
8895 | leency | 98 | int popin_x = files.w - POPIN_W / 2 + files.x ; |
99 | DrawPopup(popin_x, 160, POPIN_W, 95, 1, sc.work, sc.work_graph); |
||
100 | DrawCaptButton(popin_x+23+000, 215, 100, 26, POPUP_BTN1, sc.button, sc.button_text, b1_text); |
||
8764 | leency | 101 | DrawCaptButton(popin_x+23+114, 215, 100, 26, POPUP_BTN2, sc.button, sc.button_text, b2_text); |
102 | } |
||
7462 | leency | 103 | |
104 | |||
105 | dword col_pxl = MixColors(sc.work_graph, sc.work, 60); |
||
7806 | leency | 106 | DrawBar(x+1,y,2,4,sc.work_graph); |
107 | DrawBar(x,y+1,4,2,sc.work_graph); |
||
108 | PutPixel(x,y,col_pxl); |
||
7462 | leency | 109 | PutPixel(x+3,y,col_pxl); |
110 | PutPixel(x,y+3,col_pxl); |
||
111 | PutPixel(x+3,y+3,col_pxl); |
||
112 | }16><16>16><16>13;>>=0) |
||
7491 | leency | 113 | > |