Add 'grayplayerswhenhidden' option to allow disable of graying of players in player list when not visible on current map
This commit is contained in:
parent
5af670de61
commit
3c849b9d66
3 changed files with 6 additions and 1 deletions
|
|
@ -695,7 +695,8 @@ DynMap.prototype = {
|
|||
$(me).trigger('playerupdated', [ player ]);
|
||||
|
||||
// Update menuitem.
|
||||
player.menuitem.toggleClass('otherworld', me.world !== location.world);
|
||||
if(me.options.grayplayerswhenhidden)
|
||||
player.menuitem.toggleClass('otherworld', me.world !== location.world);
|
||||
|
||||
if (player === me.followingPlayer) {
|
||||
// Follow the updated player.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue