Adding refreshLayers after betraying your team.

This commit is contained in:
Sergiotarxz 2024-01-14 22:07:59 +01:00
parent 389f325618
commit 278c7c5112
3 changed files with 6 additions and 2 deletions

View File

@ -72,6 +72,7 @@ export default class SelectTeamUI extends AbstractTopBarInterface {
console.error(responseBody.error);
return;
}
this.runCallbacks('update-nodes');
this.runCallbacks('close')
} catch (error) {
console.error('Error parsing json', error);

View File

@ -78,6 +78,9 @@ export default class MapNode {
public openSelectTeam(interfaceManager: InterfaceManager): void {
const selectTeamUI = new SelectTeamUI(this);
selectTeamUI.on('update-nodes', () => {
this.runCallbacks('update-nodes');
});
selectTeamUI.on('close', () => {
interfaceManager.remove(selectTeamUI);
});

File diff suppressed because one or more lines are too long