forked from CommitteeOfZero/impacto
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c29a899
commit 3242328
Showing
9 changed files
with
133 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
#include "backlogmenu.h" | ||
|
||
#include "../../profile/game.h" | ||
#include "../../ui/backlogmenu.h" | ||
#include "../../profile/ui/systemmenu.h" | ||
#include "../../profile/ui/backlogmenu.h" | ||
#include "../../profile/games/cc/backlogmenu.h" | ||
#include "../../profile/games/cclcc/systemmenu.h" | ||
|
||
namespace Impacto { | ||
namespace UI { | ||
namespace CC { | ||
|
||
using namespace Impacto::UI::CC; | ||
using namespace Impacto::Profile::BacklogMenu; | ||
using namespace Impacto::Profile::CC::BacklogMenu; | ||
|
||
BacklogMenu::BacklogMenu() : UI::BacklogMenu::BacklogMenu() { | ||
switch (Impacto::Profile::SystemMenu::Type) { | ||
default: | ||
MaskSprite = nullptr; | ||
break; | ||
case UI::SystemMenuType::CCLCC: | ||
MaskSprite = &Profile::CCLCC::SystemMenu::MenuMask; | ||
break; | ||
/* Enable once CC system menu is properly seperated | ||
case UI::SystemMenuType::CC: | ||
MaskSprite = &Profile::CC::SystemMenu::MenuMask; | ||
break; | ||
*/ | ||
} | ||
} | ||
|
||
void BacklogMenu::Render() { | ||
if (State == Hidden) return; | ||
|
||
glm::vec4 transition(1.0f, 1.0f, 1.0f, FadeAnimation.Progress); | ||
glm::vec4 maskTint = glm::vec4(1.0f); | ||
maskTint.a = 0.50 * FadeAnimation.Progress; | ||
|
||
MainItems->Tint = transition; | ||
|
||
int repeatHeight = BacklogBackgroundRepeatHeight; | ||
float backgroundY = | ||
fmod(PageY - EntryYPadding - RenderingBounds.Y, repeatHeight); | ||
Renderer->DrawSprite(BacklogBackground, glm::vec2(0.0f, backgroundY), | ||
transition); | ||
Renderer->DrawSprite(BacklogBackground, | ||
glm::vec2(0.0f, backgroundY + repeatHeight), transition); | ||
|
||
RenderHighlight(); | ||
Renderer->DrawSprite(BacklogHeaderSprite, BacklogHeaderPosition, transition); | ||
MainItems->Render(); | ||
MainScrollbar->Render(); | ||
|
||
if (MaskSprite != nullptr) | ||
Renderer->DrawSprite( | ||
*MaskSprite, | ||
RectF(0.0f, 0.0f, Profile::DesignWidth, Profile::DesignHeight), | ||
maskTint); | ||
|
||
Renderer->DrawSprite(BacklogControlsSprite, BacklogControlsPosition, | ||
transition); | ||
} | ||
|
||
} // namespace CC | ||
} // namespace UI | ||
} // namespace Impacto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#include "backlogmenu.h" | ||
|
||
#include "../../ui/backlogmenu.h" | ||
#include "../../profile/ui/backlogmenu.h" | ||
#include "../../profile/games/mo6tw/backlogmenu.h" | ||
#include "../../profile/games/mo6tw/systemmenu.h" | ||
|
||
namespace Impacto { | ||
namespace UI { | ||
namespace MO6TW { | ||
|
||
using namespace Impacto::UI::MO6TW; | ||
using namespace Impacto::Profile::BacklogMenu; | ||
using namespace Impacto::Profile::MO6TW::BacklogMenu; | ||
|
||
void BacklogMenu::Render() { | ||
if (State == Hidden) return; | ||
|
||
glm::vec4 col(1.0f, 1.0f, 1.0f, FadeAnimation.Progress); | ||
MainItems->Tint = col; | ||
|
||
Renderer->DrawSprite(BacklogBackground, glm::vec2(0.0f), col); | ||
RenderHighlight(); | ||
MainItems->Render(); | ||
MainScrollbar->Render(); | ||
} | ||
|
||
} // namespace MO6TW | ||
} // namespace UI | ||
} // namespace Impacto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#pragma once | ||
|
||
#include "../../ui/backlogmenu.h" | ||
|
||
namespace Impacto { | ||
namespace UI { | ||
namespace MO6TW { | ||
|
||
class BacklogMenu : public UI::BacklogMenu { | ||
public: | ||
void Render(); | ||
}; | ||
|
||
} // namespace MO6TW | ||
} // namespace UI | ||
} // namespace Impacto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters