mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-30 03:32:36 +00:00
Fixed Close button handler in EditEffectDialog (fixes #3956)
This commit is contained in:
parent
ada85aa1ee
commit
5be1c81913
@ -170,11 +170,20 @@ namespace MWGui
|
|||||||
mAreaSlider->setScrollPosition (effect.mArea);
|
mAreaSlider->setScrollPosition (effect.mArea);
|
||||||
mDurationSlider->setScrollPosition (effect.mDuration-1);
|
mDurationSlider->setScrollPosition (effect.mDuration-1);
|
||||||
|
|
||||||
|
if (mEffect.mRange == ESM::RT_Self)
|
||||||
|
mRangeButton->setCaptionWithReplacing ("#{sRangeSelf}");
|
||||||
|
else if (mEffect.mRange == ESM::RT_Target)
|
||||||
|
mRangeButton->setCaptionWithReplacing ("#{sRangeTarget}");
|
||||||
|
else if (mEffect.mRange == ESM::RT_Touch)
|
||||||
|
mRangeButton->setCaptionWithReplacing ("#{sRangeTouch}");
|
||||||
|
|
||||||
onMagnitudeMinChanged (mMagnitudeMinSlider, effect.mMagnMin-1);
|
onMagnitudeMinChanged (mMagnitudeMinSlider, effect.mMagnMin-1);
|
||||||
onMagnitudeMaxChanged (mMagnitudeMinSlider, effect.mMagnMax-1);
|
onMagnitudeMaxChanged (mMagnitudeMinSlider, effect.mMagnMax-1);
|
||||||
onAreaChanged (mAreaSlider, effect.mArea);
|
onAreaChanged (mAreaSlider, effect.mArea);
|
||||||
onDurationChanged (mDurationSlider, effect.mDuration-1);
|
onDurationChanged (mDurationSlider, effect.mDuration-1);
|
||||||
eventEffectModified(mEffect);
|
eventEffectModified(mEffect);
|
||||||
|
|
||||||
|
updateBoxes();
|
||||||
}
|
}
|
||||||
|
|
||||||
void EditEffectDialog::setMagicEffect (const ESM::MagicEffect *effect)
|
void EditEffectDialog::setMagicEffect (const ESM::MagicEffect *effect)
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
|
||||||
<MyGUI type="Layout">
|
<MyGUI type="Layout">
|
||||||
<Widget type="Window" skin="MW_Dialog" layer="Windows" position="0 0 362 310" align="Center" name="_Main">
|
<Widget type="Window" skin="MW_DialogNoTransp" layer="Windows" position="0 0 362 310" align="Center" name="_Main">
|
||||||
|
|
||||||
<Widget type="ImageBox" skin="ImageBox" position="8 12 16 16" name="EffectImage">
|
<Widget type="ImageBox" skin="ImageBox" position="8 12 16 16" name="EffectImage">
|
||||||
</Widget>
|
</Widget>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user