Skip to content

Commit

Permalink
Merge pull request #87 from CommitteeOfZero/cclcc/refine-tipsmenu-ui
Browse files Browse the repository at this point in the history
cclcc/refine-tipsmenu-ui: fix current number position and guide zIndex
  • Loading branch information
Enorovan authored Nov 1, 2024
2 parents 5716437 + f9c8a92 commit 8b57638
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion profiles/cclcc/hud/tipsmenu.lua
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ root.TipsMenu = {
CategoryFontSize = 32,
NamePos = { X = 1020, Y = 160},
NameFontSize = 40,
NumberPos = { X = 1807, Y = 84},
NumberPos = { X = 1760, Y = 90},
NumberFontSize = 44,
PronounciationPos = { X = 1020, Y = 246},
PronounciationFontSize = 26,
Expand Down
10 changes: 5 additions & 5 deletions src/games/cclcc/tipsmenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -336,11 +336,6 @@ void TipsMenu::Render() {
TipsTabs[CurrentTabType]->Tint.a = fade.a;
TipsTabs[CurrentTabType]->Render();

Renderer->DrawSprite(
TipsGuideSprite,
glm::vec2(TipsGuideX,
TipsGuideY + Profile::DesignHeight / 2 - LastYPos),
fade);
if (CurrentlyDisplayedTipId != -1) {
TipViewItems.Tint.a = fade.a;
TipViewItems.Render();
Expand All @@ -357,6 +352,11 @@ void TipsMenu::Render() {
RectF(0.0f, Profile::DesignHeight / 2 - LastYPos,
Profile::DesignWidth, Profile::DesignHeight),
maskTint);
Renderer->DrawSprite(
TipsGuideSprite,
glm::vec2(TipsGuideX,
TipsGuideY + Profile::DesignHeight / 2 - LastYPos),
fade);
}
}

Expand Down

0 comments on commit 8b57638

Please sign in to comment.