mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 22:27:43 +00:00
Additional CSlideShow work; amuse voice handle integration
This commit is contained in:
@@ -1,11 +1,33 @@
|
||||
#include "CSlideShow.hpp"
|
||||
#include "GameGlobalObjects.hpp"
|
||||
#include "Editor/ProjectManager.hpp"
|
||||
|
||||
namespace urde
|
||||
{
|
||||
|
||||
CSlideShow::CSlideShow()
|
||||
: CIOWin("SlideShow")
|
||||
: CIOWin("SlideShow"), x5c_slideA(*this), x90_slideB(*this)
|
||||
{
|
||||
x130_ = g_tweakSlideShow->GetX54();
|
||||
x134_24_ = true;
|
||||
x134_30_ = true;
|
||||
x135_24_ = true;
|
||||
|
||||
|
||||
/* Originally came from SlideShow tweak */
|
||||
SObjectTag font = ProjectManager::g_SharedManager->TagFromPath(_S("MP1/NoARAM/FONT_Deface14B.yaml"));
|
||||
|
||||
CGuiTextProperties propsA(false, true, EJustification::Center, EVerticalJustification::Bottom);
|
||||
xc4_textA = std::make_unique<CGuiTextSupport>(font.id, propsA,
|
||||
g_tweakSlideShow->GetFontColor(),
|
||||
g_tweakSlideShow->GetOutlineColor(),
|
||||
zeus::CColor::skWhite, 640, 480, g_SimplePool);
|
||||
|
||||
CGuiTextProperties propsB(false, true, EJustification::Right, EVerticalJustification::Bottom);
|
||||
xc8_textB = std::make_unique<CGuiTextSupport>(font.id, propsB,
|
||||
g_tweakSlideShow->GetFontColor(),
|
||||
g_tweakSlideShow->GetOutlineColor(),
|
||||
zeus::CColor::skWhite, 640, 480, g_SimplePool);
|
||||
}
|
||||
|
||||
CIOWin::EMessageReturn CSlideShow::OnMessage(const CArchitectureMessage& msg, CArchitectureQueue& queue)
|
||||
@@ -13,8 +35,25 @@ CIOWin::EMessageReturn CSlideShow::OnMessage(const CArchitectureMessage& msg, CA
|
||||
return EMessageReturn::Exit;
|
||||
}
|
||||
|
||||
void CSlideShow::SSlideData::Draw() const
|
||||
{
|
||||
if (!IsLoaded())
|
||||
return;
|
||||
|
||||
zeus::CRectangle rect;
|
||||
const_cast<CTexturedQuadFilterAlpha&>(*m_texQuad).draw(x30_mulColor, 1.f, rect);
|
||||
|
||||
zeus::CVector2f centeredOffset((x28_canvasSize.x - m_texQuad->GetTex()->GetWidth()) * 0.5f,
|
||||
(x28_canvasSize.y - m_texQuad->GetTex()->GetHeight()) * 0.5f);
|
||||
}
|
||||
|
||||
void CSlideShow::Draw() const
|
||||
{
|
||||
if (x14_phase == Phase::Five)
|
||||
{
|
||||
x5c_slideA.Draw();
|
||||
x90_slideB.Draw();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user