|
Eile Mit Weile
|
Main window of the game client. More...
#include <GameWindow.hpp>
Public Member Functions | |
| GameWindow (const wxString &title, const wxPoint &pos, const wxSize &size) | |
| void | ShowPanel (wxPanel *panel) |
| void | SetStatus (const std::string &message) |
Private Attributes | |
| wxBoxSizer * | _main_layout |
| wxStatusBar * | _status_bar |
| wxPanel * | _current_panel |
Main window of the game client.
This class is derived from wxFrame, which is wxWidgets' main window class. It is the main window of the game client and is responsible for displaying the game. It contains a status bar and a main layout, which can be filled with different panels.
Initializes the game window. pos and size can be given default parameters.
This method sets the status bar text to the given message. We use this to display connection status.
| void GameWindow::ShowPanel | ( | wxPanel * | panel | ) |
This method removes the current panel from the main layout and adds the given panel. It also sets the #_currentpanel to the given panel. This is used to visually update the window.
|
private |
Currently displayed panel.
|
private |
Main layout of the window.
|
private |
Status bar of the window.