Exemplo n.º 1
0
/*
	changeTextOnly - Once text is added, if we want to subsequently
	change it, we may use this method.
*/
void GameText::changeTextOnly(wstring *textToSet, int index)
{
	TextToDraw *textToChange = textToDraw->at(index);
	wstring *oldText = textToChange->getText();
	delete oldText;
	textToChange->setText(textToSet);
}
Exemplo n.º 2
0
void GameText::addStatsText(wstring *textToAdd, int initX, int initY, int initWidth, int initHeight){
	TextToDraw *text = new TextToDraw();
	text->setText(textToAdd);
	text->x = initX;
	text->y = initY;
	text->width = initWidth;
	text->height = initHeight;
	statsTextToDraw->push_back(text);
}