From f4a187a9c289b9c1bb7431488b2f1cf2a821d959 Mon Sep 17 00:00:00 2001 From: Andrei Kortunov Date: Sat, 3 Jun 2017 23:03:24 +0400 Subject: [PATCH] Move a setting to show enchanting success chance from GUI to Game section --- apps/openmw/mwgui/enchantingdialog.cpp | 2 +- docs/source/reference/modding/settings/GUI.rst | 11 ----------- docs/source/reference/modding/settings/game.rst | 11 +++++++++++ files/settings-default.cfg | 6 +++--- 4 files changed, 15 insertions(+), 15 deletions(-) diff --git a/apps/openmw/mwgui/enchantingdialog.cpp b/apps/openmw/mwgui/enchantingdialog.cpp index 8d8440626..e44dc6fcc 100644 --- a/apps/openmw/mwgui/enchantingdialog.cpp +++ b/apps/openmw/mwgui/enchantingdialog.cpp @@ -181,7 +181,7 @@ namespace MWGui mBuyButton->setCaptionWithReplacing("#{sCreate}"); - bool enabled = Settings::Manager::getBool("show enchant chance","GUI"); + bool enabled = Settings::Manager::getBool("show enchant chance","Game"); mChanceLayout->setVisible(enabled); diff --git a/docs/source/reference/modding/settings/GUI.rst b/docs/source/reference/modding/settings/GUI.rst index cdc3bd889..ad3514ffa 100644 --- a/docs/source/reference/modding/settings/GUI.rst +++ b/docs/source/reference/modding/settings/GUI.rst @@ -127,14 +127,3 @@ The default value is "1.0 0.15 0.15 1.0" which is a bright red color. This setting can only be configured by editing the settings configuration file. This setting has no effect if the crosshair setting in the HUD Settings Section is false. This setting has no effect if the show owned setting in the Game Settings Section is false. - -show enchant chance ----------------- - -:Type: boolean -:Range: True/False -:Default: False - -Whether or not the chance of success will be displayed in the enchanting menu. - -The default value is false. This setting can only be configured by editing the settings configuration file. diff --git a/docs/source/reference/modding/settings/game.rst b/docs/source/reference/modding/settings/game.rst index d5828ee12..62fe5a70e 100644 --- a/docs/source/reference/modding/settings/game.rst +++ b/docs/source/reference/modding/settings/game.rst @@ -40,6 +40,17 @@ If this setting is true, melee weapons reach and speed will be showed on item to The default value is false. This setting can only be configured by editing the settings configuration file. +show enchant chance +------------------- + +:Type: boolean +:Range: True/False +:Default: False + +Whether or not the chance of success will be displayed in the enchanting menu. + +The default value is false. This setting can only be configured by editing the settings configuration file. + best attack ----------- diff --git a/files/settings-default.cfg b/files/settings-default.cfg index 0a1af81b1..9c3667a6e 100644 --- a/files/settings-default.cfg +++ b/files/settings-default.cfg @@ -141,9 +141,6 @@ werewolf overlay = true color background owned = 0.15 0.0 0.0 1.0 color crosshair owned = 1.0 0.15 0.15 1.0 -# Show success probability in self-enchant dialog -show enchant chance = false - [HUD] # Displays the crosshair or reticle when not in GUI mode. @@ -161,6 +158,9 @@ show projectile damage = false # Show additional melee weapon info: reach and attack speed show melee info = false +# Show success probability in self-enchant dialog +show enchant chance = false + # Always use the best mode of attack: e.g. chop, slash or thrust. best attack = false