1
0
Fork 0

Add compositor text to splash, if enabled

This will be removed post 2020.2 release, so not worrying about
translation of this.
This commit is contained in:
James Turner 2020-04-14 11:13:56 +01:00
parent 2fd0877824
commit 264451246e

View file

@ -206,6 +206,15 @@ void SplashScreen::createNodes()
nullptr, -1.0, osg::Vec4(1.0, 0.0, 0.0, 1.0));
}
#if defined(ENABLE_COMPOSITOR)
auto compositorText = globals->get_locale()->getLocalizedString("compositor-enabled", "sys", "Compositor");
addText(geode, osg::Vec2(0.5f, 0.55f), 0.03,
compositorText,
osgText::Text::CENTER_CENTER,
nullptr, -1.0, osg::Vec4(1.0, 0.0, 0.0, 1.0));
#endif
///////////
geometry = new osg::Geometry;