diff --git a/src/games/cclcc/savemenu.cpp b/src/games/cclcc/savemenu.cpp index 65372047..b6674a4a 100644 --- a/src/games/cclcc/savemenu.cpp +++ b/src/games/cclcc/savemenu.cpp @@ -10,7 +10,7 @@ #include "../../data/savesystem.h" #include "../../vm/vm.h" -#include "../../profile/games/cclcc/titlemenu.h" +#include "titlemenu.h" namespace Impacto { namespace UI { @@ -229,7 +229,7 @@ void SaveMenu::Render() { if (State != Hidden) { glm::vec4 col(1.0f, 1.0f, 1.0f, FadeAnimation.Progress); if(LastFocusedMenu == TitleMenuPtr) { - Renderer->DrawSprite(Profile::CCLCC::TitleMenu::BackgroundSprite, glm::vec2(0.0f), col); + static_cast(TitleMenuPtr)->DrawMainMenuBackGraphics(false); } else { Renderer->DrawSprite(SaveMenuBackgroundSprite, glm::vec2(0.0f), col); } diff --git a/src/games/cclcc/titlemenu.h b/src/games/cclcc/titlemenu.h index 8713aba0..73ba6ebd 100644 --- a/src/games/cclcc/titlemenu.h +++ b/src/games/cclcc/titlemenu.h @@ -33,6 +33,10 @@ class TitleMenu : public Menu { void MenuButtonOnClick(Widgets::Button* target); void ContinueButtonOnClick(Widgets::Button* target); void ExtraButtonOnClick(Widgets::Button* target); + + void DrawMainBackground(float opacity = 1.0f); + void DrawMainMenuBackGraphics(bool isTransition); + void DrawSmoke(float opacity); private: Widgets::Group* CurrentSubMenu = 0; @@ -57,10 +61,7 @@ class TitleMenu : public Menu { void ShowExtraItems(); void HideExtraItems(); - void DrawMainBackground(float opacity = 1.0f); void DrawStartButton(); - void DrawMainMenuBackGraphics(bool isTransition); - void DrawSmoke(float opacity); }; } // namespace CCLCC