int offset = 0;
if (consoleselected >= 60)
offset = consoleselected - 60;
- text->glPrint(10, 30, " ]", 0, 1, 1024, 768);
+ textmono->glPrint(10, 30, " ]", 0, 1, 1024, 768);
if (consoleblink) {
- text->glPrint(30 + (float)(consoleselected) * 10 - offset * 10, 30, "_", 0, 1, 1024, 768);
+ textmono->glPrint(30 + (float)(consoleselected) * 10 - offset * 10, 30, "_", 0, 1, 1024, 768);
}
for (unsigned i = 0; i < 15; i++) {
- text->glPrint(30 - offset * 10, 30 + i * 20, consoletext[i], 0, 1, 1024, 768);
+ textmono->glPrint(30 - offset * 10, 30 + i * 20, consoletext[i], 0, 1, 1024, 768);
}
}
}
void Game::newGame()
{
text = new Text();
+ textmono = new Text();
skybox = new SkyBox();
}
void Game::deleteGame()
{
- if (skybox)
- delete skybox;
- if (text)
- delete text;
+ delete skybox;
+ delete text;
+ delete textmono;
glDeleteTextures(1, &screentexture);
glDeleteTextures(1, &screentexture2);
texdetail = 1;
text->LoadFontTexture("Textures/Font.png");
text->BuildFont();
+ textmono->LoadFontTexture("Textures/FontMono.png");
+ textmono->BuildFont();
texdetail = temptexdetail;
FadeLoadingScreen(10);
texdetail = 1;
text->LoadFontTexture("Textures/Font.png");
text->BuildFont();
+ textmono->LoadFontTexture("Textures/FontMono.png");
+ textmono->BuildFont();
texdetail = temptexdetail;
viewdistdetail = 2;