|
|
|
@ -187,6 +187,7 @@ namespace MWGui
|
|
|
|
|
, mRestAllowed(true)
|
|
|
|
|
, mFPS(0.0f)
|
|
|
|
|
, mFallbackMap(fallbackMap)
|
|
|
|
|
, mShowOwned(false)
|
|
|
|
|
{
|
|
|
|
|
float uiScale = Settings::Manager::getFloat("scaling factor", "GUI");
|
|
|
|
|
mGuiPlatform = new osgMyGUI::Platform(viewer, guiRoot, resourceSystem->getTextureManager(), uiScale);
|
|
|
|
@ -261,6 +262,8 @@ namespace MWGui
|
|
|
|
|
|
|
|
|
|
MyGUI::ClipboardManager::getInstance().eventClipboardChanged += MyGUI::newDelegate(this, &WindowManager::onClipboardChanged);
|
|
|
|
|
MyGUI::ClipboardManager::getInstance().eventClipboardRequested += MyGUI::newDelegate(this, &WindowManager::onClipboardRequested);
|
|
|
|
|
|
|
|
|
|
mShowOwned = Settings::Manager::getBool("show owned", "Game");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void WindowManager::initUI()
|
|
|
|
@ -1038,6 +1041,12 @@ namespace MWGui
|
|
|
|
|
void WindowManager::setFocusObject(const MWWorld::Ptr& focus)
|
|
|
|
|
{
|
|
|
|
|
mToolTips->setFocusObject(focus);
|
|
|
|
|
|
|
|
|
|
if(mShowOwned && mHud)
|
|
|
|
|
{
|
|
|
|
|
bool owned = mToolTips->checkOwned();
|
|
|
|
|
mHud->setCrosshairOwned(owned);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void WindowManager::setFocusObjectScreenCoords(float min_x, float min_y, float max_x, float max_y)
|
|
|
|
|