- 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
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
