pass loaded portal details via a hook into the portal render code - so placeholder portals get updated (highlighters, etc) as you view them
This commit is contained in:
@ -69,6 +69,13 @@ window.MapDataRequest = function() {
|
||||
|
||||
// ensure we have some initial map status
|
||||
this.setStatus ('startup', undefined, -1);
|
||||
|
||||
// add a portalDetailLoaded hook, so we can use the exteneed details to update portals on the map
|
||||
var _this = this;
|
||||
addHook('portalDetailLoaded',function(data){
|
||||
_this.render.processGameEntities([data.ent]);
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user