forked from teamnwah/openmw-tes3coop
Merge pull request #1334 from akortunov/guifixes
EditEffectDialog fixes
This commit is contained in:
commit
12871dd8da
2 changed files with 10 additions and 1 deletions
|
@ -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…
Reference in a new issue