MCPcopy Create free account
hub / github.com/JRickey/BattleShip / AddSidebarEntry

Method AddSidebarEntry

port/gui/PortMenu.cpp:715–720  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

713} // namespace
714
715void PortMenu::AddSidebarEntry(std::string sectionName, std::string sidebarName, uint32_t columnCount) {
716 assert(!sectionName.empty());
717 assert(!sidebarName.empty());
718 menuEntries.at(sectionName).sidebars.emplace(sidebarName, SidebarEntry{ .columnCount = columnCount });
719 menuEntries.at(sectionName).sidebarOrder.push_back(sidebarName);
720}
721
722WidgetInfo& PortMenu::AddWidget(WidgetPath& pathInfo, std::string widgetName, WidgetType widgetType) {
723 assert(!widgetName.empty());

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected