Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CleanWindow Feature #45

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

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