Well, I posted a previous post about adding a rainbow bar at the top of the menu. Fixed that, and works fine. but there is one problem that really is annoying me. https :// gyazo. com/ 3287ce5153037cbfba7b709803e620a2 (cant post links) Once I open the menu, everything is fine, but when I close it, the rainbow bar just stays on the screen. Any help? Thank you.
Original(w/o rainbow)
Code:
Render::Clear(window->m_x, window->m_y + 2 + 20, window->m_iWidth, 4, UI_COL_MAIN);
New(with rainbow)
Code:
Render::GradientV(window->m_x, window->m_y + 2 + 20, window->m_iWidth, 4, Color::FromHSB(rainbow, 1.f, 1.f), Color::FromHSB(rainbow, 1.f, 1.f));