Indie Dev

Hello Guest!. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, sell your games, upload content, as well as connect with other members through your own private inbox!

Windowjumper - Problem 2

A13XIS

Villager
Xy$
0.00
Okay. Now I really have a problem.


The command to open my selection menu works, i.e. it shows the window.
But the actor commands (the window on the right) is still active, so if I press enter, it executes the command from the old window. "hide()" doesn't help, the actor commands are still active. "close()" and "deactivate" just don't do anything.

The code I used to open the command?
JavaScript:
Scene_Battle.prototype.commandSwitch = function(){
        this._commandWindow.refresh();
        this._commandWindow.show();
        this._commandWindow.select(0);
        this._commandWindow.activate();
    }
aka. the same that is used opening the window to pick an enemy.

So... if someone can help me, please do :)
 

LTN Games

Master Mind
Resource Team
Xy$
0.01
You have to deselect the last windows item, I'm not sure what your code looks like but I'm assuming something like this would work.
JavaScript:
this._actorWindow.deselect();
 
Top