remove test values for UI

This commit is contained in:
Beu 2021-10-16 12:29:50 +02:00
parent d0b114d82f
commit 2c55b82757

View File

@ -759,11 +759,11 @@ Void SetML() {
PlayerNameColor = <0.431,0.98,0.627>; // Green PlayerNameColor = <0.431,0.98,0.627>; // Green
} }
if (Index < 2 /* 8 */ || Index == 4 /* 10 */|| GUIPlayer == Null || (GUIPlayerPassed && PlayerUID != GUIPlayer.User.WebServicesUserId) || (GUIPlayerPassed && PlayerUID == GUIPlayer.User.WebServicesUserId && Rank <= 2 /* 8 */)) { if (Index < 8 || Index == 10 || GUIPlayer == Null || (GUIPlayerPassed && PlayerUID != GUIPlayer.User.WebServicesUserId) || (GUIPlayerPassed && PlayerUID == GUIPlayer.User.WebServicesUserId && Rank <= 8 )) {
DevLog("[Update UI] Normal Entry"); DevLog("[Update UI] Normal Entry");
SetPlayerEntry(Index,Rank,User.Name,PlayerNameColor,Net_RoundPoints[PlayerUID],Points); SetPlayerEntry(Index,Rank,User.Name,PlayerNameColor,Net_RoundPoints[PlayerUID],Points);
Index = Index + 1; Index = Index + 1;
} else if (GUIPlayerPassed && PlayerUID == GUIPlayer.User.WebServicesUserId && Rank > 2 /* 8 */) { } else if (GUIPlayerPassed && PlayerUID == GUIPlayer.User.WebServicesUserId && Rank > 8 ) {
DevLog("[Update UI] Last Entries"); DevLog("[Update UI] Last Entries");
if (Rank == PlayersMatchPoints.count) { if (Rank == PlayersMatchPoints.count) {
SetPlayerEntry(Index,Rank-2,PreviousPreviousUser.Name,<1.,1.,1.>,Net_RoundPoints[PreviousPreviousUser.WebServicesUserId],PlayersMatchPoints[PreviousPreviousUser.WebServicesUserId]); SetPlayerEntry(Index,Rank-2,PreviousPreviousUser.Name,<1.,1.,1.>,Net_RoundPoints[PreviousPreviousUser.WebServicesUserId],PlayersMatchPoints[PreviousPreviousUser.WebServicesUserId]);
@ -778,7 +778,7 @@ Void SetML() {
PreviousPreviousUser <=> PreviousUser; PreviousPreviousUser <=> PreviousUser;
PreviousUser <=> User; PreviousUser <=> User;
} }
if (Index > 4) break; //10 if (Index > 10) break;
Rank = Rank + 1; Rank = Rank + 1;
} }
} }