Rev 4028 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4028 | Rev 4074 | ||
---|---|---|---|
Line 24... | Line 24... | ||
24 | dword col_work = 0xE4DFE1; |
24 | dword col_work = 0xE4DFE1; |
25 | dword col_border = 0x9098B0; |
25 | dword col_border = 0x9098B0; |
Line 26... | Line 26... | ||
26 | 26 | ||
27 | menu.w = 165; |
27 | menu.w = 165; |
- | 28 | menu.line_h = 19; |
|
28 | menu.line_h = 19; |
29 | menu.first = 0; |
29 | while (ITEMS_LIST[menu.count*2]) menu.count++; |
30 | while (ITEMS_LIST[menu.count*2]) {menu.count++; menu.visible++;} |
Line 30... | Line 31... | ||
30 | SetEventMask(100111b); |
31 | SetEventMask(100111b); |
31 | 32 | ||
32 | loop() switch(WaitEvent()) |
33 | loop() switch(WaitEvent()) |
Line 52... | Line 53... | ||
52 | break; |
53 | break; |
Line 53... | Line 54... | ||
53 | 54 | ||
54 | case evKey: |
55 | case evKey: |
55 | key = GetKey(); |
56 | key = GetKey(); |
56 | if (key==27) ExitProcess(); |
- | |
57 | if (key==178) && (menu.current) |
- | |
58 | { |
- | |
59 | menu.current--; |
57 | if (key==27) ExitProcess(); |
60 | goto _ITEMS_DRAW; |
- | |
61 | } |
- | |
62 | if (key==177) && (menu.current+1 |
- | |
63 | { |
- | |
64 | menu.current++; |
- | |
65 | goto _ITEMS_DRAW; |
- | |
66 | } |
58 | if (menu.ProcessKey(key)) goto _ITEMS_DRAW; |
67 | if (key==13) |
59 | if (key==13) |
68 | { |
60 | { |
69 | action_buf = ITEMS_LIST[menu.current*2+1]; |
61 | action_buf = ITEMS_LIST[menu.current*2+1]; |
70 | ExitProcess(); |
62 | ExitProcess(); |