Rev 7614 | Rev 7906 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
7225 | leency | 1 | |
2 | #define TAB_HEIGHT 28 |
||
3 | |||
4 | |||
5 | { |
||
6 | int active_tab; |
||
7614 | leency | 7 | int x,y,w,h; |
7225 | leency | 8 | void draw_button(); |
9 | int click(); |
||
10 | void draw_wrapper(); |
||
11 | }; |
||
12 | |||
13 | |||
14 | { |
||
15 | DrawRectangle(x,y+TAB_HEIGHT,w-1,h-TAB_HEIGHT, sc.work_graph); |
||
7806 | leency | 16 | DrawRectangle(x+1,y+1+TAB_HEIGHT,w-3,h-2-TAB_HEIGHT, sc.work_light); |
17 | } |
||
7225 | leency | 18 | |
19 | |||
7226 | leency | 20 | { |
7225 | leency | 21 | dword col_bg, col_text; |
22 | dword ww=strlen(text)*8, hh=TAB_HEIGHT; |
||
23 | |||
24 | |||
25 | { |
||
26 | col_bg=0xE44C9C; |
||
27 | col_text=sc.work_text; |
||
7806 | leency | 28 | } |
7225 | leency | 29 | else |
30 | { |
||
31 | col_bg=0xC3A1B7; |
||
32 | col_text= MixColors(sc.work, sc.work_text, 120); |
||
7806 | leency | 33 | } |
7225 | leency | 34 | DefineHiddenButton(xx-2,y, ww-1+4,hh-1, but_id); |
7614 | leency | 35 | WriteText(xx, y+6, 0x90, col_text, text); |
7226 | leency | 36 | DrawBar(xx, y+hh-3, ww, 3, col_bg); |
37 | //DrawStandartCaptButton(xx, y, but_id, text); //GetFreeButtonId() |
||
7614 | leency | 38 | } |
7225 | leency | 39 | |
40 | |||
41 | { |
||
42 | if (N==active_tab) return false; |
||
43 | active_tab = N; |
||
44 | return true; |
||
45 | } |
||
46 |