Bots Images at Competition Fixed
This commit is contained in:
1 parent
5aa8d492c3
commit
e8c5ad96b3
3 files changed
+2
-5
No files matched your search
@@ -127,7 +127,6 @@
|
||||
productCard.container.eventHandler.listenToEvent('Status Changed', onProductCardStatusChanged);
|
||||
productCard.container.eventHandler.listenToEvent('Mouse Wheel', onMouseWheel);
|
||||
|
||||
console.log("ADDING TO PRODUCT ARRAY", productCard.code, productCards.length)
|
||||
}
|
||||
|
||||
function onMouseWheel(pDelta) {
|
||||
|
||||
+2
-2
@@ -295,11 +295,11 @@
|
||||
let imageId = participant.devTeam + "." + participant.profilePicture;
|
||||
|
||||
const TEAM = devTeam.codeName.toLowerCase();
|
||||
const STORAGE_URL = "https://aadevelop.blob.core.windows.net/module-teams";
|
||||
const BOT = bot.codeName.toLowerCase();
|
||||
|
||||
let botAvatar = new Image();
|
||||
|
||||
botAvatar.src = STORAGE_URL + "/" + TEAM + "/" + TEAM + "-" + "banner.jpg";
|
||||
botAvatar.src = window.canvasApp.context.fbProfileImages.get(TEAM + "-" + BOT);
|
||||
|
||||
competitionPlotter.plotter.payload[k].profile.downLabel = bot.displayName;
|
||||
competitionPlotter.plotter.payload[k].profile.imageId = imageId;
|
||||
|
||||
@@ -245,7 +245,6 @@
|
||||
function onImageLoad() {
|
||||
teamAvatarLoaded = true;
|
||||
imageLoaded();
|
||||
console.log("TEAM IMAGE LOADED", teamAvatar.src);
|
||||
}
|
||||
|
||||
teamAvatar.src = window.canvasApp.context.teamProfileImages.get(TEAM);
|
||||
@@ -257,7 +256,6 @@
|
||||
botAvatarLoaded = true;
|
||||
thisObject.bot.avatar = botAvatar;
|
||||
imageLoaded();
|
||||
console.log("BOT IMAGE LOADED", botAvatar.src);
|
||||
}
|
||||
|
||||
botAvatar.src = window.canvasApp.context.fbProfileImages.get(TEAM + "-" + BOT);
|
||||
|
||||
Reference in new issue
Block a user