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); renderCenteredFancyBox(130, 150, 160, 10, Colors::red30, 0.75f, Colors::white); glColor(Colors::white); drawStringc(400, 170, 30, "CONNECTION INTERRUPTED"); const S32 x1 = 0; const S32 y1 = 0; //glColor(Colors::gray20, 0.75f); //drawRect(x1 - 4, y1 - 5, x1 + 103, y1 + 85, GL_TRIANGLE_FAN); //glColor(Colors::white); //drawRect(x1 - 4, y1 - 5, x1 + 103, y1 + 85, GL_LINE_LOOP); glPushMatrix(); glTranslate(350,190); glScale(2,2); glColor(Colors::black); drawRect(x1 + 1, y1 + 20, x1 + 8, y1 + 30, GL_TRIANGLE_FAN); drawRect(x1 + 11, y1 + 15, x1 + 18, y1 + 30, GL_TRIANGLE_FAN); drawRect(x1 + 21, y1 + 10, x1 + 28, y1 + 30, GL_TRIANGLE_FAN); drawRect(x1 + 31, y1 + 05, x1 + 38, y1 + 30, GL_TRIANGLE_FAN); drawRect(x1 + 41, y1 + 00, x1 + 48, y1 + 30, GL_TRIANGLE_FAN); glColor(Colors::gray40); drawRect(x1 + 1, y1 + 20, x1 + 8, y1 + 30, GL_LINE_LOOP); drawRect(x1 + 11, y1 + 15, x1 + 18, y1 + 30, GL_LINE_LOOP); drawRect(x1 + 21, y1 + 10, x1 + 28, y1 + 30, GL_LINE_LOOP); drawRect(x1 + 31, y1 + 05, x1 + 38, y1 + 30, GL_LINE_LOOP); drawRect(x1 + 41, y1 + 00, x1 + 48, y1 + 30, GL_LINE_LOOP); if((Platform::getRealMilliseconds() & 0x300) != 0) { static const F32 vertices[] = {x1 + 5, y1 - 5, x1 + 45, y1 + 35, x1 + 5, y1 + 35, x1 + 45, y1 - 5 }; glColor(Colors::red); glLineWidth(gDefaultLineWidth * 2.f); renderVertexArray(vertices, 4, GL_LINES); glLineWidth(gDefaultLineWidth); } //glColor(Colors::red30, 0.7); //drawRect(150, 170, 650, 224, GL_TRIANGLE_FAN); //drawRect(150, 170, 650, 224, GL_LINE_LOOP); glPopMatrix(); } }