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

Method initText

src/Interface/Text.cpp:149–156  ·  view source on GitHub ↗

* Changes the various resources needed for text rendering. * The different fonts need to be passed in advance since the * text size can change mid-text, and the language affects * how the text is rendered. * @param big Pointer to large-size font. * @param small Pointer to small-size font. * @param lang Pointer to current language. */

Source from the content-addressed store, hash-verified

147 * @param lang Pointer to current language.
148 */
149void Text::initText(Font *big, Font *small, Language *lang)
150{
151 _big = big;
152 _small = small;
153 _lang = lang;
154 _font = _small;
155 processText();
156}
157
158/**
159 * Changes the string displayed on screen.

Callers 6

addMethod · 0.45
StartStateMethod · 0.45
OptionsAdvancedStateMethod · 0.45
OptionsModsStateMethod · 0.45
GeoscapeStateMethod · 0.45
drawDetailMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected