diff --git a/Platform/WebServer/index.html b/Platform/WebServer/index.html index 663111b2f..9766c8a38 100644 --- a/Platform/WebServer/index.html +++ b/Platform/WebServer/index.html @@ -58,7 +58,7 @@ "splashTextLine3Html": '' }, { - "splashTextLine1Html": 'Superalgos is a community of algo traders, sharing knowleadge, experience, and tools.' + "splashTextLine1Html": 'Superalgos is a community of algo traders, sharing knowledge, experience, and tools.' , "splashTextLine2Html": 'We negotiate with exchanges and pass on benefits to all members. Become part of the Superalgos Community by making a small contribution to the open-source project!' , diff --git a/Projects/Foundations/Icons-SVG-Sources/nodes/missing-image.svg b/Projects/Foundations/Icons-SVG-Sources/nodes/missing-image.svg new file mode 100644 index 000000000..4c726b98d --- /dev/null +++ b/Projects/Foundations/Icons-SVG-Sources/nodes/missing-image.svg @@ -0,0 +1,195 @@ + +image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Projects/Foundations/Icons/Nodes/missing-image.png b/Projects/Foundations/Icons/Nodes/missing-image.png new file mode 100644 index 000000000..d4b795928 Binary files /dev/null and b/Projects/Foundations/Icons/Nodes/missing-image.png differ diff --git a/Projects/Foundations/UI/Spaces/Floating-Space/CircularMenuItem.js b/Projects/Foundations/UI/Spaces/Floating-Space/CircularMenuItem.js index 67fe1cd7c..17c1b8865 100644 --- a/Projects/Foundations/UI/Spaces/Floating-Space/CircularMenuItem.js +++ b/Projects/Foundations/UI/Spaces/Floating-Space/CircularMenuItem.js @@ -110,6 +110,10 @@ function newCircularMenuItem() { iconPhysics() + if (thisObject.icon === undefined) { + console.log('[ERROR] newCircularMenuItem -> initialize -> err = Icon not found, Action: "' + thisObject.action + '", relatedUiObject: "' + thisObject.relatedUiObject +'", label: "' + thisObject.label + '"') + } + selfMouseOverEventSubscriptionId = thisObject.container.eventHandler.listenToEvent('onMouseOver', onMouseOver) selfMouseClickEventSubscriptionId = thisObject.container.eventHandler.listenToEvent('onMouseClick', onMouseClick) selfMouseNotOverEventSubscriptionId = thisObject.container.eventHandler.listenToEvent('onMouseNotOver', onMouseNotOver) @@ -263,7 +267,6 @@ function newCircularMenuItem() { thisObject.iconOn = UI.projects.foundations.spaces.designSpace.getIconByProjectAndName('Foundations', thisObject.secondaryIcon) thisObject.iconOff = UI.projects.foundations.spaces.designSpace.getIconByProjectAndName('Foundations', thisObject.secondaryIcon) } else { - if (thisObject.label === "Add Dependency Product Folder") { console.log ("Test") } if (thisObject.relatedUiObject !== undefined && thisObject.iconProject !== undefined) { thisObject.iconOn = UI.projects.foundations.spaces.designSpace.getIconByProjectAndType(thisObject.iconProject, thisObject.relatedUiObject) thisObject.iconOff = UI.projects.foundations.spaces.designSpace.getIconByProjectAndType(thisObject.iconProject, thisObject.relatedUiObject) @@ -485,7 +488,9 @@ function newCircularMenuItem() { iconSize = UI.projects.foundations.spaces.floatingSpace.style.node.menuItem.imageSize } - if (thisObject.icon === undefined) { return } + if (thisObject.icon === undefined) { + thisObject.icon = UI.projects.foundations.spaces.designSpace.getIconByProjectAndName('Foundations', 'missing-image') + } if (thisObject.icon.canDrawIcon === true && thisObject.currentRadius > 1 && thisObject.isDeployed === true) { browserCanvasContext.drawImage(thisObject.icon, menuPosition.x - iconSize, menuPosition.y - iconSize, iconSize * 2, iconSize * 2)