Rev 6041 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6041 | Rev 6782 | ||
---|---|---|---|
Line 16... | Line 16... | ||
16 | list.cur_y = -1; |
16 | list.cur_y = -1; |
Line 17... | Line 17... | ||
17 | list.ClearList(); |
17 | list.ClearList(); |
18 | list.count = chrnum(text, '\n')+1; |
18 | list.count = chrnum(text, '\n')+1; |
19 | list.SetSizes(2,2,_menu_width,list.count*19,19); |
19 | list.SetSizes(2,2,_menu_width,list.count*24,24); |
20 | 20 | ||
Line 21... | Line 21... | ||
21 | CreateThread(#_menu_thread,#stak+4092); |
21 | CreateThread(#_menu_thread,#stak+4092); |
22 | } |
22 | } |
Line 23... | Line 23... | ||
23 | 23 | ||
Line 55... | Line 55... | ||
55 | if (N==menu.list.cur_y) bgcol=0xFFFfff; else bgcol=0xE4DFE1; |
55 | if (N==menu.list.cur_y) bgcol=0xFFFfff; else bgcol=0xE4DFE1; |
56 | DrawBar(menu.list.x, N*menu.list.item_h+menu.list.y, menu.list.w-3, menu.list.item_h, bgcol); |
56 | DrawBar(menu.list.x, N*menu.list.item_h+menu.list.y, menu.list.w-3, menu.list.item_h, bgcol); |
57 | } |
57 | } |
58 | WriteTextLines(13, menu.list.item_h-8/2+menu.list.y, 0x80, 0, menu.text, menu.list.item_h); |
58 | WriteTextLines(13, menu.list.item_h-12/2+menu.list.y, 0x90, 0, menu.text, menu.list.item_h); |
59 | if (menu.selected) WriteText(5, menu.selected-1*menu.list.item_h+7, 0x80, 0xEE0000, "\x10"); |
59 | if (menu.selected) WriteText(5, menu.selected-1*menu.list.item_h+11, 0x80, 0xEE0000, "\x10"); |
60 | } |
60 | } |
61 | 61 | ||
62 | void _menu_item_click() |
62 | void _menu_item_click() |
Line 63... | Line 63... | ||
63 | { |
63 | { |
64 | menu.list.cur_y = menu.identifier + menu.list.cur_y; |
64 | menu.list.cur_y = menu.identifier + menu.list.cur_y; |
65 | ExitProcess(); |
65 | ExitProcess(); |