MCPcopy Create free account
hub / github.com/REGoth-project/REGoth / drawEntry

Method drawEntry

src/ui/MenuItemListboxEntry.cpp:30–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30void 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
42std::string MenuItemTypes::MenuItemListboxEntry::setFontHighlighted(bool value)
43{

Callers 1

updateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected