mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-06 12:45:36 +00:00
Merge branch 'titleofthemovie' into 'master'
Prevent Movies_Morrowind_Logo video from pausing sounds (bugs #6049, #6109) Closes #6109 and #6049 See merge request OpenMW/openmw!2223
This commit is contained in:
commit
77f4ea7d7c
6 changed files with 8 additions and 6 deletions
|
@ -52,6 +52,7 @@
|
||||||
Bug #5978: NPCs and Creatures talk to and headtrack a player character with a 75% chameleon effect or more
|
Bug #5978: NPCs and Creatures talk to and headtrack a player character with a 75% chameleon effect or more
|
||||||
Bug #5989: Simple water isn't affected by texture filter settings
|
Bug #5989: Simple water isn't affected by texture filter settings
|
||||||
Bug #6037: Launcher: Morrowind content language cannot be set to English
|
Bug #6037: Launcher: Morrowind content language cannot be set to English
|
||||||
|
Bug #6049: Main Theme on OpenMW should begin on the second video like Vanilla.
|
||||||
Bug #6051: NaN water height in ESM file is not handled gracefully
|
Bug #6051: NaN water height in ESM file is not handled gracefully
|
||||||
Bug #6054: Hotkey items can be equipped while in ready to attack stance
|
Bug #6054: Hotkey items can be equipped while in ready to attack stance
|
||||||
Bug #6066: Addtopic "return" does not work from within script. No errors thrown
|
Bug #6066: Addtopic "return" does not work from within script. No errors thrown
|
||||||
|
@ -59,6 +60,7 @@
|
||||||
Bug #6087: Bound items added directly to the inventory disappear if their corresponding spell effect ends
|
Bug #6087: Bound items added directly to the inventory disappear if their corresponding spell effect ends
|
||||||
Bug #6101: Disarming trapped unlocked owned objects isn't considered a crime
|
Bug #6101: Disarming trapped unlocked owned objects isn't considered a crime
|
||||||
Bug #6107: Fatigue is incorrectly recalculated when fortify effect is applied or removed
|
Bug #6107: Fatigue is incorrectly recalculated when fortify effect is applied or removed
|
||||||
|
Bug #6109: Crash when playing a custom made menu_background file
|
||||||
Bug #6115: Showmap overzealous matching
|
Bug #6115: Showmap overzealous matching
|
||||||
Bug #6118: Creature landing sound counts as a footstep
|
Bug #6118: Creature landing sound counts as a footstep
|
||||||
Bug #6123: NPC with broken script freezes the game on hello
|
Bug #6123: NPC with broken script freezes the game on hello
|
||||||
|
|
|
@ -1069,7 +1069,7 @@ void OMW::Engine::go()
|
||||||
mSoundManager->playTitleMusic();
|
mSoundManager->playTitleMusic();
|
||||||
const std::string& logo = Fallback::Map::getString("Movies_Morrowind_Logo");
|
const std::string& logo = Fallback::Map::getString("Movies_Morrowind_Logo");
|
||||||
if (!logo.empty())
|
if (!logo.empty())
|
||||||
mWindowManager->playVideo(logo, true);
|
mWindowManager->playVideo(logo, /*allowSkipping*/true, /*overrideSounds*/false);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -107,7 +107,7 @@ namespace MWBase
|
||||||
|
|
||||||
/// @note This method will block until the video finishes playing
|
/// @note This method will block until the video finishes playing
|
||||||
/// (and will continually update the window while doing so)
|
/// (and will continually update the window while doing so)
|
||||||
virtual void playVideo(const std::string& name, bool allowSkipping) = 0;
|
virtual void playVideo(const std::string& name, bool allowSkipping, bool overrideSounds = true) = 0;
|
||||||
|
|
||||||
virtual void setNewGame(bool newgame) = 0;
|
virtual void setNewGame(bool newgame) = 0;
|
||||||
|
|
||||||
|
|
|
@ -1811,7 +1811,7 @@ namespace MWGui
|
||||||
&& (!isGuiMode() || (mGuiModes.size() == 1 && (getMode() == GM_MainMenu || getMode() == GM_Rest)));
|
&& (!isGuiMode() || (mGuiModes.size() == 1 && (getMode() == GM_MainMenu || getMode() == GM_Rest)));
|
||||||
}
|
}
|
||||||
|
|
||||||
void WindowManager::playVideo(const std::string &name, bool allowSkipping)
|
void WindowManager::playVideo(const std::string &name, bool allowSkipping, bool overrideSounds)
|
||||||
{
|
{
|
||||||
mVideoWidget->playVideo("video\\" + name);
|
mVideoWidget->playVideo("video\\" + name);
|
||||||
|
|
||||||
|
@ -1836,7 +1836,7 @@ namespace MWGui
|
||||||
bool cursorWasVisible = mCursorVisible;
|
bool cursorWasVisible = mCursorVisible;
|
||||||
setCursorVisible(false);
|
setCursorVisible(false);
|
||||||
|
|
||||||
if (mVideoWidget->hasAudioStream())
|
if (overrideSounds && mVideoWidget->hasAudioStream())
|
||||||
MWBase::Environment::get().getSoundManager()->pauseSounds(MWSound::VideoPlayback,
|
MWBase::Environment::get().getSoundManager()->pauseSounds(MWSound::VideoPlayback,
|
||||||
~MWSound::Type::Movie & MWSound::Type::Mask
|
~MWSound::Type::Movie & MWSound::Type::Mask
|
||||||
);
|
);
|
||||||
|
|
|
@ -148,7 +148,7 @@ namespace MWGui
|
||||||
|
|
||||||
/// @note This method will block until the video finishes playing
|
/// @note This method will block until the video finishes playing
|
||||||
/// (and will continually update the window while doing so)
|
/// (and will continually update the window while doing so)
|
||||||
void playVideo(const std::string& name, bool allowSkipping) override;
|
void playVideo(const std::string& name, bool allowSkipping, bool overrideSounds = true) override;
|
||||||
|
|
||||||
/// Warning: do not use MyGUI::InputManager::setKeyFocusWidget directly. Instead use this.
|
/// Warning: do not use MyGUI::InputManager::setKeyFocusWidget directly. Instead use this.
|
||||||
void setKeyFocusWidget (MyGUI::Widget* widget) override;
|
void setKeyFocusWidget (MyGUI::Widget* widget) override;
|
||||||
|
|
|
@ -983,7 +983,7 @@ namespace MWSound
|
||||||
}
|
}
|
||||||
|
|
||||||
TrackList::iterator trkiter = mActiveTracks.begin();
|
TrackList::iterator trkiter = mActiveTracks.begin();
|
||||||
for(;trkiter != mActiveTracks.end();++trkiter)
|
while (trkiter != mActiveTracks.end())
|
||||||
{
|
{
|
||||||
Stream *sound = trkiter->get();
|
Stream *sound = trkiter->get();
|
||||||
if(!mOutput->isStreamPlaying(sound))
|
if(!mOutput->isStreamPlaying(sound))
|
||||||
|
|
Loading…
Reference in a new issue