mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-26 09:35:28 +00:00
Merge branch 'master' into 'master'
pass time on OnTrainingFinished callback instead of before the fadeScreenIn See merge request OpenMW/openmw!3181
This commit is contained in:
commit
023e8f72cd
@ -61,6 +61,7 @@ Programmers
|
||||
crussell187
|
||||
Dan Vukelich (sanchezman)
|
||||
darkf
|
||||
Dave Corley (S3ctor)
|
||||
David Cernat (davidcernat)
|
||||
Declan Millar (declan-millar)
|
||||
devnexen
|
||||
|
@ -31,6 +31,7 @@
|
||||
Bug #6939: OpenMW-CS: ID columns are too short
|
||||
Bug #6949: Sun Damage effect doesn't work in quasi exteriors
|
||||
Bug #6964: Nerasa Dralor Won't Follow
|
||||
Bug #6973: Fade in happens after the scene load and is shown
|
||||
Bug #6974: Only harmful effects are reflected
|
||||
Bug #6977: Sun damage implementation does not match research
|
||||
Bug #6986: Sound magic effect does not make noise
|
||||
|
@ -170,17 +170,13 @@ namespace MWGui
|
||||
MWMechanics::NpcStats& npcStats = mPtr.getClass().getNpcStats(mPtr);
|
||||
npcStats.setGoldPool(npcStats.getGoldPool() + price);
|
||||
|
||||
// advance time
|
||||
MWBase::Environment::get().getMechanicsManager()->rest(2, false);
|
||||
MWBase::Environment::get().getWorld()->advanceTime(2);
|
||||
|
||||
setVisible(false);
|
||||
mProgressBar.setVisible(true);
|
||||
mProgressBar.setProgress(0, 2);
|
||||
mTimeAdvancer.run(2);
|
||||
|
||||
MWBase::Environment::get().getWindowManager()->fadeScreenOut(0.25);
|
||||
MWBase::Environment::get().getWindowManager()->fadeScreenIn(0.25, false, 0.25);
|
||||
MWBase::Environment::get().getWindowManager()->fadeScreenOut(0.2);
|
||||
MWBase::Environment::get().getWindowManager()->fadeScreenIn(0.2, false, 0.2);
|
||||
}
|
||||
|
||||
void TrainingWindow::onTrainingProgressChanged(int cur, int total)
|
||||
@ -192,6 +188,10 @@ namespace MWGui
|
||||
{
|
||||
mProgressBar.setVisible(false);
|
||||
|
||||
// advance time
|
||||
MWBase::Environment::get().getMechanicsManager()->rest(2, false);
|
||||
MWBase::Environment::get().getWorld()->advanceTime(2);
|
||||
|
||||
// go back to game mode
|
||||
MWBase::Environment::get().getWindowManager()->removeGuiMode(GM_Training);
|
||||
MWBase::Environment::get().getWindowManager()->exitCurrentGuiMode();
|
||||
|
Loading…
x
Reference in New Issue
Block a user