Added ScreenLog

- Added first version of a ScreenLog mechanism
- Moved the info box to the upper left corner
- Added Ubuntu fonts
- Made RenderEngine a PropertyOwner with _showInfo and _showScreenLog as
  bool properties that can be edited through Lua.
This commit is contained in:
Jonas Strandstedt
2014-10-17 12:20:23 +02:00
parent 13bdd33f7e
commit 18a87ef99e
9 changed files with 248 additions and 61 deletions

View File

@@ -330,6 +330,11 @@ bool OpenSpaceEngine::initialize() {
_engine->scriptEngine().runScriptFile(absoluteScriptPath);
}
// Load a light and a monospaced font
sgct_text::FontManager::instance()->setDefaultFontPath(absPath("${FONTS}/"));
sgct_text::FontManager::instance()->addFont(constants::fonts::keyMono, "ubuntu-font-family/UbuntuMono-R.ttf");
sgct_text::FontManager::instance()->addFont(constants::fonts::keyLight, "ubuntu-font-family/Ubuntu-L.ttf");
return true;
}