From ac8db0202980a7000961b18d10633b2ef80c5807 Mon Sep 17 00:00:00 2001 From: Andrew Meadows Date: Wed, 11 Feb 2015 08:54:35 -0800 Subject: [PATCH] add ShapeType to UI of entity properties editor --- examples/html/entityProperties.html | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/examples/html/entityProperties.html b/examples/html/entityProperties.html index 08fbb1cea8..84a8d23a74 100644 --- a/examples/html/entityProperties.html +++ b/examples/html/entityProperties.html @@ -155,6 +155,7 @@ var elModelAnimationSettings = document.getElementById("property-model-animation-settings"); var elModelTextures = document.getElementById("property-model-textures"); var elModelOriginalTextures = document.getElementById("property-model-original-textures"); + var elModelShapeType = document.getElementById("property-model-shape"); var elTextSections = document.querySelectorAll(".text-section"); var elTextText = document.getElementById("property-text-text"); @@ -258,6 +259,7 @@ elModelAnimationSettings.value = properties.animationSettings; elModelTextures.value = properties.textures; elModelOriginalTextures.value = properties.originalTextures; + elModelShapeType.value = properties.shapeType; } if (properties.type != "Text") { @@ -404,6 +406,7 @@ elModelAnimationFrame.addEventListener('change', createEmitNumberPropertyUpdateFunction('animationFrameIndex')); elModelAnimationSettings.addEventListener('change', createEmitTextPropertyUpdateFunction('animationSettings')); elModelTextures.addEventListener('change', createEmitTextPropertyUpdateFunction('textures')); + elModelShapeType.addEventListener('change', createEmitNumberPropertyUpdateFunction('shapeType')); elTextText.addEventListener('change', createEmitTextPropertyUpdateFunction('text')); elTextLineHeight.addEventListener('change', createEmitNumberPropertyUpdateFunction('lineHeight')); @@ -664,6 +667,17 @@ +
+
Shape Type
+
+ +
+
+
Text