MCPcopy Create free account
hub / github.com/OpenDungeons/OpenDungeons / setText

Method setText

source/render/TextRenderer.cpp:71–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69}
70
71void TextRenderer::setText(const std::string& ID, const std::string& text)
72{
73 Ogre::OverlayElement* textBox = mOverlayMgr->getOverlayElement(ID);
74 // Note: We make ogre handle an UTF8 string
75 if (textBox != nullptr)
76 textBox->setCaption(static_cast<Ogre::UTFString>(Helper::atow(text)));
77}
78
79void TextRenderer::setColor(const std::string& ID, const Ogre::ColourValue& color)
80{

Callers 15

GuiMethod · 0.80
printDebugInfoMethod · 0.80
createStatsWindowMethod · 0.80
updateStatsWindowMethod · 0.80
activateMethod · 0.80
updateFilesListMethod · 0.80
serverButtonPressedMethod · 0.80
updateDescriptionMethod · 0.80
GameEditorModeBaseMethod · 0.80
updateMessagesMethod · 0.80
initConfigMethod · 0.80
onApplySettingsMethod · 0.80

Calls 2

atowFunction · 0.85
setCaptionMethod · 0.80

Tested by

no test coverage detected