mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-04-27 12:51:42 +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& res = ImGui::GetIO().DisplaySize;
|
||||||
auto drawList = ImGui::GetForegroundDrawList();
|
auto drawList = ImGui::GetForegroundDrawList();
|
||||||
|
|
||||||
// Top bar fade
|
if (OptionsMenu::s_isStage)
|
||||||
drawList->AddRectFilledMultiColor(
|
{
|
||||||
{ 0.0f, 0.0f },
|
// Top bar fade
|
||||||
{ res.x, height },
|
drawList->AddRectFilledMultiColor(
|
||||||
FADE_COLOR0,
|
{ 0.0f, 0.0f },
|
||||||
FADE_COLOR0,
|
{ res.x, height },
|
||||||
FADE_COLOR1,
|
FADE_COLOR0,
|
||||||
FADE_COLOR1);
|
FADE_COLOR0,
|
||||||
|
FADE_COLOR1,
|
||||||
// Bottom bar fade
|
FADE_COLOR1);
|
||||||
drawList->AddRectFilledMultiColor(
|
|
||||||
{ res.x, res.y },
|
// Bottom bar fade
|
||||||
{ 0.0f, res.y - height },
|
drawList->AddRectFilledMultiColor(
|
||||||
FADE_COLOR0,
|
{ res.x, res.y },
|
||||||
FADE_COLOR0,
|
{ 0.0f, res.y - height },
|
||||||
FADE_COLOR1,
|
FADE_COLOR0,
|
||||||
FADE_COLOR1);
|
FADE_COLOR0,
|
||||||
|
FADE_COLOR1,
|
||||||
|
FADE_COLOR1);
|
||||||
|
}
|
||||||
|
|
||||||
SetShaderModifier(IMGUI_SHADER_MODIFIER_SCANLINE);
|
SetShaderModifier(IMGUI_SHADER_MODIFIER_SCANLINE);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue