Skip to content

Commit

Permalink
add message in lobby browser if no lobby found
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyler-Lentz committed May 2, 2024
1 parent 0c7adf7 commit 93bbd14
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/client/gui/gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,19 @@ void GUI::_layoutLobbyBrowser() {
lobbies_flex->push(std::move(entry));
}

if (client->lobby_finder.getFoundLobbies().empty()) {
lobbies_flex->push(widget::DynText::make(
"No lobbies found...",
this->fonts,
widget::DynText::Options {
.font = font::Font::MENU,
.font_size = font::FontSizePx::SMALL,
.color = font::getRGB(font::FontColor::BLACK),
.scale = 1.0f
}
));
}

this->addWidget(std::move(lobbies_flex));

this->addWidget(widget::TextInput::make(
Expand Down

0 comments on commit 93bbd14

Please sign in to comment.