mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-28 13:15:30 +01:00
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
@ -26,6 +26,7 @@ public class ClientConfigurationComponent extends Component {
|
|||||||
s(t, "dynmapversion", plugin.getDescription().getVersion());
|
s(t, "dynmapversion", plugin.getDescription().getVersion());
|
||||||
s(t, "cyrillic", c.getBoolean("cyrillic-support", false));
|
s(t, "cyrillic", c.getBoolean("cyrillic-support", false));
|
||||||
s(t, "showlayercontrol", c.getBoolean("showlayercontrol", true));
|
s(t, "showlayercontrol", c.getBoolean("showlayercontrol", true));
|
||||||
|
s(t, "grayplayerswhenhidden", c.getBoolean("grayplayerswhenhidden", true));
|
||||||
String sn = plugin.getServer().getServerName();
|
String sn = plugin.getServer().getServerName();
|
||||||
if(sn.equals("Unknown Server"))
|
if(sn.equals("Unknown Server"))
|
||||||
sn = "Minecraft Dynamic Map";
|
sn = "Minecraft Dynamic Map";
|
||||||
|
@ -236,6 +236,9 @@ fullrenderplayerlimit: 0
|
|||||||
|
|
||||||
showplayerfacesinmenu: true
|
showplayerfacesinmenu: true
|
||||||
|
|
||||||
|
# Control whether players that are hidden or not on current map are grayed out (true=yes)
|
||||||
|
grayplayerswhenhidden: true
|
||||||
|
|
||||||
# Set sidebaropened: 'true' to pin menu sidebar opened permanently, 'pinned' to default the sidebar to pinned, but allow it to unpin
|
# Set sidebaropened: 'true' to pin menu sidebar opened permanently, 'pinned' to default the sidebar to pinned, but allow it to unpin
|
||||||
#sidebaropened: true
|
#sidebaropened: true
|
||||||
|
|
||||||
|
@ -695,6 +695,7 @@ DynMap.prototype = {
|
|||||||
$(me).trigger('playerupdated', [ player ]);
|
$(me).trigger('playerupdated', [ player ]);
|
||||||
|
|
||||||
// Update menuitem.
|
// Update menuitem.
|
||||||
|
if(me.options.grayplayerswhenhidden)
|
||||||
player.menuitem.toggleClass('otherworld', me.world !== location.world);
|
player.menuitem.toggleClass('otherworld', me.world !== location.world);
|
||||||
|
|
||||||
if (player === me.followingPlayer) {
|
if (player === me.followingPlayer) {
|
||||||
|
Loading…
Reference in New Issue
Block a user