Rev 5709 | Rev 5811 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5709 | Rev 5723 | ||
---|---|---|---|
Line 52... | Line 52... | ||
52 | { |
52 | { |
53 | proc_info MenuForm; |
53 | proc_info MenuForm; |
54 | int index; |
54 | int index; |
Line 55... | Line 55... | ||
55 | 55 | ||
- | 56 | menu.ClearList(); |
|
56 | menu.ClearList(); |
57 | menu.SetFont(6, 9, 0x80); |
57 | menu.SetSizes(0,0,10,0,18); |
58 | menu.SetSizes(0,0,10,0,18); |
58 | for (index=0; file_captions[index]!=0; index+=3) |
59 | for (index=0; file_captions[index]!=0; index+=3) |
59 | { |
60 | { |
60 | if (itdir) && (file_captions[index+2]>=200) continue; |
61 | if (itdir) && (file_captions[index+2]>=200) continue; |
61 | if (strlen(file_captions[index])>menu.w) menu.w = strlen(file_captions[index]); |
62 | if (strlen(file_captions[index])>menu.w) menu.w = strlen(file_captions[index]); |
62 | menu.count++; |
63 | menu.count++; |
63 | menu.visible++; |
64 | menu.visible++; |
64 | } |
65 | } |
65 | menu.w = menu.w + 3 * 6 + 50; |
66 | menu.w = menu.w + 3 * menu.font_w + 50; |
66 | menu.h = menu.count*menu.line_h; |
67 | menu.h = menu.count * menu.line_h; |
67 | SetEventMask(100111b); |
68 | SetEventMask(100111b); |
Line 68... | Line 69... | ||
68 | goto _MENU_DRAW; |
69 | goto _MENU_DRAW; |
Line 108... | Line 109... | ||
108 | DrawBar(2,start_y+2,menu.w-1,menu.line_h,0xFFFfff); |
109 | DrawBar(2,start_y+2,menu.w-1,menu.line_h,0xFFFfff); |
109 | } |
110 | } |
110 | else |
111 | else |
111 | { |
112 | { |
112 | DrawBar(2,start_y+2,menu.w-1,menu.line_h,system.color.work); |
113 | DrawBar(2,start_y+2,menu.w-1,menu.line_h,system.color.work); |
113 | WriteText(8,start_y+menu.text_y+3,0x80,0xf2f2f2,file_captions[index*3]); |
114 | WriteText(8,start_y+menu.text_y+4,menu.font_type,0xf2f2f2,file_captions[index*3]); |
114 | } |
115 | } |
115 | WriteText(7,start_y+menu.text_y+2,0x80,system.color.work_text,file_captions[index*3]); |
116 | WriteText(7, start_y + menu.text_y + 3, menu.font_type, system.color.work_text, file_captions[index*3]); |
116 | WriteText(-strlen(file_captions[index*3+1])*6-6+menu.w,start_y+menu.text_y+2,0x80,0x888888,file_captions[index*3+1]); |
117 | WriteText(-strlen(file_captions[index*3+1])-1*menu.font_w + menu.w, start_y + menu.text_y + 3, menu.font_type, 0x888888, file_captions[index*3+1]); |
117 | start_y+=menu.line_h; |
118 | start_y+=menu.line_h; |
118 | } |
119 | } |
119 | } |
120 | } |
120 | 121 |