mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-09 21:32:31 +02:00
Wireframe a metadata overlay tutorial
This commit is contained in:
parent
6ed972257f
commit
0f9c637c5a
1 changed files with 28 additions and 0 deletions
28
scripts/tutorials/getDomainMetadata.js
Normal file
28
scripts/tutorials/getDomainMetadata.js
Normal file
|
@ -0,0 +1,28 @@
|
|||
//
|
||||
// Created by Zach Pomerantz on June 16, 2016.
|
||||
// Copyright 2016 High Fidelity, Inc.
|
||||
//
|
||||
// Distributed under the Apache License, Version 2.0.
|
||||
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
||||
//
|
||||
|
||||
// Avoid polluting the namespace
|
||||
// !function() {
|
||||
var MetadataNotification = null;
|
||||
|
||||
// Every time you enter a domain, display the domain's metadata
|
||||
SomeEvent.connect(function() {
|
||||
// Fetch the domain metadata from the directory
|
||||
|
||||
// Display the fetched metadata in an overlay
|
||||
|
||||
});
|
||||
|
||||
// Remove the overlay if the script is stopped
|
||||
Script.scriptEnding.connect(teardown);
|
||||
|
||||
function teardown() {
|
||||
// Close the overlay, if it exists
|
||||
|
||||
}
|
||||
// }();
|
Loading…
Reference in a new issue