| 215 | } |
| 216 | |
| 217 | inline bool IsSlotItem(IMenuPanel *display, |
| 218 | unsigned int style) |
| 219 | { |
| 220 | if (!display->CanDrawItem(style)) |
| 221 | { |
| 222 | return false; |
| 223 | } |
| 224 | if ((style & ITEMDRAW_IGNORE) == ITEMDRAW_IGNORE) |
| 225 | { |
| 226 | return false; |
| 227 | } |
| 228 | if (style & ITEMDRAW_RAWLINE) |
| 229 | { |
| 230 | return false; |
| 231 | } |
| 232 | |
| 233 | return true; |
| 234 | } |
| 235 | |
| 236 | IMenuPanel *MenuManager::RenderMenu(int client, menu_states_t &md, ItemOrder order) |
| 237 | { |