Skip to content

Commit

Permalink
Removed textdraw streamer suport.
Browse files Browse the repository at this point in the history
  • Loading branch information
devbluen authored Mar 1, 2024
1 parent b461e5c commit f30ced6
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Circulo.inc
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ enum CircleDraw_Enum {
CircleDraw_Background,
// Draws
bool:CircleDraw_Created[120 + 1],
PlayerText:CircleDraw_Points[120 + 1]
}
new CircleDraw[MAX_PLAYERS][MAX_CIRCULOS_DRAW][CircleDraw_Enum];
Expand Down Expand Up @@ -155,8 +156,10 @@ stock UpdatePlayerCircleProgress(playerid, drawId, value) {
PlayerTextDrawAlignment(playerid, CircleDraw[playerid][drawId][CircleDraw_Points][count], 2);
PlayerTextDrawLetterSize(playerid, CircleDraw[playerid][drawId][CircleDraw_Points][count], CircleDraw[playerid][drawId][CircleDraw_Thickness], CircleDraw[playerid][drawId][CircleDraw_Thickness] + (CircleDraw[playerid][drawId][CircleDraw_Thickness] * 2));
PlayerTextDrawSetShadow(playerid, CircleDraw[playerid][drawId][CircleDraw_Points][count], 0);
}
PlayerTextDrawColor(playerid, CircleDraw[playerid][drawId][CircleDraw_Points][count], percent <= count ? (CircleDraw[playerid][drawId][CircleDraw_Background]) : (CircleDraw[playerid][drawId][CircleDraw_Color]));
CircleDraw[playerid][drawId][CircleDraw_Created][count] = true;
}
PlayerTextDrawColor(playerid, CircleDraw[playerid][drawId][CircleDraw_Points][count], percent <= count ? (CircleDraw[playerid][drawId][CircleDraw_Background]) : (CircleDraw[playerid][drawId][CircleDraw_Color]));
count++;
}
Expand All @@ -165,7 +168,7 @@ stock UpdatePlayerCircleProgress(playerid, drawId, value) {
CircleDraw[playerid][drawId][CircleDraw_Value] = value;
for(new i = 0; i < count; i++) {
if(!IsValidDynamicPlayerTextDraw(playerid, CircleDraw[playerid][drawId][CircleDraw_Points][i])) continue;
if(!CircleDraw[playerid][drawId][CircleDraw_Created][i]) continue;
PlayerTextDrawShow(playerid, CircleDraw[playerid][drawId][CircleDraw_Points][i]);
}
return true;
Expand Down

0 comments on commit f30ced6

Please sign in to comment.