forked from mirror/openmw-tes3mp
Remove unused settings
This commit is contained in:
parent
e5a37a7023
commit
3969675afa
4 changed files with 1 additions and 100 deletions
|
@ -179,9 +179,6 @@ namespace MWGui
|
||||||
getWidget(mWindowBorderButton, "WindowBorderButton");
|
getWidget(mWindowBorderButton, "WindowBorderButton");
|
||||||
getWidget(mTextureFilteringButton, "TextureFilteringButton");
|
getWidget(mTextureFilteringButton, "TextureFilteringButton");
|
||||||
getWidget(mAnisotropyBox, "AnisotropyBox");
|
getWidget(mAnisotropyBox, "AnisotropyBox");
|
||||||
getWidget(mShadersButton, "ShadersButton");
|
|
||||||
getWidget(mShadowsEnabledButton, "ShadowsEnabledButton");
|
|
||||||
getWidget(mShadowsTextureSize, "ShadowsTextureSize");
|
|
||||||
getWidget(mControlsBox, "ControlsBox");
|
getWidget(mControlsBox, "ControlsBox");
|
||||||
getWidget(mResetControlsButton, "ResetControlsButton");
|
getWidget(mResetControlsButton, "ResetControlsButton");
|
||||||
getWidget(mKeyboardSwitch, "KeyboardButton");
|
getWidget(mKeyboardSwitch, "KeyboardButton");
|
||||||
|
@ -211,8 +208,6 @@ namespace MWGui
|
||||||
|
|
||||||
mWaterTextureSize->eventComboChangePosition += MyGUI::newDelegate(this, &SettingsWindow::onWaterTextureSizeChanged);
|
mWaterTextureSize->eventComboChangePosition += MyGUI::newDelegate(this, &SettingsWindow::onWaterTextureSizeChanged);
|
||||||
|
|
||||||
mShadowsTextureSize->eventComboChangePosition += MyGUI::newDelegate(this, &SettingsWindow::onShadowTextureSizeChanged);
|
|
||||||
|
|
||||||
mKeyboardSwitch->eventMouseButtonClick += MyGUI::newDelegate(this, &SettingsWindow::onKeyboardSwitchClicked);
|
mKeyboardSwitch->eventMouseButtonClick += MyGUI::newDelegate(this, &SettingsWindow::onKeyboardSwitchClicked);
|
||||||
mControllerSwitch->eventMouseButtonClick += MyGUI::newDelegate(this, &SettingsWindow::onControllerSwitchClicked);
|
mControllerSwitch->eventMouseButtonClick += MyGUI::newDelegate(this, &SettingsWindow::onControllerSwitchClicked);
|
||||||
|
|
||||||
|
@ -253,13 +248,6 @@ namespace MWGui
|
||||||
if (waterTextureSize >= 2048)
|
if (waterTextureSize >= 2048)
|
||||||
mWaterTextureSize->setIndexSelected(2);
|
mWaterTextureSize->setIndexSelected(2);
|
||||||
|
|
||||||
mShadowsTextureSize->setCaption (Settings::Manager::getString ("texture size", "Shadows"));
|
|
||||||
|
|
||||||
if (!Settings::Manager::getBool("shaders", "Objects"))
|
|
||||||
{
|
|
||||||
mShadowsEnabledButton->setEnabled(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
mWindowBorderButton->setEnabled(!Settings::Manager::getBool("fullscreen", "Video"));
|
mWindowBorderButton->setEnabled(!Settings::Manager::getBool("fullscreen", "Video"));
|
||||||
|
|
||||||
mKeyboardSwitch->setStateSelected(true);
|
mKeyboardSwitch->setStateSelected(true);
|
||||||
|
@ -339,12 +327,6 @@ namespace MWGui
|
||||||
apply();
|
apply();
|
||||||
}
|
}
|
||||||
|
|
||||||
void SettingsWindow::onShadowTextureSizeChanged(MyGUI::ComboBox *_sender, size_t pos)
|
|
||||||
{
|
|
||||||
Settings::Manager::setString("texture size", "Shadows", _sender->getItemNameAt(pos));
|
|
||||||
apply();
|
|
||||||
}
|
|
||||||
|
|
||||||
void SettingsWindow::onButtonToggled(MyGUI::Widget* _sender)
|
void SettingsWindow::onButtonToggled(MyGUI::Widget* _sender)
|
||||||
{
|
{
|
||||||
std::string on = MWBase::Environment::get().getWindowManager()->getGameSettingString("sOn", "On");
|
std::string on = MWBase::Environment::get().getWindowManager()->getGameSettingString("sOn", "On");
|
||||||
|
@ -361,21 +343,6 @@ namespace MWGui
|
||||||
newState = true;
|
newState = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_sender == mShadersButton)
|
|
||||||
{
|
|
||||||
if (newState == false)
|
|
||||||
{
|
|
||||||
// shadows not supported
|
|
||||||
mShadowsEnabledButton->setEnabled(false);
|
|
||||||
mShadowsEnabledButton->setCaptionWithReplacing("#{sOff}");
|
|
||||||
Settings::Manager::setBool("enabled", "Shadows", false);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
mShadowsEnabledButton->setEnabled(true);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (_sender == mFullscreenButton)
|
if (_sender == mFullscreenButton)
|
||||||
{
|
{
|
||||||
// check if this resolution is supported in fullscreen
|
// check if this resolution is supported in fullscreen
|
||||||
|
|
|
@ -32,13 +32,9 @@ namespace MWGui
|
||||||
MyGUI::Button* mWindowBorderButton;
|
MyGUI::Button* mWindowBorderButton;
|
||||||
MyGUI::ComboBox* mTextureFilteringButton;
|
MyGUI::ComboBox* mTextureFilteringButton;
|
||||||
MyGUI::Widget* mAnisotropyBox;
|
MyGUI::Widget* mAnisotropyBox;
|
||||||
MyGUI::Button* mShadersButton;
|
|
||||||
|
|
||||||
MyGUI::ComboBox* mWaterTextureSize;
|
MyGUI::ComboBox* mWaterTextureSize;
|
||||||
|
|
||||||
MyGUI::Button* mShadowsEnabledButton;
|
|
||||||
MyGUI::ComboBox* mShadowsTextureSize;
|
|
||||||
|
|
||||||
// controls
|
// controls
|
||||||
MyGUI::ScrollView* mControlsBox;
|
MyGUI::ScrollView* mControlsBox;
|
||||||
MyGUI::Button* mResetControlsButton;
|
MyGUI::Button* mResetControlsButton;
|
||||||
|
@ -58,8 +54,6 @@ namespace MWGui
|
||||||
|
|
||||||
void onWaterTextureSizeChanged(MyGUI::ComboBox* _sender, size_t pos);
|
void onWaterTextureSizeChanged(MyGUI::ComboBox* _sender, size_t pos);
|
||||||
|
|
||||||
void onShadowTextureSizeChanged(MyGUI::ComboBox* _sender, size_t pos);
|
|
||||||
|
|
||||||
void onRebindAction(MyGUI::Widget* _sender);
|
void onRebindAction(MyGUI::Widget* _sender);
|
||||||
void onInputTabMouseWheel(MyGUI::Widget* _sender, int _rel);
|
void onInputTabMouseWheel(MyGUI::Widget* _sender, int _rel);
|
||||||
void onResetDefaultBindings(MyGUI::Widget* _sender);
|
void onResetDefaultBindings(MyGUI::Widget* _sender);
|
||||||
|
|
|
@ -257,18 +257,6 @@
|
||||||
<Property key="Caption" value="Window border"/>
|
<Property key="Caption" value="Window border"/>
|
||||||
</Widget>
|
</Widget>
|
||||||
</Widget>
|
</Widget>
|
||||||
<Widget type="HBox" skin="" position="182 124 300 24">
|
|
||||||
<Property key="Visible" value="false"/>
|
|
||||||
<UserString key="Hidden" value="true"/>
|
|
||||||
<Widget type="AutoSizedButton" skin="MW_Button" position="0 0 24 24" align="Left Top" name="ShadersButton">
|
|
||||||
<UserString key="SettingCategory" value="Objects"/>
|
|
||||||
<UserString key="SettingName" value="shaders"/>
|
|
||||||
<UserString key="SettingType" value="CheckButton"/>
|
|
||||||
</Widget>
|
|
||||||
<Widget type="AutoSizedTextBox" skin="SandText" position="28 4 108 16" align="Left Top">
|
|
||||||
<Property key="Caption" value="Object shaders"/>
|
|
||||||
</Widget>
|
|
||||||
</Widget>
|
|
||||||
|
|
||||||
<Widget type="TextBox" skin="SandText" position="182 94 300 32" align="Left Top">
|
<Widget type="TextBox" skin="SandText" position="182 94 300 32" align="Left Top">
|
||||||
<Property key="MultiLine" value="true"/>
|
<Property key="MultiLine" value="true"/>
|
||||||
|
@ -411,7 +399,6 @@
|
||||||
</Widget>
|
</Widget>
|
||||||
<!--
|
<!--
|
||||||
<Widget type="TabItem" skin="" position="0 28 352 268">
|
<Widget type="TabItem" skin="" position="0 28 352 268">
|
||||||
-->
|
|
||||||
<Widget type="Widget" skin="" position="0 28 352 268">
|
<Widget type="Widget" skin="" position="0 28 352 268">
|
||||||
<Property key="Visible" value="false"/>
|
<Property key="Visible" value="false"/>
|
||||||
<Property key="Caption" value=" Shadows "/>
|
<Property key="Caption" value=" Shadows "/>
|
||||||
|
@ -489,6 +476,7 @@
|
||||||
</Widget>
|
</Widget>
|
||||||
</Widget>
|
</Widget>
|
||||||
</Widget>
|
</Widget>
|
||||||
|
-->
|
||||||
</Widget>
|
</Widget>
|
||||||
</Widget>
|
</Widget>
|
||||||
</Widget>
|
</Widget>
|
||||||
|
|
|
@ -277,54 +277,6 @@ refraction = false
|
||||||
# Draw NPCs and creatures on water reflections.
|
# Draw NPCs and creatures on water reflections.
|
||||||
reflect actors = false
|
reflect actors = false
|
||||||
|
|
||||||
[Objects]
|
|
||||||
|
|
||||||
# Enable shaders for objects other than water. Unused.
|
|
||||||
shaders = true
|
|
||||||
|
|
||||||
[Terrain]
|
|
||||||
|
|
||||||
# Use shaders for terrain? Unused.
|
|
||||||
shader = true
|
|
||||||
|
|
||||||
# Distant land is rendered? Unused.
|
|
||||||
distant land = false
|
|
||||||
|
|
||||||
[Shadows]
|
|
||||||
|
|
||||||
# Enable shadows. Other shadow settings disabled if false. Unused.
|
|
||||||
enabled = false
|
|
||||||
|
|
||||||
# Size of the shadow textures in pixels. Unused. (e.g. 256 to 2048).
|
|
||||||
texture size = 1024
|
|
||||||
|
|
||||||
# Actors cast shadows. Unused.
|
|
||||||
actor shadows = true
|
|
||||||
|
|
||||||
# Static objects cast shadows. Unused.
|
|
||||||
statics shadows = true
|
|
||||||
|
|
||||||
# Terrain cast shadows. Unused.
|
|
||||||
terrain shadows = true
|
|
||||||
|
|
||||||
# Miscellaneous objects cast shadows. Unused.
|
|
||||||
misc shadows = true
|
|
||||||
|
|
||||||
# Debugging of shadows. Unused.
|
|
||||||
debug = false
|
|
||||||
|
|
||||||
# Fraction of distance after which shadow starts to fade out. Unused.
|
|
||||||
fade start = 0.8
|
|
||||||
|
|
||||||
# Split shadow maps, allowing for a larger shadow distance. Unused.
|
|
||||||
split = false
|
|
||||||
|
|
||||||
# Distance for shadows if not split. Smaller is poorer. Unused.
|
|
||||||
shadow distance = 1300
|
|
||||||
|
|
||||||
# Distance for shadows if split. Unused.
|
|
||||||
split shadow distance = 14000
|
|
||||||
|
|
||||||
[Windows]
|
[Windows]
|
||||||
|
|
||||||
# Location and sizes of windows as a fraction of the OpenMW window or
|
# Location and sizes of windows as a fraction of the OpenMW window or
|
||||||
|
|
Loading…
Reference in a new issue