Rev 7757 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7757 | Rev 7758 | ||
---|---|---|---|
Line 52... | Line 52... | ||
52 | dword LinksArray::GetURL(int id) |
52 | dword LinksArray::GetURL(int id) |
53 | { |
53 | { |
54 | return links[id].link; |
54 | return links[id].link; |
55 | } |
55 | } |
Line -... | Line 56... | ||
- | 56 | ||
56 | 57 | bool open_new_window=false; |
|
57 | void LinksArray::Clear() |
58 | void LinksArray::Clear() |
58 | { |
59 | { |
59 | page_links.drop(); |
60 | page_links.drop(); |
60 | page_links.realloc_size = 4096 * 32; |
61 | page_links.realloc_size = 4096 * 32; |
61 | count = 0; |
62 | count = 0; |
62 | active = -1; |
63 | active = -1; |
63 | unic_count = 0; |
64 | unic_count = 0; |
- | 65 | CursorPointer.Restore(); |
|
64 | CursorPointer.Restore(); |
66 | open_new_window = false; |
Line 65... | Line 67... | ||
65 | } |
67 | } |
66 | 68 | ||
67 | void LinksArray::DrawUnderline(dword und_id, list_first, list_y, color) |
69 | void LinksArray::DrawUnderline(dword und_id, list_first, list_y, color) |
Line 73... | Line 75... | ||
73 | DrawBar(links[i].x, links[i].y + links[i].h - list_first, links[i].w, links[i].underline_h, color); |
75 | DrawBar(links[i].x, links[i].y + links[i].h - list_first, links[i].w, links[i].underline_h, color); |
74 | } |
76 | } |
75 | } |
77 | } |
76 | } |
78 | } |
Line 77... | Line 79... | ||
77 | 79 | ||
Line 78... | Line 80... | ||
78 | PathShow_data status_text = {0, 17,250, 6, 250, 0, 0, 0x0, 0xFFFfff, 0, NULL, 0}; |
80 | PathShow_data status_text = {0, 17,250, 6, 250}; |
79 | 81 | ||
80 | bool LinksArray::HoverAndProceed(dword mx, my, list_y, list_first) |
82 | bool LinksArray::HoverAndProceed(dword mx, my, list_y, list_first) |
81 | { |
83 | { |
Line 91... | Line 93... | ||
91 | DrawRectangle(links[active].x, -list_first + links[active].y, |
93 | DrawRectangle(links[active].x, -list_first + links[active].y, |
92 | links[active].w, links[active].h, 0); |
94 | links[active].w, links[active].h, 0); |
93 | return false; |
95 | return false; |
94 | } |
96 | } |
95 | if (mouse.mkm) && (mouse.up) { |
97 | if (mouse.mkm) && (mouse.up) { |
- | 98 | open_new_window = true; |
|
96 | RunProgram(#program_path, PageLinks.GetURL(PageLinks.active)); |
99 | EventClickLink(PageLinks.GetURL(PageLinks.active)); |
- | 100 | open_new_window = false; |
|
97 | return false; |
101 | return false; |
98 | } |
102 | } |
99 | if (mouse.lkm) && (mouse.up) { |
103 | if (mouse.lkm) && (mouse.up) { |
100 | CursorPointer.Restore(); |
104 | CursorPointer.Restore(); |
101 | EventClickLink(PageLinks.GetURL(PageLinks.active)); |
105 | EventClickLink(PageLinks.GetURL(PageLinks.active)); |