- removed old unused files

- improved CWindow and CTextBox Classes


git-svn-id: https://clonekeenplus.svn.sourceforge.net/svnroot/clonekeenplus/cgenius/trunk@206 4df4b0f3-56ce-47cb-b001-ed939b7d65a6
This commit is contained in:
gerstrong
2009-08-03 13:50:09 +00:00
parent 89dd1e260c
commit 53b822f703
9 changed files with 80 additions and 622 deletions

View File

@@ -186,9 +186,17 @@ void showGameHint(int mpx, int mpy, int episode, int level)
}
}
CWindow *InfoTextWindow = new CWindow(0.2, 0.2, 0.6, 0.6);
InfoTextWindow->addTextBox(0.0f, 0.0f, 1.0f, 0.8f, getstring(strname), true);
InfoTextWindow->addTextBox(0.2f, 0.8f, 1.0f, 0.2f, "Okay!", true);
CTextBox* TextBox;
CWindow *InfoTextWindow = new CWindow(0.2f, 0.2f, 0.6f, 0.6f);
TextBox = new CTextBox(0.2f, 0.2f, 0.6f, 0.6f, getstring(strname), true);
TextBox->setFontDimensions(8.0f/320.0f, 8.0f/200.0f);
InfoTextWindow->addObject(TextBox);
// The Text will be too big, so resize in knowing the height of the first text.
InfoTextWindow->Resize(InfoTextWindow->getWidth(),
( (float)(InfoTextWindow->m_TextBox[0]->getNumberOfTextlines()+2)*8.0f ) / 200.0f );
g_pInput->flushAll();
do