Profile Pics at Competition
This commit is contained in:
1 parent
b3ac3d16e1
commit
7f368a7b80
3 files changed
+12
-1
No files matched your search
Binary file not shown.
@@ -177,6 +177,17 @@
|
||||
plotter.container.frame.position.x = thisObject.container.frame.width / 2 - plotter.container.frame.width / 2;
|
||||
plotter.container.frame.position.y = thisObject.container.frame.height / 2 - plotter.container.frame.height / 2;
|
||||
|
||||
/* We add the profile picture of each participant, because the plotter will need it. */
|
||||
|
||||
for (let k = 0; k < competition.participants.length; k++) {
|
||||
|
||||
let participant = competition.participants[k];
|
||||
let devTeam = ecosystem.getTeam(participant.devTeam);
|
||||
let bot = ecosystem.getBot(devTeam, participant.bot);
|
||||
participant.profilePicture = bot.profilePicture;
|
||||
|
||||
}
|
||||
|
||||
plotter.initialize(competition, storage, datetime, timePeriod, onPlotterInizialized);
|
||||
|
||||
function onPlotterInizialized(err) {
|
||||
|
||||
@@ -6,7 +6,7 @@ if (CONSOLE_LOG === true) {
|
||||
|
||||
}
|
||||
|
||||
const DEBUG_MODE = false; // This forces the server to read Plotters from the local drive.
|
||||
const DEBUG_MODE = true; // This forces the server to read Plotters from the local drive.
|
||||
|
||||
if (CONSOLE_LOG === true && DEBUG_MODE === true) {
|
||||
|
||||
|
||||
Reference in new issue
Block a user