- Joined
- Jan 4, 2017
- Messages
- 78
- Reaction score
- 7
- Primarily Uses
hi, im use really long actor names and i have a main class and subclass, but the actor name overlaps onto the class/subclass. I've been messing around with javascript in the rpg_windows.js file, and this is what I found but can't figure out what to do to solve this problem.
this line of code works if i modify it but changes global text to whateve i do with it.
Window_Base.prototype.drawText = function(text, x, y, maxWidth, align) {
this.contents.drawText(text, x, y, maxWidth, this.lineHeight(), align);
};
this line of code if i modify nothing changes no matter what i do but (seems like it would solve my problem if i could figure out how to get this line to actually modify in game text)
Window_Base.prototype.drawActorClass = function(actor, x, y, width) {
width = width || 168;
this.resetTextColor();
this.drawText(actor.currentClass().name, x, y, width);
};
this line of code seems interesting but doesnt do anything either when i try to modify it.
Window_Status.prototype.drawBlock1 = function(y) {
this.drawActorName(this._actor, 6, y);
this.drawActorClass(this._actor, 200, y);
this.drawActorNickname(this._actor, 432, y);
};
the only thing that modifys and works but not correctly is using this line of code
Window_Base.prototype.drawText = function(text, x, y, maxWidth, align) {
this.contents.drawText(text, x, y, maxWidth, this.lineHeight(), align);
};
like if i change align to = 'right' or 'center', it changes the actor name/ class/subclass to align right or center but its GLOBAL so it changes all the text. not specific to my problem. I spent 24 hours trying to figure this out, but no luck, please if you know anything please help...
this line of code works if i modify it but changes global text to whateve i do with it.
Window_Base.prototype.drawText = function(text, x, y, maxWidth, align) {
this.contents.drawText(text, x, y, maxWidth, this.lineHeight(), align);
};
this line of code if i modify nothing changes no matter what i do but (seems like it would solve my problem if i could figure out how to get this line to actually modify in game text)
Window_Base.prototype.drawActorClass = function(actor, x, y, width) {
width = width || 168;
this.resetTextColor();
this.drawText(actor.currentClass().name, x, y, width);
};
this line of code seems interesting but doesnt do anything either when i try to modify it.
Window_Status.prototype.drawBlock1 = function(y) {
this.drawActorName(this._actor, 6, y);
this.drawActorClass(this._actor, 200, y);
this.drawActorNickname(this._actor, 432, y);
};
the only thing that modifys and works but not correctly is using this line of code
Window_Base.prototype.drawText = function(text, x, y, maxWidth, align) {
this.contents.drawText(text, x, y, maxWidth, this.lineHeight(), align);
};
like if i change align to = 'right' or 'center', it changes the actor name/ class/subclass to align right or center but its GLOBAL so it changes all the text. not specific to my problem. I spent 24 hours trying to figure this out, but no luck, please if you know anything please help...
