From e8a245bea3a331ffe7edc06a0959bf74e5248a43 Mon Sep 17 00:00:00 2001 From: MiroslavR Date: Sun, 24 Aug 2014 16:41:17 +0200 Subject: [PATCH] Enchanting dialog: follow vanilla behavior more closely --- apps/openmw/mwgui/enchantingdialog.cpp | 4 ++++ files/mygui/openmw_enchanting_dialog.layout | 21 +++++++++++++++++++++ 2 files changed, 25 insertions(+) diff --git a/apps/openmw/mwgui/enchantingdialog.cpp b/apps/openmw/mwgui/enchantingdialog.cpp index 8612617c1..d5098adbf 100644 --- a/apps/openmw/mwgui/enchantingdialog.cpp +++ b/apps/openmw/mwgui/enchantingdialog.cpp @@ -87,6 +87,7 @@ namespace MWGui } else { + mName->setCaption(item.getClass().getName(item)); mItemBox->setItem(item); mItemBox->setUserString ("ToolTipType", "ItemPtr"); mItemBox->setUserData(item); @@ -208,6 +209,7 @@ namespace MWGui else { setItem(MWWorld::Ptr()); + updateLabels(); } } @@ -216,6 +218,7 @@ namespace MWGui mItemSelectionDialog->setVisible(false); setItem(item); + MWBase::Environment::get().getSoundManager()->playSound(item.getClass().getDownSoundId(item), 1, 1); mEnchanting.nextCastStyle(); updateLabels(); } @@ -237,6 +240,7 @@ namespace MWGui } setSoulGem(item); + MWBase::Environment::get().getSoundManager()->playSound(item.getClass().getDownSoundId(item), 1, 1); updateLabels(); } diff --git a/files/mygui/openmw_enchanting_dialog.layout b/files/mygui/openmw_enchanting_dialog.layout index 2a3cb7c1d..def065b7a 100644 --- a/files/mygui/openmw_enchanting_dialog.layout +++ b/files/mygui/openmw_enchanting_dialog.layout @@ -7,6 +7,9 @@ + + + @@ -25,6 +28,9 @@ + + + @@ -33,6 +39,9 @@ + + + @@ -70,6 +79,9 @@ + + + @@ -77,6 +89,9 @@ + + + @@ -89,6 +104,9 @@ + + + @@ -100,6 +118,9 @@ + + +