mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-04-27 04:41:39 +00:00
options_menu: only draw header/footer fade in stages
This commit is contained in:
parent
7b93f1b77f
commit
99b0cf3c31
1 changed files with 20 additions and 17 deletions
|
|
@ -136,23 +136,26 @@ static void DrawScanlineBars()
|
|||
auto& res = ImGui::GetIO().DisplaySize;
|
||||
auto drawList = ImGui::GetForegroundDrawList();
|
||||
|
||||
// Top bar fade
|
||||
drawList->AddRectFilledMultiColor(
|
||||
{ 0.0f, 0.0f },
|
||||
{ res.x, height },
|
||||
FADE_COLOR0,
|
||||
FADE_COLOR0,
|
||||
FADE_COLOR1,
|
||||
FADE_COLOR1);
|
||||
|
||||
// Bottom bar fade
|
||||
drawList->AddRectFilledMultiColor(
|
||||
{ res.x, res.y },
|
||||
{ 0.0f, res.y - height },
|
||||
FADE_COLOR0,
|
||||
FADE_COLOR0,
|
||||
FADE_COLOR1,
|
||||
FADE_COLOR1);
|
||||
if (OptionsMenu::s_isStage)
|
||||
{
|
||||
// Top bar fade
|
||||
drawList->AddRectFilledMultiColor(
|
||||
{ 0.0f, 0.0f },
|
||||
{ res.x, height },
|
||||
FADE_COLOR0,
|
||||
FADE_COLOR0,
|
||||
FADE_COLOR1,
|
||||
FADE_COLOR1);
|
||||
|
||||
// Bottom bar fade
|
||||
drawList->AddRectFilledMultiColor(
|
||||
{ res.x, res.y },
|
||||
{ 0.0f, res.y - height },
|
||||
FADE_COLOR0,
|
||||
FADE_COLOR0,
|
||||
FADE_COLOR1,
|
||||
FADE_COLOR1);
|
||||
}
|
||||
|
||||
SetShaderModifier(IMGUI_SHADER_MODIFIER_SCANLINE);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue