MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / redrawText

Method redrawText

src/Engine/State.cpp:317–330  ·  view source on GitHub ↗

* redraw all the text-type surfaces. */

Source from the content-addressed store, hash-verified

315 * redraw all the text-type surfaces.
316 */
317void State::redrawText()
318{
319 for (std::vector<Surface*>::iterator i = _surfaces.begin(); i != _surfaces.end(); ++i)
320 {
321 Text* text = dynamic_cast<Text*>(*i);
322 TextButton* button = dynamic_cast<TextButton*>(*i);
323 TextEdit* edit = dynamic_cast<TextEdit*>(*i);
324 TextList* list = dynamic_cast<TextList*>(*i);
325 if (text || button || edit || list)
326 {
327 (*i)->draw();
328 }
329 }
330}
331
332/**
333 * Changes the current modal surface. If a surface is modal,

Callers 1

runMethod · 0.80

Calls 1

drawMethod · 0.45

Tested by

no test coverage detected