diff --git a/OutlawEditor/src/main/resources/mythos/mythos-editor/html/editor.html b/OutlawEditor/src/main/resources/mythos/mythos-editor/html/editor.html index a4b498a6..0c63107f 100644 --- a/OutlawEditor/src/main/resources/mythos/mythos-editor/html/editor.html +++ b/OutlawEditor/src/main/resources/mythos/mythos-editor/html/editor.html @@ -150,7 +150,7 @@ - + Name @@ -612,7 +612,114 @@ - + + + Picture + + + + + TEXT + + + + + + + AND + + + EQ + + + event + + + + + use + + + + + + + EQ + + + data + + + + + Item? + + + + + + + + + + + + + + ? + + + + + + + Text + + + + + + + (press any key) + + + + + + + + + + + + + + Text + + + + + + + (press any key) + + + + + + + + + + + + + + + + + + @@ -621,22 +728,22 @@ var blocklyDiv = document.getElementById('blocklyDiv'); Mythos.initBlocks(); Mythos.workspace = Blockly.inject(blocklyDiv, - {path: '../../', toolbox: document.getElementById('toolbox'), sounds: false}); + {path: '../../', toolbox: document.getElementById('toolbox'), sounds: false}); var onresize = function (e) { - // Compute the absolute coordinates and dimensions of blocklyArea. - var element = blocklyArea; - var x = 0; - var y = 0; - do { - x += element.offsetLeft; - y += element.offsetTop; - element = element.offsetParent; - } while (element); - // Position blocklyDiv over blocklyArea. - blocklyDiv.style.left = x + 'px'; - blocklyDiv.style.top = y + 'px'; - blocklyDiv.style.width = blocklyArea.offsetWidth + 'px'; - blocklyDiv.style.height = blocklyArea.offsetHeight + 'px'; + // Compute the absolute coordinates and dimensions of blocklyArea. + var element = blocklyArea; + var x = 0; + var y = 0; + do { + x += element.offsetLeft; + y += element.offsetTop; + element = element.offsetParent; + } while (element); + // Position blocklyDiv over blocklyArea. + blocklyDiv.style.left = x + 'px'; + blocklyDiv.style.top = y + 'px'; + blocklyDiv.style.width = blocklyArea.offsetWidth + 'px'; + blocklyDiv.style.height = blocklyArea.offsetHeight + 'px'; }; window.addEventListener('resize', onresize, false); onresize();