- Joined
- Mar 31, 2013
- Messages
- 259
- Reaction score
- 117
- First Language
- English
- Primarily Uses
- RMMZ
Firstly, I apologize if this is in the wrong section. I'm not exactly sure if this falls under this category or learning javascript..
The point of order is "How to process attribute/parameter names with escape codes to show up in windows?"
Example, I have the screenshot below of the icons setup in the database, but they don't show in game. I know -why- by looking at the code it only draws normal text, but the normal code to draw processed character is mainly for Game_Message()
The screenshot below is using ( YEP_EquipCore ) <- download link in case anyone needs it, and thus the parameter is drawn via this method:
So... how do I convert TextManager.param(paramId) into processed characters?
The point of order is "How to process attribute/parameter names with escape codes to show up in windows?"
Example, I have the screenshot below of the icons setup in the database, but they don't show in game. I know -why- by looking at the code it only draws normal text, but the normal code to draw processed character is mainly for Game_Message()
Code:
Window_Base.prototype.drawTextEx = function(text, x, y) {
if (text) {
var textState = { index: 0, x: x, y: y, left: x };
textState.text = this.convertEscapeCharacters(text);
textState.height = this.calcTextHeight(textState, false);
this.resetFontSettings();
while (textState.index < textState.text.length) {
this.processCharacter(textState);
}
return textState.x - x;
} else {
return 0;
}
};
Code:
Window_StatCompare.prototype.drawParamName = function(y, paramId) {
var x = this.textPadding();
this.changeTextColor(this.systemColor());
this.drawText(TextManager.param(paramId), x, y, this._paramNameWidth);
};
Attachments
-
1.2 MB Views: 9
Last edited:



