(04-02-2020 - 08:31 AM)carlos_20 Wrote: thank you very much i will try to see if i fix it
I don't know why you need 2 designs but whatever, this should do it.
Code:
//outside loops
bool NewDesign = true;
void Infobox(int player)
{
if (NewDesign)
{
GRAPHICS::DRAW_RECT(0.5805f, 0.1763f, 0.1846f, 0.0627f, 0, 255, 255, 255);//Banner
GRAPHICS::DRAW_RECT(0.5805f, 0.4419f, 0.1842f, 0.4680f, backgroundRed, backgroundGreen, backgroundBlue, backgroundOpacity);//background
DrawSprite("timerbars", "lhs_bg", 0.5813f, 0.1763f, 0.1847f, 0.0627f, 0, 171, 0, 255, 255);//Color Right menu
GRAPHICS::DRAW_RECT(0.4895f, 0.4428f, 0.0016f, 0.4681f, 0, 255, 255, 255);//left
GRAPHICS::DRAW_RECT(0.6720f, 0.4428f, 0.0016f, 0.4681f, 171, 0, 255, 255);//right
GRAPHICS::DRAW_RECT(0.5810f, 0.6771f, 0.1846f, 0.00046f, 0, 255, 255, 255);//down
DrawSprite("timerbars", "lhs_bg", 0.5813f, 0.6771f, 0.1846f, 0.00046f, 0, 171, 0, 255, 255);//Color Right menu
}
else
{
GRAPHICS::DRAW_RECT(0.5805f, 0.4419f, 0.1842f, 0.4680f, 16, 16, 16, 100);//background
GRAPHICS::DRAW_RECT(0.5805f, 0.1763f, 0.1846f, 0.0627f, bannerRectRed, bannerRectGreen, bannerRectBlue, bannerRectOpacity);//Banner
GRAPHICS::DRAW_RECT(0.4895f, 0.4428f, 0.0016f, 0.4681f, bannerRectRed, bannerRectGreen, bannerRectBlue, bannerRectOpacity);//left
GRAPHICS::DRAW_RECT(0.6720f, 0.4428f, 0.0016f, 0.4681f, bannerRectRed, bannerRectGreen, bannerRectBlue, bannerRectOpacity);//right
GRAPHICS::DRAW_RECT(0.5810f, 0.6771f, 0.1846f, 0.00046f, bannerRectRed, bannerRectGreen, bannerRectBlue, bannerRectOpacity);//down
}
drawText(PLAYER::GET_PLAYER_NAME(player), 6, 0.5430f, 0.1530f, 0.7f, 0.7f, 100, 100, 100, 255, false)
}
//into player list submenu
Infobox(CurrentOption - 1);
Serozoid - FREE & FOREVER