forked from mirror/openmw-tes3mp
show owned - better settings
This commit is contained in:
parent
df077f8649
commit
75f5972898
6 changed files with 25 additions and 13 deletions
|
@ -38,6 +38,7 @@ namespace MWGui
|
||||||
, mLastMouseY(0)
|
, mLastMouseY(0)
|
||||||
, mEnabled(true)
|
, mEnabled(true)
|
||||||
, mFullHelp(false)
|
, mFullHelp(false)
|
||||||
|
, mShowOwned(0)
|
||||||
{
|
{
|
||||||
getWidget(mDynamicToolTipBox, "DynamicToolTipBox");
|
getWidget(mDynamicToolTipBox, "DynamicToolTipBox");
|
||||||
|
|
||||||
|
@ -55,6 +56,8 @@ namespace MWGui
|
||||||
{
|
{
|
||||||
mMainWidget->getChildAt(i)->setVisible(false);
|
mMainWidget->getChildAt(i)->setVisible(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mShowOwned = Settings::Manager::getInt("show owned", "Game");
|
||||||
}
|
}
|
||||||
|
|
||||||
void ToolTips::setEnabled(bool enabled)
|
void ToolTips::setEnabled(bool enabled)
|
||||||
|
@ -370,13 +373,16 @@ namespace MWGui
|
||||||
{
|
{
|
||||||
mDynamicToolTipBox->setVisible(true);
|
mDynamicToolTipBox->setVisible(true);
|
||||||
|
|
||||||
if(checkOwned())
|
if(mShowOwned == 1 || mShowOwned == 3)
|
||||||
{
|
{
|
||||||
mDynamicToolTipBox->changeWidgetSkin("HUD_Box_NoTransp_R");
|
if(checkOwned())
|
||||||
}
|
{
|
||||||
else
|
mDynamicToolTipBox->changeWidgetSkin("HUD_Box_NoTransp_R");
|
||||||
{
|
}
|
||||||
mDynamicToolTipBox->changeWidgetSkin("HUD_Box_NoTransp");
|
else
|
||||||
|
{
|
||||||
|
mDynamicToolTipBox->changeWidgetSkin("HUD_Box_NoTransp");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string caption = info.caption;
|
std::string caption = info.caption;
|
||||||
|
|
|
@ -122,6 +122,8 @@ namespace MWGui
|
||||||
bool mEnabled;
|
bool mEnabled;
|
||||||
|
|
||||||
bool mFullHelp;
|
bool mFullHelp;
|
||||||
|
|
||||||
|
int mShowOwned;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -187,7 +187,7 @@ namespace MWGui
|
||||||
, mRestAllowed(true)
|
, mRestAllowed(true)
|
||||||
, mFPS(0.0f)
|
, mFPS(0.0f)
|
||||||
, mFallbackMap(fallbackMap)
|
, mFallbackMap(fallbackMap)
|
||||||
, mShowOwned(false)
|
, mShowOwned(0)
|
||||||
, mVersionDescription(versionDescription)
|
, mVersionDescription(versionDescription)
|
||||||
{
|
{
|
||||||
float uiScale = Settings::Manager::getFloat("scaling factor", "GUI");
|
float uiScale = Settings::Manager::getFloat("scaling factor", "GUI");
|
||||||
|
@ -264,7 +264,7 @@ namespace MWGui
|
||||||
MyGUI::ClipboardManager::getInstance().eventClipboardChanged += MyGUI::newDelegate(this, &WindowManager::onClipboardChanged);
|
MyGUI::ClipboardManager::getInstance().eventClipboardChanged += MyGUI::newDelegate(this, &WindowManager::onClipboardChanged);
|
||||||
MyGUI::ClipboardManager::getInstance().eventClipboardRequested += MyGUI::newDelegate(this, &WindowManager::onClipboardRequested);
|
MyGUI::ClipboardManager::getInstance().eventClipboardRequested += MyGUI::newDelegate(this, &WindowManager::onClipboardRequested);
|
||||||
|
|
||||||
mShowOwned = Settings::Manager::getBool("show owned", "Game");
|
mShowOwned = Settings::Manager::getInt("show owned", "Game");
|
||||||
}
|
}
|
||||||
|
|
||||||
void WindowManager::initUI()
|
void WindowManager::initUI()
|
||||||
|
@ -1043,7 +1043,7 @@ namespace MWGui
|
||||||
{
|
{
|
||||||
mToolTips->setFocusObject(focus);
|
mToolTips->setFocusObject(focus);
|
||||||
|
|
||||||
if(mShowOwned && mHud)
|
if(mHud && (mShowOwned == 2 || mShowOwned == 3))
|
||||||
{
|
{
|
||||||
bool owned = mToolTips->checkOwned();
|
bool owned = mToolTips->checkOwned();
|
||||||
mHud->setCrosshairOwned(owned);
|
mHud->setCrosshairOwned(owned);
|
||||||
|
|
|
@ -487,7 +487,7 @@ namespace MWGui
|
||||||
|
|
||||||
std::map<std::string, std::string> mFallbackMap;
|
std::map<std::string, std::string> mFallbackMap;
|
||||||
|
|
||||||
bool mShowOwned;
|
int mShowOwned;
|
||||||
|
|
||||||
std::string mVersionDescription;
|
std::string mVersionDescription;
|
||||||
|
|
||||||
|
|
|
@ -131,7 +131,7 @@
|
||||||
|
|
||||||
<!-- Defines a red background -->
|
<!-- Defines a red background -->
|
||||||
<Resource type="ResourceSkin" name="DialogBG_R" size="8 8" texture="white">
|
<Resource type="ResourceSkin" name="DialogBG_R" size="8 8" texture="white">
|
||||||
<Property key="Colour" value="0.3 0 0 1"/>
|
<Property key="Colour" value="0.2 0 0 1"/>
|
||||||
<BasisSkin type="MainSkin" offset="0 0 8 8">
|
<BasisSkin type="MainSkin" offset="0 0 8 8">
|
||||||
<State name="normal" offset="0 0 8 8"/>
|
<State name="normal" offset="0 0 8 8"/>
|
||||||
</BasisSkin>
|
</BasisSkin>
|
||||||
|
|
|
@ -162,8 +162,12 @@ best attack = false
|
||||||
|
|
||||||
difficulty = 0
|
difficulty = 0
|
||||||
|
|
||||||
# change crosshair color when pointing on owned object
|
# Change crosshair/toolTip color when pointing on owned object
|
||||||
show owned = false
|
#0: nothing changed
|
||||||
|
#1: tint toolTip
|
||||||
|
#2: tint crosshair
|
||||||
|
#3: both
|
||||||
|
show owned = 0
|
||||||
|
|
||||||
[Saves]
|
[Saves]
|
||||||
character =
|
character =
|
||||||
|
|
Loading…
Reference in a new issue