2020-01-15 04:07:48 -08:00
|
|
|
#include "Runtime/MP1/CPlayMovie.hpp"
|
2017-03-30 15:36:18 -07:00
|
|
|
|
2021-06-06 17:35:39 -07:00
|
|
|
#include "Runtime/GuiSys/CGuiFrame.hpp"
|
|
|
|
|
2021-04-10 01:42:06 -07:00
|
|
|
namespace metaforce::MP1 {
|
2015-08-26 17:23:46 -07:00
|
|
|
|
2022-05-23 17:26:35 -07:00
|
|
|
const char* kMovies[] = {
|
|
|
|
"Video/wingame.thp", "Video/wingame_good.thp", "Video/wingame_best.thp", "Video/losegame.thp",
|
|
|
|
"Video/05_tallonText.thp", "Video/AfterCredits.thp", "Video/SpecialEnding.thp", "Video/creditBG.thp",
|
|
|
|
};
|
2015-08-26 17:23:46 -07:00
|
|
|
|
2018-12-07 21:30:43 -08:00
|
|
|
bool CPlayMovie::IsResultsScreen(EWhichMovie which) { return int(which) <= 2; }
|
2017-03-30 15:36:18 -07:00
|
|
|
|
2021-06-03 23:08:05 -07:00
|
|
|
CPlayMovie::CPlayMovie(EWhichMovie which) : CIOWin("CPlayMovie"), x18_which(which) {}
|
|
|
|
|
|
|
|
CIOWin::EMessageReturn CPlayMovie::OnMessage(const CArchitectureMessage& msg, CArchitectureQueue& queue) {
|
|
|
|
return EMessageReturn::RemoveIOWinAndExit;
|
|
|
|
}
|
2022-05-23 17:26:35 -07:00
|
|
|
|
2021-06-03 23:08:05 -07:00
|
|
|
void CPlayMovie::Draw() {
|
|
|
|
if (x14_ != 3) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
DrawVideo();
|
|
|
|
if (x78_27_) {
|
|
|
|
x40_quitScreen->Draw();
|
|
|
|
} else if (x78_26_resultsScreen) {
|
|
|
|
DrawText();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-05-23 17:26:35 -07:00
|
|
|
void CPlayMovie::DrawVideo() {
|
|
|
|
if (x38_moviePlayer) {
|
|
|
|
x38_moviePlayer->DrawVideo();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
void CPlayMovie::DrawText() {
|
|
|
|
// TODO
|
|
|
|
}
|
2017-03-30 15:36:18 -07:00
|
|
|
|
2021-04-10 01:42:06 -07:00
|
|
|
} // namespace metaforce::MP1
|