Rev 7773 | Rev 7778 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7773 | Rev 7774 | ||
---|---|---|---|
Line 18... | Line 18... | ||
18 | int max_name_len; |
18 | int max_name_len; |
19 | int max_hotkey_len; |
19 | int max_hotkey_len; |
Line 20... | Line 20... | ||
20 | 20 | ||
Line -... | Line 21... | ||
- | 21 | int selected = 0; |
|
- | 22 | ||
21 | int selected = 0; |
23 | char shared_name[] = "LMENU"; |
22 | 24 | ||
23 | dword cur_param = #param; |
25 | dword cur_param = #param; |
24 | int GetNextParam() |
26 | int GetNextParam() |
25 | { |
27 | { |
Line 31... | Line 33... | ||
31 | return result; |
33 | return result; |
32 | } |
34 | } |
Line 33... | Line 35... | ||
33 | 35 | ||
34 | void GetWindowPosition() |
36 | void GetWindowPosition() |
35 | { |
37 | { |
36 | int position; |
38 | int position, rez; |
37 | shared_mem = GetNextParam(); |
- | |
38 | debugval("shared_mem", ESDWORD[shared_mem]); |
39 | shared_mem = memopen(#shared_name, 4, SHM_WRITE); |
39 | win_x = GetNextParam(); |
40 | win_x = GetNextParam(); |
40 | win_y = GetNextParam(); |
41 | win_y = GetNextParam(); |
41 | selected = GetNextParam(); |
42 | selected = GetNextParam(); |
42 | position = GetNextParam(); |
43 | position = GetNextParam(); |
Line 167... | Line 168... | ||
167 | if (selected) WriteText(5, selected*ITEM_H + menu1.y + menu1.text_y, 0x80, 0xEE0000, "\x10"); |
168 | if (selected) WriteText(5, selected*ITEM_H + menu1.y + menu1.text_y, 0x80, 0xEE0000, "\x10"); |
168 | } |
169 | } |
Line 169... | Line 170... | ||
169 | 170 | ||
170 | void click() |
171 | void click() |
171 | { |
172 | { |
172 | ESDWORD[shared_mem] = menu1.cur_y + 1; |
173 | ESBYTE[shared_mem] = byte menu1.cur_y + 1; |
173 | ExitProcess(); |
174 | ExitProcess(); |
Line 174... | Line 175... | ||
174 | } |
175 | } |
175 | 176 | ||
176 | void exit() |
177 | void exit() |
177 | { |
178 | { |
178 | ESDWORD[shared_mem] = 0; |
179 | ESBYTE[shared_mem] = 0; |