checkpoint

This commit is contained in:
howard-stearns 2017-01-04 16:55:58 -08:00
parent 90cc9c565a
commit 9709bedca7
4 changed files with 12 additions and 2 deletions

View file

@ -25,6 +25,7 @@
<input type="button" id="visible" class="glyph" value="&#xe007;" />
</div>
<input type="button" id="teleport" value="Jump To Selection" />
<input type="button" id="pal" class="glyph" value="&#xe00c;" />
<input type="button" class="red" id="delete" value="Delete" />
</div>
<div id="entity-list">
@ -94,4 +95,4 @@
</div>
</div>
</body>
</html>
</html>

View file

@ -39,6 +39,7 @@ function loaded() {
elInView = document.getElementById("in-view")
elRadius = document.getElementById("radius");
elTeleport = document.getElementById("teleport");
elPal = document.getElementById("pal");
elEntityTable = document.getElementById("entity-table");
elInfoToggle = document.getElementById("info-toggle");
elInfoToggleGlyph = elInfoToggle.firstChild;
@ -274,6 +275,9 @@ function loaded() {
elTeleport.onclick = function () {
EventBridge.emitWebEvent(JSON.stringify({ type: 'teleport' }));
}
elPal.onclick = function () {
EventBridge.emitWebEvent(JSON.stringify({ type: 'pal' }));
}
elDelete.onclick = function() {
EventBridge.emitWebEvent(JSON.stringify({ type: 'delete' }));
refreshEntities();

View file

@ -120,6 +120,11 @@ EntityListTool = function(opts) {
if (selectionManager.hasSelection()) {
MyAvatar.position = selectionManager.worldPosition;
}
} else if (data.type == "pal") {
print("fixme got pal");
if (selectionManager.hasSelection()) {
print('fixme selection', JSON.stringify(selectionManager.selections));
}
} else if (data.type == "delete") {
deleteSelectedEntities();
} else if (data.type == "toggleLocked") {
@ -140,4 +145,4 @@ EntityListTool = function(opts) {
});
return that;
};
};