更新 'src/Viewer/splash.cxx'

This commit is contained in:
zhongjin 2022-12-04 20:42:58 +08:00
parent aa37834227
commit 76f774e5f3

View File

@ -189,7 +189,7 @@ void SplashScreen::createNodes()
// put this information into the property tree so the defaults or model can pull it in.
fgSetString("/sim/startup/splash-authors", flightgear::getAircraftAuthorsText());
fgSetString("/sim/startup/description", fgGetString("/sim/description"));
fgSetString("/sim/startup/title", "FlightGear "s + fgGetString("/sim/version/flightgear"));
fgSetString("/sim/startup/title", "JingweiHT "s + fgGetString("/sim/version/flightgear"));
if (!strcmp(FG_BUILD_TYPE, "Nightly")) {
fgSetString("sim/build-warning", globals->get_locale()->getLocalizedString("unstable-warning", "sys", "unstable!"));
@ -492,6 +492,10 @@ SplashScreen::TextItem *SplashScreen::addText(osg::Geode* geode ,
{
SGPath path = globals->resolve_maybe_aircraft_path(fontFace);
SG_LOG(SG_VIEW, SG_WARN, "Font Path: " << path);
TextItem item;
osg::ref_ptr<osgText::Text> t = new osgText::Text;
item.textNode = t;