Compass style based on map type. Hacky because widgets have classes, not IDs
This commit is contained in:
parent
553a956949
commit
8d5f081cdf
3 changed files with 15 additions and 1 deletions
|
|
@ -302,6 +302,10 @@ DynMap.prototype = {
|
|||
if (me.maptype === map) {
|
||||
return;
|
||||
}
|
||||
if (me.maptype) {
|
||||
$('.compass').removeClass('compass_' + me.maptype.name);
|
||||
}
|
||||
$('.compass').addClass('compass_' + map.name);
|
||||
var worldChanged = me.world !== map.world;
|
||||
me.map.setMapTypeId('none');
|
||||
me.world = map.world;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue