Skip to content

Commit

Permalink
UI|Home: Showing special tags via Mods tab menu
Browse files Browse the repository at this point in the history
The Mods tab menu now has a couple of helpful items for showing the predefined tags, such as recognized game data files (“gamedata”).
  • Loading branch information
skyjake committed Nov 11, 2018
1 parent 61c017b commit 6f768e1
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions doomsday/apps/client/src/ui/home/packagescolumnwidget.cpp
Expand Up @@ -108,10 +108,18 @@ DENG_GUI_PIMPL(PackagesColumnWidget)
self().header().menuButton().setPopup([this] (PopupButtonWidget const &) -> PopupWidget * {
auto *menu = new PopupMenuWidget;
menu->items()
<< new ui::SubwidgetItem(ui::Item::ShownAsButton | ui::Item::ClosesParentPopup,
tr("Settings"), ui::Right, makePopup<DataFileSettingsDialog>)
<< new ui::ActionItem(tr("Install Mods..." _E(l)_E(s)_E(D) " BETA"),
new CallbackAction([this]() { openRepositoryBrowser(); }))
<< new ui::SubwidgetItem(style().images().image("gear"),
ui::Item::ShownAsButton | ui::Item::ClosesParentPopup,
tr("Settings"), ui::Left, makePopup<DataFileSettingsDialog>)
// << new ui::ActionItem(tr("Install Mods..." _E(l)_E(s)_E(D) " BETA"),
// new CallbackAction([this]() { openRepositoryBrowser(); }))
<< new ui::Item(ui::Item::Separator)
<< new ui::ActionItem("Show Recognized IWADs",
new CallbackAction([this]() { packages->searchTermsEditor().setText("gamedata"); }))
<< new ui::ActionItem("Show Box Contents",
new CallbackAction([this]() { packages->searchTermsEditor().setText("hidden"); }))
<< new ui::ActionItem("Show Core Packages",
new CallbackAction([this]() { packages->searchTermsEditor().setText("core"); }))
<< new ui::Item(ui::Item::Separator)
<< new ui::ActionItem(tr("Refresh List"),
new CallbackAction([]() { FS::get().refreshAsync(); }));
Expand Down

0 comments on commit 6f768e1

Please sign in to comment.