MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / PositionNetworkChatWindow

Function PositionNetworkChatWindow

src/window.cpp:3501–3505  ·  view source on GitHub ↗

* (Re)position network chat window at the screen. * @param w Window structure of the network chat window, may also be \c nullptr. * @return X coordinate of left edge of the repositioned network chat window. */

Source from the content-addressed store, hash-verified

3499 * @return X coordinate of left edge of the repositioned network chat window.
3500 */
3501int PositionNetworkChatWindow(Window *w)
3502{
3503 Debug(misc, 5, "Repositioning network chat window...");
3504 return PositionWindow(w, WC_SEND_NETWORK_MSG, _settings_client.gui.statusbar_pos);
3505}
3506
3507
3508/**

Callers 3

RelocateAllWindowsFunction · 0.85
v_PositionStatusbarFunction · 0.85
NetworkChatWindowMethod · 0.85

Calls 1

PositionWindowFunction · 0.85

Tested by

no test coverage detected