Rev 6198 | Rev 6271 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6198 | Rev 6209 | ||
---|---|---|---|
Line 41... | Line 41... | ||
41 | DrawBar(x,y+h,w,1,color2); |
41 | DrawBar(x,y+h,w,1,color2); |
42 | } |
42 | } |
Line 43... | Line 43... | ||
43 | 43 | ||
44 | :void DrawCaptButton(dword x,y,w,h,id,color_b, color_t,text) |
44 | :void DrawCaptButton(dword x,y,w,h,id,color_b, color_t,text) |
45 | { |
45 | { |
46 | word tx = -strlen(text)*9+w/2+x+1; |
46 | dword tx = -strlen(text)*8+w/2+x; |
- | 47 | dword ty = h/2-7+y; |
|
47 | word ty = h/2-7+y; |
48 | |
48 | if (id>0) DefineButton(x,y,w,h,id,color_b); |
49 | if (id>0) DefineButton(x,y,w,h,id,color_b); |
49 | WriteText(tx+1,ty+1,0x90,MixColors(color_b,0,230),text); |
50 | WriteText(tx+1,ty+1,0x90,MixColors(color_b,0,230),text); |
50 | WriteText(tx,ty,0x90,color_t,text); |
51 | WriteText(tx,ty,0x90,color_t,text); |