Rev 6058 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6058 | Rev 6059 | ||
---|---|---|---|
Line 32... | Line 32... | ||
32 | int _link::hover() |
32 | int _link::hover() |
33 | { |
33 | { |
34 | //char tempp[4096]; |
34 | //char tempp[4096]; |
35 | dword color; |
35 | dword color; |
36 | int i; |
36 | int i; |
37 | active = 0; |
37 | active = -1; |
38 | mouse.x = mouse.x - list.x; |
38 | mouse.x = mouse.x - list.x; |
39 | mouse.y = mouse.y - list.y; |
39 | mouse.y = mouse.y - list.y; |
40 | for (i=0; i |
40 | for (i=0; i |
41 | if(link.y[i]>list.first*list.item_h) && (link.y[i] |
41 | if(link.y[i]>list.first*list.item_h) && (link.y[i] |
42 | // sprintf(#tempp, "mx:%i my:%i x[i]:%i y[i]:%i", mx, my, x[i], y[i]); |
42 | // sprintf(#tempp, "mx:%i my:%i x[i]:%i y[i]:%i", mx, my, x[i], y[i]); |
43 | // sprintf(#tempp); |
43 | // sprintf(#tempp); |
44 | if (mouse.x>link.x[i]) |
44 | if (mouse.x>link.x[i]) |
45 | && (-list.first*list.item_h+link.y[i] |
45 | && (-list.first*list.item_h+link.y[i] |
46 | && (mouse.x |
46 | && (mouse.x |
47 | && (-list.first*list.item_h+link.y[i]+link.h[i]>mouse.y) |
47 | && (-list.first*list.item_h+link.y[i]+link.h[i]>mouse.y) { |
48 | color = 0xFF0000; |
48 | color = 0xFFFfff; |
49 | else |
49 | CursorPointer.Set(); |
50 | color = 0xCCCccc; |
50 | active = i; |
51 | DrawRectangle(link.x[i]+list.x+1, -list.first*list.item_h+link.y[i]+list.y, link.w[i], link.h[i], color); |
- | |
52 | } |
51 | } |
- | 52 | else { |
|
- | 53 | color = 0x0000FF; |
|
53 | } |
54 | } |
- | 55 | DrawBar(link.x[i]+list.x, -list.first*list.item_h+link.y[i]+list.y+link.h[i]-1, link.w[i], 1, color); |
|
- | 56 | } |
|
- | 57 | } |
|
- | 58 | if (active==-1) CursorPointer.Restore(); |
|
54 | return false; |
59 | return false; |
55 | } |
60 | } |
56 | > |
61 | > |