void GameUserInterface::renderLostConnectionMessage() const { GameConnection *connection = getGame()->getConnectionToServer(); if(connection && connection->lostContact()) { //static string msg = "We have lost contact with the server; You can't play " // "until the connection has been re-established.\n\n" // "Trying to reconnect... [[SPINNER]]"; //renderMessageBox("SERVER CONNECTION PROBLEMS", "", msg, -30); const S32 x1 = 350; const S32 y1 = 390; glColor(Colors::gray40); drawRect(x1 + 01, y1 + 60, x1 + 18, y1 + 80, GL_LINE_LOOP); drawRect(x1 + 21, y1 + 45, x1 + 38, y1 + 80, GL_LINE_LOOP); drawRect(x1 + 41, y1 + 30, x1 + 58, y1 + 80, GL_LINE_LOOP); drawRect(x1 + 61, y1 + 15, x1 + 78, y1 + 80, GL_LINE_LOOP); drawRect(x1 + 81, y1 + 00, x1 + 98, y1 + 80, GL_LINE_LOOP); if((Platform::getRealMilliseconds() & 0x300) != 0) { glColor(Colors::red); glLineWidth(gDefaultLineWidth * 4.f); F32 vertices[] = {x1, y1 - 10, x1 + 100, y1 + 90, x1, y1 + 90, x1 + 100, y1 - 10 }; renderVertexArray(vertices, 4, GL_LINES); glLineWidth(gDefaultLineWidth); } glColor(Colors::white); drawStringc(400, 210, 30, "CONNECTION INTERRUPTED"); } }