feat: mario world

This commit is contained in:
Fireblade
2026-06-22 18:55:36 -04:00
parent 8e31c2d29d
commit 929b32fff6
389 changed files with 818 additions and 19 deletions
@@ -2,12 +2,46 @@
#include "UI.h"
#include "UIComponent_Logo.h"
UIComponent_Logo::UIComponent_Logo(int iPad, void *initData, UILayer *parentLayer) : UIScene(iPad, parentLayer)
UIComponent_Logo::UIComponent_Logo(int iPad, void *initData, UILayer *parentLayer) : UIScene(iPad, parentLayer), m_bFullscreenProgressLogoRefreshed(false)
{
// Setup all the Iggy references we need for this scene
initialiseMovie();
}
bool UIComponent_Logo::needsReloaded()
{
if(!hasMovie())
{
return true;
}
UIScene *topScene = ui.GetTopScene(m_iPad);
const bool isSettingsMenuActive = topScene && topScene->getSceneType() == eUIScene_SettingsUIMenu;
if(isSettingsMenuActive)
{
return false;
}
const bool isFullscreenProgressActive = topScene && topScene->getSceneType() == eUIScene_FullscreenProgress;
if(isFullscreenProgressActive && !m_bFullscreenProgressLogoRefreshed)
{
m_bFullscreenProgressLogoRefreshed = true;
return true;
}
if(!isFullscreenProgressActive)
{
m_bFullscreenProgressLogoRefreshed = false;
}
const bool shouldUse1080 = UIScene::SceneShouldUse1080p(getMoviePath());
if(shouldUse1080 && m_loadedResolution != eSceneResolution_1080)
return true;
if(!shouldUse1080 && m_loadedResolution == eSceneResolution_1080)
return true;
return false;
}
wstring UIComponent_Logo::getMoviePath()
{
switch( m_parentLayer->getViewport() )