mirror of
https://github.com/glest/glest-source.git
synced 2025-08-28 18:29:48 +02:00
- bugfixes for playing videos in main menu
This commit is contained in:
@@ -535,8 +535,8 @@ Intro::~Intro() {
|
|||||||
|
|
||||||
void Intro::update() {
|
void Intro::update() {
|
||||||
if(exitAfterIntroVideo == true) {
|
if(exitAfterIntroVideo == true) {
|
||||||
//mouseUpLeft(0, 0);
|
mouseUpLeft(0, 0);
|
||||||
cleanup();
|
//cleanup();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
timer++;
|
timer++;
|
||||||
|
@@ -96,7 +96,8 @@ void MainMenu::init() {
|
|||||||
Renderer::getInstance().initMenu(this);
|
Renderer::getInstance().initMenu(this);
|
||||||
|
|
||||||
if(GlobalStaticFlags::getIsNonGraphicalModeEnabled() == false &&
|
if(GlobalStaticFlags::getIsNonGraphicalModeEnabled() == false &&
|
||||||
Shared::Graphics::VideoPlayer::hasBackEndVideoPlayer() == true) {
|
Shared::Graphics::VideoPlayer::hasBackEndVideoPlayer() == true &&
|
||||||
|
CoreData::getInstance().hasMainMenuVideoFilename() == true) {
|
||||||
string introVideoFile = CoreData::getInstance().getMainMenuVideoFilename();
|
string introVideoFile = CoreData::getInstance().getMainMenuVideoFilename();
|
||||||
if(introVideoFile != "" && fileExists(introVideoFile)) {
|
if(introVideoFile != "" && fileExists(introVideoFile)) {
|
||||||
Context *c= GraphicsInterface::getInstance().getCurrentContext();
|
Context *c= GraphicsInterface::getInstance().getCurrentContext();
|
||||||
@@ -159,11 +160,11 @@ void MainMenu::render() {
|
|||||||
|
|
||||||
//syncronus update
|
//syncronus update
|
||||||
void MainMenu::update(){
|
void MainMenu::update(){
|
||||||
if(menuBackgroundVideo != NULL) {
|
if(menuBackgroundVideo == NULL) {
|
||||||
Renderer::getInstance().updateParticleManager(rsMenu);
|
Renderer::getInstance().updateParticleManager(rsMenu);
|
||||||
}
|
}
|
||||||
mouse2dAnim= (mouse2dAnim +1) % Renderer::maxMouse2dAnim;
|
mouse2dAnim= (mouse2dAnim +1) % Renderer::maxMouse2dAnim;
|
||||||
if(menuBackgroundVideo != NULL) {
|
if(menuBackgroundVideo == NULL) {
|
||||||
menuBackground.update();
|
menuBackground.update();
|
||||||
}
|
}
|
||||||
state->update();
|
state->update();
|
||||||
|
Reference in New Issue
Block a user