Rev 5612 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5612 | Rev 5674 | ||
---|---|---|---|
Line 4... | Line 4... | ||
4 | 0xDFDCDD,0xE1DDDE,0xE2DEE0,0xE4DFE1,0xE3DFE1,0xE3DFE1,0xE3DFE1,0xE3DFE1,0xE3DFE1}; |
4 | 0xDFDCDD,0xE1DDDE,0xE2DEE0,0xE4DFE1,0xE3DFE1,0xE3DFE1,0xE3DFE1,0xE3DFE1,0xE3DFE1}; |
Line 5... | Line 5... | ||
5 | 5 | ||
6 | void DrawFlatButton(dword x,y,width,height,id,color,text) |
6 | void DrawFlatButton(dword x,y,width,height,id,color,text) |
7 | { |
7 | { |
8 | int fill_h; |
8 | int fill_h; |
9 | DrawRectangle(x,y,width,height,sc.work_graph); |
9 | DrawRectangle(x,y,width,height,system.color.work_graph); |
10 | DrawRectangle3D(x+1,y+1,width-2,height-2,0xFEFEFE,COL_PADDING); |
10 | DrawRectangle3D(x+1,y+1,width-2,height-2,0xFEFEFE,COL_PADDING); |
11 | PutPixel(x+width-1, y+1, COL_PADDING); |
11 | PutPixel(x+width-1, y+1, COL_PADDING); |
12 | if (color!=-1) DrawFilledBar(x+2, y+2, width-3, height-3); |
12 | if (color!=-1) DrawFilledBar(x+2, y+2, width-3, height-3); |
13 | IF (id<>0) DefineButton(x+1,y+1,width-2,height-2,id+BT_HIDE,0xEFEBEF); |
13 | IF (id<>0) DefineButton(x+1,y+1,width-2,height-2,id+BT_HIDE,0xEFEBEF); |
14 | WriteText(-strlen(text)*6+width/2+x+1,height/2-3+y,0x80,sc.work_text,text); |
14 | WriteText(-strlen(text)*6+width/2+x+1,height/2-3+y,0x80,system.color.work_text,text); |
Line 15... | Line 15... | ||
15 | } |
15 | } |
16 | 16 | ||
17 | void DrawFilledBar(dword x, y, w, h) |
17 | void DrawFilledBar(dword x, y, w, h) |