Rev 7481 | Rev 7490 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7481 | Rev 7484 | ||
---|---|---|---|
Line 54... | Line 54... | ||
54 | rbmenu.ClearList(); |
54 | rbmenu.ClearList(); |
55 | rbmenu.SetFont(6, 9, 0x80); |
55 | rbmenu.SetFont(6, 9, 0x80); |
56 | rbmenu.SetSizes(0,0,10,0,18); |
56 | rbmenu.SetSizes(0,0,10,0,18); |
57 | for (index=0; file_captions[index]!=0; index+=3) |
57 | for (index=0; file_captions[index]!=0; index+=3) |
58 | { |
58 | { |
- | 59 | if (selected_count > 0) { |
|
- | 60 | //if there are files selected then show only specific menu items |
|
59 | if (itdir) && (file_captions[index+2]>=200) continue; |
61 | if (file_captions[index+2]>=200) continue; |
60 | if (selected_count > 0) && (file_captions[index+2]>=200) continue; |
62 | if (file_captions[index+2]==100) continue; |
- | 63 | } |
|
61 | if (selected_count > 0) && (file_captions[index+2]==100) continue; //do not show "open" for several files |
64 | else if (itdir) && (file_captions[index+2]>=200) continue; |
62 | if (strlen(file_captions[index])>rbmenu.w) rbmenu.w = strlen(file_captions[index]); |
65 | if (strlen(file_captions[index])>rbmenu.w) rbmenu.w = strlen(file_captions[index]); |
63 | rbmenu.count++; |
66 | rbmenu.count++; |
64 | rbmenu.visible++; |
67 | rbmenu.visible++; |
65 | } |
68 | } |
66 | rbmenu.w = rbmenu.w + 3 * rbmenu.font_w + 50; |
69 | rbmenu.w = rbmenu.w + 3 * rbmenu.font_w + 50; |
Line 106... | Line 109... | ||
106 | dword m_col_text; |
109 | dword m_col_text; |
107 | dword m_col_sh_text; |
110 | dword m_col_sh_text; |
Line 108... | Line 111... | ||
108 | 111 | ||
109 | for (index=0; file_captions[index*3]!=0; index++) |
112 | for (index=0; file_captions[index*3]!=0; index++) |
- | 113 | { |
|
110 | { |
114 | if (selected_count > 0) { |
111 | if ((itdir) && (file_captions[index*3+2]>=200)) continue; |
115 | if (file_captions[index*3+2]==100) continue; |
- | 116 | if (file_captions[index*3+2]>=200) continue; |
|
112 | if (selected_count > 0) && (file_captions[index*3+2]==100) continue; |
117 | } |
113 | if (selected_count > 0) && (file_captions[index*3+2]>=200) continue; |
118 | else if ((itdir) && (file_captions[index*3+2]>=200)) continue; |
114 | DrawBar(1,start_y+2,1,rbmenu.item_h,0xFFFfff); |
119 | DrawBar(1,start_y+2,1,rbmenu.item_h,0xFFFfff); |
115 | if (start_y/rbmenu.item_h==rbmenu.cur_y) |
120 | if (start_y/rbmenu.item_h==rbmenu.cur_y) |
116 | { |
121 | { |
117 | cur_action_buf = file_captions[index*3+2]; |
122 | cur_action_buf = file_captions[index*3+2]; |