mirror of
https://github.com/jmarshall23/CnC_Remastered_Collection.git
synced 2026-08-12 08:00:55 +02:00
Draw Powerbar first, buttons + addon (filler) are drawn on top of that.
This commit is contained in:
@@ -778,6 +778,9 @@ void SidebarClass::Draw_It(bool complete)
|
|||||||
// hack: black background for the sidebar
|
// hack: black background for the sidebar
|
||||||
GL_FillRect(TBLACK, SIDE_X * RESFACTOR, 8 * RESFACTOR, SIDE_WIDTH * RESFACTOR, ScreenHeight);
|
GL_FillRect(TBLACK, SIDE_X * RESFACTOR, 8 * RESFACTOR, SIDE_WIDTH * RESFACTOR, ScreenHeight);
|
||||||
|
|
||||||
|
// Draw power on top
|
||||||
|
PowerClass::Draw_It(complete);
|
||||||
|
|
||||||
BStart(BENCH_SIDEBAR);
|
BStart(BENCH_SIDEBAR);
|
||||||
|
|
||||||
if (IsSidebarActive && (IsToRedraw || complete) && !Debug_Map) {
|
if (IsSidebarActive && (IsToRedraw || complete) && !Debug_Map) {
|
||||||
@@ -812,9 +815,6 @@ void SidebarClass::Draw_It(bool complete)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Draw power on top
|
|
||||||
PowerClass::Draw_It(complete);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** Draw the side strip elements by calling their respective draw functions.
|
** Draw the side strip elements by calling their respective draw functions.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user