Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor|UI|Ring Zero: Incorporate MP games in the game selection menu
Added another subgroup into the Ring Zero game selection menu for multiplayer games. MPSelectionWidget is a menu that populates itself with the found MP servers. Todo: The "Multiplayer Games" dialog should simply be a Games dialog that shows the selection of games.
- Loading branch information
Showing
7 changed files
with
528 additions
and
318 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
/** @file gamesessionwidget.h | ||
* | ||
* @authors Copyright (c) 2014 Jaakko Keränen <jaakko.keranen@iki.fi> | ||
* | ||
* @par License | ||
* GPL: http://www.gnu.org/licenses/gpl.html | ||
* | ||
* <small>This program is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by the | ||
* Free Software Foundation; either version 2 of the License, or (at your | ||
* option) any later version. This program is distributed in the hope that it | ||
* will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty | ||
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General | ||
* Public License for more details. You should have received a copy of the GNU | ||
* General Public License along with this program; if not, see: | ||
* http://www.gnu.org/licenses</small> | ||
*/ | ||
|
||
#ifndef DENG_CLIENT_GAMESESSIONWIDGET_H | ||
#define DENG_CLIENT_GAMESESSIONWIDGET_H | ||
|
||
#include <de/ButtonWidget> | ||
#include <de/DocumentWidget> | ||
|
||
/** | ||
* Widget for representing an item (game session) in the game selection menu. | ||
* | ||
* It has two buttons: one for starting the game and one for configuring it. | ||
*/ | ||
class GameSessionWidget : public de::GuiWidget | ||
{ | ||
public: | ||
GameSessionWidget(); | ||
|
||
de::ButtonWidget &loadButton(); | ||
de::ButtonWidget &infoButton(); | ||
de::DocumentWidget &document(); | ||
|
||
virtual void updateInfoContent(); | ||
|
||
private: | ||
DENG2_PRIVATE(d) | ||
}; | ||
|
||
#endif // DENG_CLIENT_GAMESESSIONWIDGET_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/** @file mpselectionwidget.h | ||
* | ||
* @authors Copyright (c) 2014 Jaakko Keränen <jaakko.keranen@iki.fi> | ||
* | ||
* @par License | ||
* GPL: http://www.gnu.org/licenses/gpl.html | ||
* | ||
* <small>This program is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by the | ||
* Free Software Foundation; either version 2 of the License, or (at your | ||
* option) any later version. This program is distributed in the hope that it | ||
* will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty | ||
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General | ||
* Public License for more details. You should have received a copy of the GNU | ||
* General Public License along with this program; if not, see: | ||
* http://www.gnu.org/licenses</small> | ||
*/ | ||
|
||
#ifndef DENG_CLIENT_MPSELECTIONWIDGET_H | ||
#define DENG_CLIENT_MPSELECTIONWIDGET_H | ||
|
||
#include <de/MenuWidget> | ||
|
||
/** | ||
* Menu that populates itself with available multiplayer games. | ||
* | ||
* @ingroup ui | ||
*/ | ||
class MPSelectionWidget : public de::MenuWidget | ||
{ | ||
public: | ||
MPSelectionWidget(); | ||
|
||
private: | ||
DENG2_PRIVATE(d) | ||
}; | ||
|
||
#endif // DENG_CLIENT_MPSELECTIONWIDGET_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.