MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / createDemoTab

Method createDemoTab

source/ui/controls/installView.cpp:39–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39void InstallView::createDemoTab() {
40 std::shared_ptr<ImGuiLayout> model = std::make_shared<ImGuiLayout>();
41 std::shared_ptr<LayoutSection> section = model->addSection(Msg::NONE);
42
43 BString name;
44 if (GlobalSettings::hasIconsFont()) {
45 name += INSTALL_DEMO_ICON;
46 name += " ";
47 }
48 name += getTranslation(Msg::INSTALLVIEW_DEMO_TITLE);
49
50 addTab(name, name, model, [this](bool buttonPressed, BaseViewTab& tab) {
51 runApps(GlobalSettings::getDemos());
52 });
53}
54
55void InstallView::runApps(std::vector<AppFilePtr>& apps) {
56 ImGui::PushFont(GlobalSettings::largeFont);

Callers

nothing calls this directly

Calls 3

getTranslationFunction · 0.85
runAppsFunction · 0.85
addSectionMethod · 0.80

Tested by

no test coverage detected