Rev 8868 | Rev 8927 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 8868 | Rev 8895 | ||
---|---|---|---|
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 -... | Line 65... | ||
- | 65 | void DrawFuncButton(dword x,y,width,id,text) |
|
- | 66 | { |
|
- | 67 | #define FW 17 |
|
- | 68 | #define FH 16 |
|
- | 69 | if (skin_is_dark()) { |
|
- | 70 | DrawFlatButtonSmall(x,y,width,FH,id,text); |
|
- | 71 | return; |
|
- | 72 | } |
|
- | 73 | 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 | PutPixel(x+width-1, y+1, sc.work_dark); |
|
- | 76 | DrawBar(x+2, y+2, FW, FH-3, 0x6060FF); |
|
- | 77 | DrawBar(x+2+FW, y+2, width-3-FW, FH-3, 0x00AA00); |
|
- | 78 | 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); |
|
- | 80 | $sub ebx, 1 <<16 + 1 |
|
- | 81 | $add ecx, 0xFFFfff-0x444444 |
|
- | 82 | $int 64 |
|
- | 83 | } |
|
- | 84 | ||
65 | void DrawFilledBar(dword x, y, w, h) |
85 | void DrawFilledBar(dword x, y, w, h) |
66 | { int i; for (i=0; i |
86 | { int i; for (i=0; i |
Line 67... | Line -... | ||
67 | - | ||
68 | int popin_w=260; |
87 | |
69 | void DrawEolitePopup(dword b1_text, b2_text) |
88 | void DrawEolitePopup(dword b1_text, b2_text) |
- | 89 | { |
|
70 | { |
90 | #define POPIN_W 260 |
71 | int popin_x = files.w - popin_w / 2 + files.x ; |
91 | int popin_x = files.w - POPIN_W / 2 + files.x ; |
72 | DrawPopup(popin_x, 160, popin_w, 95, 1, sc.work, sc.work_graph); |
92 | DrawPopup(popin_x, 160, POPIN_W, 95, 1, sc.work, sc.work_graph); |
73 | DrawCaptButton(popin_x+23+000, 215, 100, 26, POPUP_BTN1, sc.button, sc.button_text, b1_text); |
93 | DrawCaptButton(popin_x+23+000, 215, 100, 26, POPUP_BTN1, sc.button, sc.button_text, b1_text); |
74 | DrawCaptButton(popin_x+23+114, 215, 100, 26, POPUP_BTN2, sc.button, sc.button_text, b2_text); |
94 | DrawCaptButton(popin_x+23+114, 215, 100, 26, POPUP_BTN2, sc.button, sc.button_text, b2_text); |
Line 75... | Line 95... | ||
75 | } |
95 | } |