Jab-Punch

Warper
Member
Joined
Aug 29, 2016
Messages
2
Reaction score
0
First Language
English
Primarily Uses
Hello,


I am trying to modify the YEP_RowFormation plugin to better organize rows by adding a grid format that includes setting default rows and columns for each battler. I have successfully created the format for the battle phase and am now trying to fix the Row Menu to better adjust the actors in fixed positions. After creating a function for the cursor window to move without left/right/up/down without moving an actor, my next objective was to add a select feature to grab an actor and drag him/her along the cursor. Unfortunately, the rowFormationWindow.setHandler function is not cooperating with the system when I try to add an 'OK' trigger within the first argument. The primary issue is that the game keeps freezing whenever I press OK after entering the Row Menu. Does anyone know how to fix this issue? Perhaps there is another function within whatever rowFormationWindow is inheriting from that is interfering with the execution?


I have the file attached with the issue occurring at line 2701.


This is what I altered so far as well as the conditions I anticipated to work with the 'OK' set handler:


Scene_Row.prototype.createRowFormationWindow = function() {
    var wy = this._helpWindow.height;
    this._rowFormationWindow = new Window_RowFormation(wy);
    this._rowFormationWindow.setHelpWindow(this._helpWindow);
    this._rowFormationWindow.setHandler('ok',     this.onRowOk.bind(this));
    this._rowFormationWindow.setHandler('cancel', this.popScene.bind(this));
    this.addWindow(this._rowFormationWindow);
};


Scene_Row.prototype.onRowOk = function() {
    console.log("This is printed out!");
};

View attachment YEP_RowFormation_Up.js
 

Jab-Punch

Warper
Member
Joined
Aug 29, 2016
Messages
2
Reaction score
0
First Language
English
Primarily Uses
Seeing as how no one has answered yet, I have already located the issue. It turns out the function within the set handler requires the .activate() function to be called at the end in order to continue the game loop. I am not certain as to why this is a huge requirement though, so any explanation regarding activate() would be appreciated.
 

Latest Threads

Latest Posts

Latest Profile Posts

I'm finally back! :kaojoy:
A lot of RL issues happened this year which didn't let me work on Aithne as much, but I am back with new inspiration!
In that time my art style also changed a little, so I'll be doing a small art change with busts/menu art
Ops forgot to fix the hand on the weaponless sprite o_O
opening old GIMP files is a blessing and a curse because it can be fun to look at art you started once upon a time and want to finish BUT come to a total halt when you remember your past self forgot to create separate layers for most files
"The bigger the person, the longer the wait"

Forum statistics

Threads
113,722
Messages
1,076,934
Members
147,751
Latest member
DaTedinator
Top