Rev 8895 | Rev 8947 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 8895 | Rev 8927 | ||
---|---|---|---|
Line 61... | Line 61... | ||
61 | if (id) DefineHiddenButton(x+1,y+1,width-2,height-2,id); |
61 | if (id) DefineHiddenButton(x+1,y+1,width-2,height-2,id); |
62 | WriteText(-strlen(text)*6+width/2+x+1,height/2+y-3,0x80,sc.work_text,text); |
62 | WriteText(-strlen(text)*6+width/2+x+1,height/2+y-3,0x80,sc.work_text,text); |
63 | } |
63 | } |
64 | 64 | ||
Line 65... | Line 65... | ||
65 | void DrawFuncButton(dword x,y,width,id,text) |
65 | void DrawFuncButton(dword x,y,width,id,number,text) |
66 | { |
66 | { |
67 | #define FW 17 |
67 | #define FW 12 |
68 | #define FH 16 |
68 | #define FH 16 |
- | 69 | int numw = calc(number/10)*6+FW; |
|
69 | if (skin_is_dark()) { |
70 | if (skin_is_dark()) { |
70 | DrawFlatButtonSmall(x,y,width,FH,id,text); |
71 | DrawFlatButtonSmall(x,y,width,FH,id,text); |
71 | return; |
72 | return; |
72 | } |
73 | } |
73 | DrawRectangle(x,y,width,FH,sc.work_graph); |
74 | DrawRectangle(x,y,width,FH,sc.work_graph); |
74 | DrawRectangle3D(x+1,y+1,width-2,FH-2, sc.work_light, sc.work_dark); |
75 | DrawRectangle3D(x+1,y+1,width-2,FH-2, 0x97D194, 0x00A100); |
75 | PutPixel(x+width-1, y+1, sc.work_dark); |
76 | PutPixel(x+width-1, y+1, sc.work_dark); |
76 | DrawBar(x+2, y+2, FW, FH-3, 0x6060FF); |
77 | DrawBar(x+2, y+2, numw, FH-2, 0x6060FF); |
- | 78 | WriteText(x+6,FH/2+y-2,0x80,0x444444,itoa(number)); |
|
- | 79 | $sub ebx, 1 <<16 + 1 |
|
- | 80 | $add ecx, 0xFFFfff-0x444444 |
|
- | 81 | $int 64 |
|
77 | DrawBar(x+2+FW, y+2, width-3-FW, FH-3, 0x00AA00); |
82 | DrawBar(x+2+numw, y+2, width-3-numw, FH-3, 0x00AA00); |
78 | DefineHiddenButton(x+1,y+1,width-2,FH-2,id); |
83 | DefineHiddenButton(x+1,y+1,width-2,FH-2,id); |
79 | WriteText(-strlen(text)*6+width/2+x+2,FH/2+y-2,0x80,0x444444,text); |
84 | WriteText(-strlen(text)*6+width/2+x+8,FH/2+y-2,0x80,0x444444,text); |
80 | $sub ebx, 1 <<16 + 1 |
85 | $sub ebx, 1 <<16 + 1 |
81 | $add ecx, 0xFFFfff-0x444444 |
86 | $add ecx, 0xFFFfff-0x444444 |
82 | $int 64 |
87 | $int 64 |
83 | } |
88 | } |