Initial commit
This commit is contained in:
215
engines/buried/demo/demo_menu.cpp
Normal file
215
engines/buried/demo/demo_menu.cpp
Normal file
@@ -0,0 +1,215 @@
|
||||
/* ScummVM - Graphic Adventure Engine
|
||||
*
|
||||
* ScummVM is the legal property of its developers, whose names
|
||||
* are too numerous to list here. Please refer to the COPYRIGHT
|
||||
* file distributed with this source distribution.
|
||||
*
|
||||
* Additional copyright for this file:
|
||||
* Copyright (C) 1995 Presto Studios, Inc.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
|
||||
#include "buried/buried.h"
|
||||
#include "buried/frame_window.h"
|
||||
#include "buried/graphics.h"
|
||||
#include "buried/message.h"
|
||||
#include "buried/sound.h"
|
||||
#include "buried/demo/demo_menu.h"
|
||||
|
||||
#include "common/system.h"
|
||||
#include "graphics/surface.h"
|
||||
|
||||
namespace Buried {
|
||||
|
||||
enum {
|
||||
BUTTON_OVERVIEW = 1,
|
||||
BUTTON_TRAILER = 2,
|
||||
BUTTON_INTERACTIVE = 3,
|
||||
BUTTON_GALLERY = 4,
|
||||
BUTTON_QUIT = 5
|
||||
};
|
||||
|
||||
DemoMainMenuWindow::DemoMainMenuWindow(BuriedEngine *vm, Window *parent) : Window(vm, parent) {
|
||||
_curButton = 0;
|
||||
|
||||
Common::Rect parentRect = _parent->getClientRect();
|
||||
_rect.left = (parentRect.right - 640) / 2;
|
||||
_rect.top = (parentRect.bottom - 480) / 2;
|
||||
_rect.right = parentRect.left + 640;
|
||||
_rect.bottom = parentRect.top + 480;
|
||||
|
||||
_overview = Common::Rect(29, 155, 168, 325);
|
||||
_trailer = Common::Rect(177, 155, 316, 325);
|
||||
_interactive = Common::Rect(324, 155, 463, 325);
|
||||
_gallery = Common::Rect(471, 155, 610, 325);
|
||||
_quit = Common::Rect(552, 439, 640, 480);
|
||||
|
||||
if (_vm->isTrueColor()) {
|
||||
_background = _vm->_gfx->getBitmap("MISC/24BPP/MAINMENU.BMP");
|
||||
|
||||
// These files don't exist in all demo versions
|
||||
_mmbsel = _vm->_gfx->getBitmap("MISC/24BPP/MMB_SEL.BMP", false);
|
||||
_mmbquit = _vm->_gfx->getBitmap("MISC/24BPP/MMB_QUIT.BMP", false);
|
||||
} else {
|
||||
_background = _vm->_gfx->getBitmap("MISC/8BPP/MAINMENU.BMP");
|
||||
|
||||
// These files don't exist in all demo versions
|
||||
_mmbsel = _vm->_gfx->getBitmap("MISC/8BPP/MMB_SEL.BMP", false);
|
||||
_mmbquit = _vm->_gfx->getBitmap("MISC/8BPP/MMB_QUIT.BMP", false);
|
||||
}
|
||||
|
||||
_vm->_sound->setAmbientSound("MISC/MENULOOP.WAV");
|
||||
}
|
||||
|
||||
DemoMainMenuWindow::~DemoMainMenuWindow() {
|
||||
_background->free();
|
||||
delete _background;
|
||||
}
|
||||
|
||||
void DemoMainMenuWindow::showWithSplash() {
|
||||
Graphics::Surface *temp = _background;
|
||||
|
||||
if (_vm->isTrueColor())
|
||||
_background = _vm->_gfx->getBitmap("MISC/24BPP/SPLASH.BMP");
|
||||
else
|
||||
_background = _vm->_gfx->getBitmap("MISC/8BPP/SPLASH.BMP");
|
||||
|
||||
_vm->removeMouseMessages(this);
|
||||
_vm->removeMouseMessages(_parent);
|
||||
|
||||
showWindow(kWindowShow);
|
||||
invalidateWindow(false);
|
||||
_vm->_gfx->updateScreen();
|
||||
|
||||
uint32 startTime = g_system->getMillis();
|
||||
while (g_system->getMillis() < (startTime + 6000) && !_vm->hasMessage(this, kMessageTypeLButtonUp, kMessageTypeLButtonUp) && !_vm->shouldQuit())
|
||||
_vm->yield(nullptr, -1);
|
||||
|
||||
_background->free();
|
||||
delete _background;
|
||||
_background = temp;
|
||||
invalidateWindow(false);
|
||||
|
||||
_vm->removeMouseMessages(this);
|
||||
_vm->removeMouseMessages(_parent);
|
||||
}
|
||||
|
||||
void DemoMainMenuWindow::onPaint() {
|
||||
_vm->_gfx->blit(_background, 0, 0);
|
||||
|
||||
switch (_curButton) {
|
||||
case BUTTON_OVERVIEW:
|
||||
if (_mmbsel)
|
||||
_vm->_gfx->blit(_mmbsel, Common::Rect(0, 0, 139, 171), _overview);
|
||||
break;
|
||||
|
||||
case BUTTON_TRAILER:
|
||||
if (_mmbsel)
|
||||
_vm->_gfx->blit(_mmbsel, Common::Rect(148, 0, 287, 171), _trailer);
|
||||
break;
|
||||
|
||||
case BUTTON_INTERACTIVE:
|
||||
if (_mmbsel)
|
||||
_vm->_gfx->blit(_mmbsel, Common::Rect(295, 0, 434, 171), _interactive);
|
||||
break;
|
||||
|
||||
case BUTTON_GALLERY:
|
||||
if (_mmbsel)
|
||||
_vm->_gfx->blit(_mmbsel, Common::Rect(442, 0, 610, 581), _gallery);
|
||||
break;
|
||||
|
||||
case BUTTON_QUIT:
|
||||
if (_mmbquit)
|
||||
_vm->_gfx->blit(_mmbquit, 552, 439);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
bool DemoMainMenuWindow::onEraseBackground() {
|
||||
_vm->_gfx->fillRect(getAbsoluteRect(), _vm->_gfx->getColor(0, 0, 0));
|
||||
return true;
|
||||
}
|
||||
|
||||
void DemoMainMenuWindow::onLButtonDown(const Common::Point &point, uint flags) {
|
||||
int lastButton = _curButton;
|
||||
|
||||
if (_overview.contains(point)) {
|
||||
_curButton = BUTTON_OVERVIEW;
|
||||
} else if (_trailer.contains(point)) {
|
||||
_curButton = BUTTON_TRAILER;
|
||||
} else if (_interactive.contains(point)) {
|
||||
_curButton = BUTTON_INTERACTIVE;
|
||||
} else if (_gallery.contains(point)) {
|
||||
_curButton = BUTTON_GALLERY;
|
||||
} else if (_quit.contains(point)) {
|
||||
_curButton = BUTTON_QUIT;
|
||||
}
|
||||
|
||||
if (_curButton != lastButton)
|
||||
invalidateWindow(false);
|
||||
}
|
||||
|
||||
void DemoMainMenuWindow::onLButtonUp(const Common::Point &point, uint flags) {
|
||||
if (_curButton == 0)
|
||||
return;
|
||||
|
||||
switch (_curButton) {
|
||||
case BUTTON_OVERVIEW:
|
||||
if (_overview.contains(point)) {
|
||||
_vm->_sound->setAmbientSound();
|
||||
((FrameWindow *)_parent)->playMovie(_vm->isTrueColor() ? "MISC/24BPP/OVERVIEW.BMP" : "MISC/8BPP/OVERVIEW.BMP", "MISC/OVERVIEW.AVI", 160, 112);
|
||||
return;
|
||||
}
|
||||
break;
|
||||
case BUTTON_TRAILER:
|
||||
if (_trailer.contains(point)) {
|
||||
_vm->_sound->setAmbientSound();
|
||||
((FrameWindow *)_parent)->playMovie(_vm->isTrueColor() ? "MISC/24BPP/TRAILER.BMP" : "MISC/8BPP/TRAILER.BMP", "MISC/TRAILER.AVI", 104, 136);
|
||||
return;
|
||||
}
|
||||
break;
|
||||
case BUTTON_INTERACTIVE:
|
||||
if (_interactive.contains(point)) {
|
||||
_vm->_sound->setAmbientSound();
|
||||
|
||||
// Reviewer mode check (control)
|
||||
if (_vm->isControlDown())
|
||||
((FrameWindow *)_parent)->_reviewerMode = true;
|
||||
|
||||
((FrameWindow *)_parent)->startNewGame();
|
||||
return;
|
||||
}
|
||||
break;
|
||||
case BUTTON_GALLERY:
|
||||
if (_gallery.contains(point)) {
|
||||
_vm->_sound->setAmbientSound();
|
||||
((FrameWindow *)_parent)->playMovie(_vm->isTrueColor() ? "MISC/24BPP/GALLERY.BMP" : "MISC/8BPP/GALLERY.BMP", "MISC/GALLERY.AVI", 104, 136);
|
||||
return;
|
||||
}
|
||||
break;
|
||||
case BUTTON_QUIT:
|
||||
if (_quit.contains(point)) {
|
||||
((FrameWindow *)_parent)->showFeaturesScreen();
|
||||
return;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
_curButton = 0;
|
||||
invalidateWindow(false);
|
||||
}
|
||||
|
||||
} // End of namespace Buried
|
||||
63
engines/buried/demo/demo_menu.h
Normal file
63
engines/buried/demo/demo_menu.h
Normal file
@@ -0,0 +1,63 @@
|
||||
/* ScummVM - Graphic Adventure Engine
|
||||
*
|
||||
* ScummVM is the legal property of its developers, whose names
|
||||
* are too numerous to list here. Please refer to the COPYRIGHT
|
||||
* file distributed with this source distribution.
|
||||
*
|
||||
* Additional copyright for this file:
|
||||
* Copyright (C) 1995 Presto Studios, Inc.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef BURIED_DEMO_MENU_H
|
||||
#define BURIED_DEMO_MENU_H
|
||||
|
||||
#include "buried/window.h"
|
||||
|
||||
namespace Graphics {
|
||||
struct Surface;
|
||||
}
|
||||
|
||||
namespace Buried {
|
||||
|
||||
class DemoMainMenuWindow : public Window {
|
||||
public:
|
||||
DemoMainMenuWindow(BuriedEngine *vm, Window *parent);
|
||||
~DemoMainMenuWindow();
|
||||
|
||||
void showWithSplash();
|
||||
|
||||
void onPaint();
|
||||
bool onEraseBackground();
|
||||
void onLButtonUp(const Common::Point &point, uint flags);
|
||||
void onLButtonDown(const Common::Point &point, uint flags);
|
||||
|
||||
private:
|
||||
Common::Rect _overview;
|
||||
Common::Rect _trailer;
|
||||
Common::Rect _interactive;
|
||||
Common::Rect _gallery;
|
||||
Common::Rect _quit;
|
||||
int _curButton;
|
||||
//bool _buttonDrawnDown;
|
||||
Graphics::Surface *_background;
|
||||
Graphics::Surface *_mmbsel;
|
||||
Graphics::Surface *_mmbquit;
|
||||
};
|
||||
|
||||
} // End of namespace Buried
|
||||
|
||||
#endif
|
||||
92
engines/buried/demo/features.cpp
Normal file
92
engines/buried/demo/features.cpp
Normal file
@@ -0,0 +1,92 @@
|
||||
/* ScummVM - Graphic Adventure Engine
|
||||
*
|
||||
* ScummVM is the legal property of its developers, whose names
|
||||
* are too numerous to list here. Please refer to the COPYRIGHT
|
||||
* file distributed with this source distribution.
|
||||
*
|
||||
* Additional copyright for this file:
|
||||
* Copyright (C) 1995 Presto Studios, Inc.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
|
||||
#include "buried/buried.h"
|
||||
#include "buried/graphics.h"
|
||||
#include "buried/message.h"
|
||||
#include "buried/demo/features.h"
|
||||
|
||||
#include "graphics/surface.h"
|
||||
|
||||
namespace Buried {
|
||||
|
||||
FeaturesDisplayWindow::FeaturesDisplayWindow(BuriedEngine *vm, Window *parent) : Window(vm, parent) {
|
||||
Common::Rect parentRect = _parent->getClientRect();
|
||||
_rect.left = (parentRect.right - 640) / 2;
|
||||
_rect.top = (parentRect.bottom - 480) / 2;
|
||||
_rect.right = parentRect.left + 640;
|
||||
_rect.bottom = parentRect.top + 480;
|
||||
|
||||
_curBackground = 0;
|
||||
_background = _vm->_gfx->getBitmap(_vm->isTrueColor() ? "MISC/24BPP/FEATURE1.BMP" : "MISC/8BPP/FEATURE1.BMP");
|
||||
}
|
||||
|
||||
FeaturesDisplayWindow::~FeaturesDisplayWindow() {
|
||||
if (_background) {
|
||||
_background->free();
|
||||
delete _background;
|
||||
}
|
||||
}
|
||||
|
||||
void FeaturesDisplayWindow::onPaint() {
|
||||
_vm->_gfx->blit(_background, 0, 0);
|
||||
}
|
||||
|
||||
bool FeaturesDisplayWindow::onEraseBackground() {
|
||||
_vm->_gfx->fillRect(getAbsoluteRect(), _vm->_gfx->getColor(0, 0, 0));
|
||||
return true;
|
||||
}
|
||||
|
||||
void FeaturesDisplayWindow::onLButtonUp(const Common::Point &point, uint flags) {
|
||||
_vm->removeMouseMessages(this);
|
||||
_vm->removeMouseMessages(_parent);
|
||||
|
||||
_curBackground++;
|
||||
if (_background) {
|
||||
_background->free();
|
||||
delete _background;
|
||||
_background = nullptr;
|
||||
}
|
||||
|
||||
switch (_curBackground) {
|
||||
case 1:
|
||||
_background = _vm->_gfx->getBitmap(_vm->isTrueColor() ? "MISC/24BPP/FEATURE2.BMP" : "MISC/8BPP/FEATURE2.BMP");
|
||||
break;
|
||||
case 2:
|
||||
_background = _vm->_gfx->getBitmap(_vm->isTrueColor() ? "MISC/24BPP/FEATURE3.BMP" : "MISC/8BPP/FEATURE3.BMP");
|
||||
break;
|
||||
case 3:
|
||||
_background = _vm->_gfx->getBitmap(_vm->isTrueColor() ? "MISC/24BPP/CLOSING.BMP" : "MISC/8BPP/CLOSING.BMP");
|
||||
break;
|
||||
case 4:
|
||||
_vm->quitGame();
|
||||
return;
|
||||
}
|
||||
|
||||
invalidateWindow(false);
|
||||
_vm->removeMouseMessages(this);
|
||||
_vm->removeMouseMessages(_parent);
|
||||
}
|
||||
|
||||
} // End of namespace Buried
|
||||
52
engines/buried/demo/features.h
Normal file
52
engines/buried/demo/features.h
Normal file
@@ -0,0 +1,52 @@
|
||||
/* ScummVM - Graphic Adventure Engine
|
||||
*
|
||||
* ScummVM is the legal property of its developers, whose names
|
||||
* are too numerous to list here. Please refer to the COPYRIGHT
|
||||
* file distributed with this source distribution.
|
||||
*
|
||||
* Additional copyright for this file:
|
||||
* Copyright (C) 1995 Presto Studios, Inc.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef BURIED_DEMO_FEATURES_H
|
||||
#define BURIED_DEMO_FEATURES_H
|
||||
|
||||
#include "buried/window.h"
|
||||
|
||||
namespace Graphics {
|
||||
struct Surface;
|
||||
}
|
||||
|
||||
namespace Buried {
|
||||
|
||||
class FeaturesDisplayWindow : public Window {
|
||||
public:
|
||||
FeaturesDisplayWindow(BuriedEngine *vm, Window *parent);
|
||||
~FeaturesDisplayWindow();
|
||||
|
||||
void onPaint();
|
||||
bool onEraseBackground();
|
||||
void onLButtonUp(const Common::Point &point, uint flags);
|
||||
|
||||
private:
|
||||
Graphics::Surface *_background;
|
||||
int _curBackground;
|
||||
};
|
||||
|
||||
} // End of namespace Buried
|
||||
|
||||
#endif
|
||||
97
engines/buried/demo/movie_scene.cpp
Normal file
97
engines/buried/demo/movie_scene.cpp
Normal file
@@ -0,0 +1,97 @@
|
||||
/* ScummVM - Graphic Adventure Engine
|
||||
*
|
||||
* ScummVM is the legal property of its developers, whose names
|
||||
* are too numerous to list here. Please refer to the COPYRIGHT
|
||||
* file distributed with this source distribution.
|
||||
*
|
||||
* Additional copyright for this file:
|
||||
* Copyright (C) 1995 Presto Studios, Inc.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
|
||||
#include "buried/buried.h"
|
||||
#include "buried/frame_window.h"
|
||||
#include "buried/graphics.h"
|
||||
#include "buried/video_window.h"
|
||||
#include "buried/demo/movie_scene.h"
|
||||
|
||||
#include "graphics/surface.h"
|
||||
|
||||
namespace Buried {
|
||||
|
||||
MovieDisplayWindow::MovieDisplayWindow(BuriedEngine *vm, Window *parent, const Common::Path &background, const Common::Path &movie, int movieLeft, int movieTop)
|
||||
: Window(vm, parent) {
|
||||
_background = _vm->_gfx->getBitmap(background);
|
||||
|
||||
// Create a rect to use to place the window inside the parent
|
||||
Common::Rect parentRect = parent->getRect();
|
||||
_rect.left = (parentRect.right - 640) / 2;
|
||||
_rect.top = (parentRect.bottom - 480) / 2;
|
||||
_rect.right = _rect.left + 640;
|
||||
_rect.bottom = _rect.top + 480;
|
||||
|
||||
// Create and position the movie
|
||||
_movie = new VideoWindow(_vm, this);
|
||||
|
||||
if (!_movie->openVideo(movie))
|
||||
error("Failed to open movie '%s'", movie.toString(Common::Path::kNativeSeparator).c_str());
|
||||
|
||||
_movie->setWindowPos(nullptr, movieLeft, movieTop, 0, 0, kWindowPosNoSize | kWindowPosNoZOrder);
|
||||
_movie->enableWindow(false);
|
||||
|
||||
_timer = 0;
|
||||
}
|
||||
|
||||
MovieDisplayWindow::~MovieDisplayWindow() {
|
||||
if (_timer != 0)
|
||||
killTimer(_timer);
|
||||
|
||||
delete _movie;
|
||||
|
||||
_background->free();
|
||||
delete _background;
|
||||
}
|
||||
|
||||
bool MovieDisplayWindow::showMovieInWindow() {
|
||||
showWindow(kWindowShow);
|
||||
|
||||
_movie->enableWindow(false);
|
||||
_movie->showWindow(kWindowShow);
|
||||
_movie->playVideo();
|
||||
|
||||
_timer = setTimer(5000);
|
||||
return true;
|
||||
}
|
||||
|
||||
void MovieDisplayWindow::onPaint() {
|
||||
_vm->_gfx->blit(_background, 0, 0);
|
||||
}
|
||||
|
||||
bool MovieDisplayWindow::onEraseBackground() {
|
||||
_vm->_gfx->fillRect(getAbsoluteRect(), _vm->_gfx->getColor(0, 0, 0));
|
||||
return true;
|
||||
}
|
||||
|
||||
void MovieDisplayWindow::onLButtonUp(const Common::Point &point, uint flags) {
|
||||
((FrameWindow *)_parent)->returnToMainMenu();
|
||||
}
|
||||
|
||||
void MovieDisplayWindow::onTimer(uint timer) {
|
||||
if (_movie->getMode() == VideoWindow::kModeStopped)
|
||||
((FrameWindow *)_parent)->returnToMainMenu();
|
||||
}
|
||||
|
||||
} // End of namespace Buried
|
||||
56
engines/buried/demo/movie_scene.h
Normal file
56
engines/buried/demo/movie_scene.h
Normal file
@@ -0,0 +1,56 @@
|
||||
/* ScummVM - Graphic Adventure Engine
|
||||
*
|
||||
* ScummVM is the legal property of its developers, whose names
|
||||
* are too numerous to list here. Please refer to the COPYRIGHT
|
||||
* file distributed with this source distribution.
|
||||
*
|
||||
* Additional copyright for this file:
|
||||
* Copyright (C) 1995 Presto Studios, Inc.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef BURIED_DEMO_MOVIE_SCENE_H
|
||||
#define BURIED_DEMO_MOVIE_SCENE_H
|
||||
|
||||
#include "buried/window.h"
|
||||
|
||||
namespace Graphics {
|
||||
struct Surface;
|
||||
}
|
||||
|
||||
namespace Buried {
|
||||
|
||||
class MovieDisplayWindow : public Window {
|
||||
public:
|
||||
MovieDisplayWindow(BuriedEngine *vm, Window *parent, const Common::Path &background, const Common::Path &movie, int movieLeft, int movieTop);
|
||||
~MovieDisplayWindow();
|
||||
|
||||
bool showMovieInWindow();
|
||||
|
||||
void onPaint();
|
||||
bool onEraseBackground();
|
||||
void onLButtonUp(const Common::Point &point, uint flags);
|
||||
void onTimer(uint timer);
|
||||
|
||||
private:
|
||||
Graphics::Surface *_background;
|
||||
VideoWindow *_movie;
|
||||
uint _timer;
|
||||
};
|
||||
|
||||
} // End of namespace Buried
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user