Skip to content

Conversation

@hopollo
Copy link

@hopollo hopollo commented Nov 19, 2019

This feature allow player to automatically get rid of all popus comings after each fights (Not in the "Master" character) such as Fight Results, LevelUp + anything that was open to keep a game window clean and ready to roll.


if (currentPlayerId !== leaderId) {
setTimeout(() => {
for (let i = this.wGame.gui.windowsContainer._childrenList.length - 1; i >= 0; i--) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

const wdw = this.wGame.gui.windowsContainer._childrenList.find(w => w.isVisible());
if (wdw) wdw.close();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants