MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / selectTab

Method selectTab

source/frontend/StarInventory.cpp:532–543  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

530}
531
532void InventoryPane::selectTab(String const& selected) {
533 for (auto grid : m_itemGrids)
534 grid.second->hide();
535 m_selectedTab = selected;
536 m_itemGrids[m_selectedTab]->show();
537 m_itemGrids[m_selectedTab]->indicateChangedSlots();
538
539 auto tabs = fetchChild<ButtonGroupWidget>("gridModeSelector");
540 for (auto button : tabs->buttons())
541 if (button->data().toString().equalsIgnoreCase(m_tabButtonData[selected]))
542 tabs->select(tabs->id(button));
543}
544
545}

Callers

nothing calls this directly

Calls 9

indicateChangedSlotsMethod · 0.80
buttonsMethod · 0.80
hideMethod · 0.45
showMethod · 0.45
equalsIgnoreCaseMethod · 0.45
toStringMethod · 0.45
dataMethod · 0.45
selectMethod · 0.45
idMethod · 0.45

Tested by

no test coverage detected