Im having an issue with the plug Fast Travel from Casper Gaming. The plugin functions correctly however its leaving a space at the top of the window for touch ui. I do have touch ui disabled and the space removed by another plugin which works on all my other windows. I was wondering if anyone has encountered this and knows how to readjust the window position.
MZ CGMZ_FastTravel plugin help
Javascript/Plugin SupportHi, if your game doesn't use touch UI at all but you are using categories in my Fast Travel plugin you can change the function
to
If you are not using categories for my Fast Travel plugin, you would want to instead change the list window y value.
This is something someone has suggested in my Discord so when I update my plugins next it should have the option to remove this space for games that don't use touch UI or anything else in that space.
Code:
//-----------------------------------------------------------------------------
// Get category window rect
//-----------------------------------------------------------------------------
CGMZ_Scene_FastTravel.prototype.categoryWindowRect = function() {
const x = 0;
const y = this.mainAreaTop();
const width = Graphics.boxWidth;
const height = this.calcWindowHeight(1, true);
return new Rectangle(x, y, width, height);
};
Code:
//-----------------------------------------------------------------------------
// Get category window rect
//-----------------------------------------------------------------------------
CGMZ_Scene_FastTravel.prototype.categoryWindowRect = function() {
const x = 0;
const y = 0;
const width = Graphics.boxWidth;
const height = this.calcWindowHeight(1, true);
return new Rectangle(x, y, width, height);
};
If you are not using categories for my Fast Travel plugin, you would want to instead change the list window y value.
Code:
//-----------------------------------------------------------------------------
// Get list window rect
//-----------------------------------------------------------------------------
CGMZ_Scene_FastTravel.prototype.listWindowRect = function() {
const x = 0;
const y = (CGMZ.FastTravel.UseCategories) ? this._categoryWindow.y + this._categoryWindow.height : 0;
const width = Graphics.boxWidth / 3;
let height = Graphics.boxHeight - y;
if(CGMZ.FastTravel.UseCosts) {
height -= this.calcWindowHeight(CGMZ.FastTravel.CostWindowLines, false);
}
return new Rectangle(x, y, width, height);
};
This is something someone has suggested in my Discord so when I update my plugins next it should have the option to remove this space for games that don't use touch UI or anything else in that space.
Thank you so much for this. That worked perfectly!
Original thread: https://forums.rpgmakerweb.com/threads/cgmz_fasttravel-plugin-help.155202/