Open Crayder opened 8 years ago
Shouldn't be too hard, I'll try and get this in the next update, thanks!
Yeah, I actually have the gradient code basically. It's simple stuff though.
enum
{
BAR_COLOUR_MODE_SINGLE = 1,
BAR_COLOUR_MODE_LEVELED,
BAR_COLOUR_MODE_GRADIENT
}
pbar_colourMode
// pbar_colourMode
stock GetPlayerProgressBarColourMode(playerid, PlayerBar:barid)
{
if(!IsValidPlayerProgressBar(playerid, barid))
return 0;
return pbar_Data[playerid][_:barid][pbar_colourMode];
}
stock SetPlayerProgressBarDirection(playerid, PlayerBar:barid, mode)
{
if(!IsValidPlayerProgressBar(playerid, barid))
return 0;
pbar_Data[playerid][_:barid][pbar_colourMode] = mode;
_RenderBar(playerid, _:barid);
return 1;
}
This is what I've done in the past 5 minutes... planned on doing more but leaving... xD
Two suggestions: