Public Member Functions | |
NetworkJoinStatusWindow (const WindowDesc *desc) | |
virtual void | DrawWidget (const Rect &r, int widget) const |
Draw the contents of a nested widget. | |
virtual void | UpdateWidgetSize (int widget, Dimension *size, const Dimension &padding, Dimension *fill, Dimension *resize) |
Update size and resize step of a widget in the window. | |
virtual void | OnClick (Point pt, int widget, int click_count) |
A click with the left mouse button has been made on the window. | |
virtual void | OnQueryTextFinished (char *str) |
The query window opened from this window has closed. | |
Data Fields | |
NetworkPasswordType | password_type |
Definition at line 2004 of file network_gui.cpp.
virtual void NetworkJoinStatusWindow::DrawWidget | ( | const Rect & | r, | |
int | widget | |||
) | const [inline, virtual] |
Draw the contents of a nested widget.
r | Rectangle occupied by the widget. | |
widget | Number of the widget to draw. |
Reimplemented from Window.
Definition at line 2013 of file network_gui.cpp.
References DrawFrameRect(), DrawString(), FONT_HEIGHT_NORMAL, SA_HOR_CENTER, SetDParam(), and WID_NJS_BACKGROUND.
virtual void NetworkJoinStatusWindow::OnClick | ( | Point | pt, | |
int | widget, | |||
int | click_count | |||
) | [inline, virtual] |
A click with the left mouse button has been made on the window.
pt | the point inside the window that has been clicked. | |
widget | the clicked widget. | |
click_count | Number of fast consecutive clicks at same position |
Reimplemented from Window.
Definition at line 2072 of file network_gui.cpp.
References NetworkDisconnect(), SM_MENU, and WID_NJS_CANCELOK.
virtual void NetworkJoinStatusWindow::OnQueryTextFinished | ( | char * | str | ) | [inline, virtual] |
The query window opened from this window has closed.
str | the new value of the string, NULL if the window was cancelled or an empty string when the default button was pressed, i.e. StrEmpty(str). |
Reimplemented from Window.
Definition at line 2081 of file network_gui.cpp.
References NETWORK_COMPANY_PASSWORD, NETWORK_GAME_PASSWORD, NetworkDisconnect(), ClientNetworkGameSocketHandler::SendCompanyPassword(), ClientNetworkGameSocketHandler::SendGamePassword(), and StrEmpty().
virtual void NetworkJoinStatusWindow::UpdateWidgetSize | ( | int | widget, | |
Dimension * | size, | |||
const Dimension & | padding, | |||
Dimension * | fill, | |||
Dimension * | resize | |||
) | [inline, virtual] |
Update size and resize step of a widget in the window.
After retrieval of the minimal size and the resize-steps of a widget, this function is called to allow further refinement, typically by computing the real maximal size of the content. Afterwards, size is taken to be the minimal size of the widget and resize is taken to contain the resize steps. For the convenience of the callee, padding contains the amount of padding between the content and the edge of the widget. This should be added to the returned size.
widget | Widget number. | |
size | Size of the widget. | |
padding | Recommended amount of space between the widget content and the widget edge. | |
fill | Fill step of the widget. | |
resize | Resize step of the widget. |
Reimplemented from Window.
Definition at line 2046 of file network_gui.cpp.
References GetStringBoundingBox(), max(), MAX_CLIENTS, SetDParam(), WD_FRAMERECT_BOTTOM, WD_FRAMERECT_LEFT, WID_NJS_BACKGROUND, and Window::width.