Add client list overlay (toggleable)

This commit is contained in:
dP
2021-09-29 22:55:14 +03:00
parent c8ac56fda6
commit 2c5f48943c
13 changed files with 255 additions and 1 deletions

View File

@@ -26,6 +26,8 @@
#include "table/sprites.h"
#include "table/control_codes.h"
#include "citymania/cm_client_list_gui.hpp"
#include "safeguards.h"
byte _dirkeys; ///< 1 = left, 2 = up, 4 = right, 8 = down
@@ -94,6 +96,7 @@ void GfxScroll(int left, int top, int width, int height, int xo, int yo)
if (_cursor.visible) UndrawMouseCursor();
if (_networking) NetworkUndrawChatMessage();
if (_networking) citymania::UndrawClientList(left, top, left + width, top + height);
blitter->ScrollBuffer(_screen.dst_ptr, left, top, width, height, xo, yo);
/* This part of the screen is now dirty. */
@@ -1585,6 +1588,7 @@ void RedrawScreenRect(int left, int top, int right, int bottom)
}
if (_networking) NetworkUndrawChatMessage();
if (_networking) citymania::UndrawClientList(left, top, right, bottom);
DrawOverlappedWindowForAll(left, top, right, bottom);