I'm still learning how RMMV is working and I created a basic window like this (mostly inspired by Window_Gold) :
function Window_RumbleSkillList() {
this.initialize.apply(this, arguments);
};
Window_RumbleSkillList.prototype = Object.create(Window_Base.prototype);
Window_RumbleSkillList.prototype.constructor = Window_RumbleSkillList;
Window_RumbleSkillList.prototype.initialize = function(x, y, width, height) {
Window_Base.prototype.initialize.call(this, x, y, width, height);
this.refresh();
};
Window_RumbleSkillList.prototype.refresh = function() {
this.contents.clear();
this.drawTitle();
};
Window_RumbleSkillList.prototype.drawTitle = function() {
this.drawText('Title Text', 0, 0, this.width - this.textPadding() * 2, 'right');
};
I'm I doing something wrong? because I can see my window, but not my text. Same thing happens if I try to include bitmap as children or contents.
function Window_RumbleSkillList() {
this.initialize.apply(this, arguments);
};
Window_RumbleSkillList.prototype = Object.create(Window_Base.prototype);
Window_RumbleSkillList.prototype.constructor = Window_RumbleSkillList;
Window_RumbleSkillList.prototype.initialize = function(x, y, width, height) {
Window_Base.prototype.initialize.call(this, x, y, width, height);
this.refresh();
};
Window_RumbleSkillList.prototype.refresh = function() {
this.contents.clear();
this.drawTitle();
};
Window_RumbleSkillList.prototype.drawTitle = function() {
this.drawText('Title Text', 0, 0, this.width - this.textPadding() * 2, 'right');
};
I'm I doing something wrong? because I can see my window, but not my text. Same thing happens if I try to include bitmap as children or contents.