Skip to content

Commit

Permalink
UI|Home: Join button for multiplayer games
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Feb 12, 2016
1 parent 8298bb6 commit aa33e4e
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions doomsday/apps/client/src/ui/home/multiplayerpanelbuttonwidget.cpp
Expand Up @@ -41,10 +41,11 @@ DENG_GUI_PIMPL(MultiplayerPanelButtonWidget)
Instance(Public *i) : Base(i)
{
joinButton = new ButtonWidget;
joinButton->setText(tr("Join"));
joinButton->useInfoStyle();
joinButton->setImage(style().images().image("play"));
joinButton->setImageColor(style().colors().colorf("inverted.text"));
joinButton->setOverrideImageSize(style().fonts().font("default").height().value());
//joinButton->setImage(style().images().image("play"));
//joinButton->setImageColor(style().colors().colorf("inverted.text"));
//joinButton->setOverrideImageSize(style().fonts().font("default").height().value());
joinButton->setSizePolicy(ui::Expand, ui::Expand);
joinButton->setAction(new CallbackAction([this] () { joinButtonPressed(); }));
self.addButton(joinButton);
Expand Down Expand Up @@ -86,6 +87,12 @@ MultiplayerPanelButtonWidget::MultiplayerPanelButtonWidget()
: d(new Instance(this))
{}

void MultiplayerPanelButtonWidget::setSelected(bool selected)
{
PanelButtonWidget::setSelected(selected);
d->extra->show(selected);
}

void MultiplayerPanelButtonWidget::updateContent(serverinfo_s const &info)
{
d->gameConfig = info.gameConfig;
Expand Down

0 comments on commit aa33e4e

Please sign in to comment.