mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-30 22:24:06 +01:00
Add 'hidechat=true' URL parameter to hide all chat input/output
This commit is contained in:
parent
ed7cccb2d2
commit
3484816325
@ -8,6 +8,10 @@ $.ajax({
|
||||
|
||||
componentconstructors['chat'] = function(dynmap, configuration) {
|
||||
var me = this;
|
||||
|
||||
if(dynmap.getBoolParameterByName("hidechat"))
|
||||
return;
|
||||
|
||||
// Provides 'chat'-events by monitoring the world-updates.
|
||||
$(dynmap).bind('worldupdate', function(event, update) {
|
||||
swtch(update.type, {
|
||||
|
@ -1,5 +1,9 @@
|
||||
componentconstructors['chatballoon'] = function(dynmap, configuration) {
|
||||
var me = this;
|
||||
|
||||
if(dynmap.getBoolParameterByName("hidechat"))
|
||||
return;
|
||||
|
||||
me.chatpopups = {};
|
||||
$(dynmap).bind('playerupdated', function(event, player) {
|
||||
var popup = me.chatpopups[player.name];
|
||||
|
@ -1,5 +1,9 @@
|
||||
componentconstructors['chatbox'] = function(dynmap, configuration) {
|
||||
var me = this;
|
||||
|
||||
if(dynmap.getBoolParameterByName("hidechat"))
|
||||
return;
|
||||
|
||||
var chat = $('<div/>')
|
||||
.addClass('chat')
|
||||
.appendTo(dynmap.options.container);
|
||||
|
Loading…
Reference in New Issue
Block a user