| 28 | } |
| 29 | |
| 30 | void MenuItemTypes::MenuItemListboxEntry::drawEntry(int px, int py, EAlign alignment, Render::RenderConfig& config, const std::string& font, bool highlight) |
| 31 | { |
| 32 | // Highlight the selected listbox entry |
| 33 | std::string fontBase; |
| 34 | if (highlight) |
| 35 | fontBase = setFontHighlighted(true); |
| 36 | else |
| 37 | fontBase = setFontHighlighted(false); |
| 38 | |
| 39 | drawText(" " + m_TopicName, px, py, alignment, config, fontBase); |
| 40 | } |
| 41 | |
| 42 | std::string MenuItemTypes::MenuItemListboxEntry::setFontHighlighted(bool value) |
| 43 | { |