diff --git a/.vs/AAWebPlatform/v15/.suo b/.vs/AAWebPlatform/v15/.suo index 3fa100778..3c88494f1 100644 Binary files a/.vs/AAWebPlatform/v15/.suo and b/.vs/AAWebPlatform/v15/.suo differ diff --git a/Panels/ProductsPanel.js b/Panels/ProductsPanel.js index 8da0683ed..720da8957 100644 --- a/Panels/ProductsPanel.js +++ b/Panels/ProductsPanel.js @@ -1,7 +1,4 @@ - - - -function newProductsPanel() { +function newProductsPanel() { var thisObject = { container: undefined, @@ -31,7 +28,7 @@ function newProductsPanel() { function initialize() { - thisObject.container.frame.width = 300; + thisObject.container.frame.width = 400; thisObject.container.frame.height = viewPort.visibleArea.bottomRight.y - viewPort.visibleArea.topLeft.y + 15; var position = { diff --git a/ProductCard.js b/ProductCard.js index 3e35d49fb..57b3ebb8f 100644 --- a/ProductCard.js +++ b/ProductCard.js @@ -79,8 +79,8 @@ }; this.container.frame.position = position; - this.container.frame.width = 280; - this.container.frame.height = 60; + this.container.frame.width = 380; + this.container.frame.height = 80; /* We retrieve the locally stored status of the Product */ @@ -290,32 +290,31 @@ */ + const devTeamImageSize = 45; + const botImageSize = 45; + let teamImagePoint = { x: 10, - y: 5 + y: thisObject.container.frame.height / 2 - devTeamImageSize / 2 }; teamImagePoint = thisObject.container.frame.frameThisPoint(teamImagePoint); - let teamImage = document.getElementById("AAMasters"); - browserCanvasContext.drawImage(teamImage, teamImagePoint.x, teamImagePoint.y, 45, 45); + let teamImage = document.getElementById(thisObject.bot.devTeam + ".png"); + browserCanvasContext.drawImage(teamImage, teamImagePoint.x, teamImagePoint.y, devTeamImageSize, devTeamImageSize); - centerPoint = { - x: thisObject.container.frame.width - 10, - y: thisObject.container.frame.height / 2 - }; - - if (thisObject.bot.codeName === "AAOlivia") { + if (thisObject.bot.profilePicture !== undefined) { let botImagePoint = { x: thisObject.container.frame.width - 10 - 50, - y: 5 + y: thisObject.container.frame.height / 2 - botImageSize / 2 }; botImagePoint = thisObject.container.frame.frameThisPoint(botImagePoint); - let botImage = document.getElementById("AAOlivia"); - browserCanvasContext.drawImage(botImage, botImagePoint.x, botImagePoint.y, 45, 45); + let imageId = thisObject.bot.devTeam + "." + thisObject.bot.profilePicture; + let botImage = document.getElementById(imageId); + browserCanvasContext.drawImage(botImage, botImagePoint.x, botImagePoint.y, botImageSize, botImageSize); } @@ -379,7 +378,7 @@ labelPoint = { x: 65, - y: thisObject.container.frame.height - 45 + y: thisObject.container.frame.height / 2 - 15 }; labelPoint = thisObject.container.frame.frameThisPoint(labelPoint); @@ -393,7 +392,7 @@ labelPoint = { x: 65, - y: thisObject.container.frame.height - 30 + y: thisObject.container.frame.height / 2 - 0 }; labelPoint = thisObject.container.frame.frameThisPoint(labelPoint); @@ -407,7 +406,7 @@ labelPoint = { x: 65, - y: thisObject.container.frame.height - 15 + y: thisObject.container.frame.height / 2 + 15 }; labelPoint = thisObject.container.frame.frameThisPoint(labelPoint); diff --git a/index.html b/index.html index f92007933..60aabe174 100644 --- a/index.html +++ b/index.html @@ -75,6 +75,8 @@