This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(function() { angular.element(document.body).injector().invoke(['$rootScope', 'shrub-socket', 'shrub-ui/notifications', function($rootScope, socket, notifications) { if (window.playMessageSound) { window.playMessageSound = false; notifications.add({text: 'Message sound disabled'}); } else { window.playMessageSound = true; if (!window.messageSound) { window.messageSound = document.createElement('audio'); window.messageSound.src = 'http://reddichat.com/chat-message.mp3'; socket.on('reddichat.chat.message', function() { if (window.playMessageSound) window.messageSound.play(); }); } notifications.add({text: 'Message sound enabled'}); } $rootScope.$digest(); }]); })(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
angular.element(document.body).injector().invoke(['$rootScope', 'shrub-socket', 'shrub-ui/notifications', function($rootScope, socket, notifications) { | |
if (window.playMessageSound) { | |
window.playMessageSound = false; | |
notifications.add({text: 'Message sound disabled'}); | |
} | |
else { | |
window.playMessageSound = true; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$module.service 'title', [ | |
'$timeout' | |
($timeout) -> | |
# Certain things will want to make the window/tab title flash for attention. | |
# Those things will use this API to do so. | |
_flashUpWrapper = (text) -> "¯¯¯#{text.toUpperCase()}¯¯¯" | |
_flashDownWrapper = (text) -> "___#{text}___" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Requires ember.js and ember-data.js, socket.io | |
// Initializer for Models | |
window.Models = {}; | |
var SOCKET = '/'; // Served off the root of our app | |
var ID = 'uuid'; | |
var FIND = 'find'; | |
var FIND_MANY = 'findMany'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Avocado loads the 'Initial' state, and from there it's all up to you! | |
avo.States['Initial'] = new class | |
# Called the first time this state is loaded. You can set up any stuff your | |
# state needs here. | |
constructor: -> | |
# Yum, an avocado! | |
@avocado = {} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Avocado loads the 'Initial' state, and from there it's all up to you! | |
avo.States['Initial'] = new class | |
# Called the first time this state is loaded. You can set up any stuff your | |
# state needs here. | |
constructor: -> | |
# Yum, an avocado! | |
@avocado = {} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
main = new MainBrowser() | |
main.initialize().then -> | |
Engine.state = | |
state: 'Environment' | |
args: | |
teleport: | |
environment: '/environment/browser-demo-kstown.environment.json' | |
roomIndex: 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Warning: array_keys() expects parameter 1 to be array, null given in drupal_schema_fields_sql() (line 6880 of /home/cha0s6983/dev/web/5ringsweb.com/esrc_etdb/public_html/includes/common.inc). | |
Warning: Invalid argument supplied for foreach() in entity_metadata_convert_schema() (line 151 of /home/cha0s6983/dev/web/5ringsweb.com/esrc_etdb/public_html/sites/all/modules/entity/entity.info.inc). | |
Warning: in_array() expects parameter 2 to be array, null given in _entity_defaults_rebuild() (line 651 of /home/cha0s6983/dev/web/5ringsweb.com/esrc_etdb/public_html/sites/all/modules/entity/entity.module). | |
User warning: Missing database columns for the exportable entity rules_config as defined by entity_exportable_schema_fields(). Update the according module and run update.php! in _entity_defaults_rebuild() (line 652 of /home/cha0s6983/dev/web/5ringsweb.com/esrc_etdb/public_html/sites/all/modules/entity/entity.module). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"traits": [ | |
{ | |
"type": "Existence" | |
}, | |
{ | |
"type": "Interactive", | |
"state": { | |
"rule": { | |
"name": "Interaction rule", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"uri": "/entity/npc/inside_npc1.entity.json", | |
"traits": [ | |
{ | |
"type": "Existence", | |
"state": { | |
"x": 256, | |
"y": 96 | |
} | |
}, |