Hey there! 🙂
I'm working on my own custom menu at the moment and it's going fine so far. But I would like to implement that the states are not shown beside each other. Instead they should be displayed on a single square and toggle at a set frame speed. The problem is that I can't figure out how to do that.
I know how I can draw the icons I just need to know how to toggle between them. The construct looks like this at the moment:
The "refreshStates" part is just there because I wasn't sure if it must be refreshed in the same function or in a different one. And it's possible that this code is just plain bullshit, I'm still learning and looking the things up as I need them xD
So, if someone could tell me how I can toggle between the states or give me at least a hint which commands I would need that would be great 🙂
I'm working on my own custom menu at the moment and it's going fine so far. But I would like to implement that the states are not shown beside each other. Instead they should be displayed on a single square and toggle at a set frame speed. The problem is that I can't figure out how to do that.
I know how I can draw the icons I just need to know how to toggle between them. The construct looks like this at the moment:
Window_MenuStatus.prototype.drawStates = function(actor, x, y, width) {
if (actor.allIcons().length > 1) {
var icons = actor.allIcons();
for (var i = 0; i < icons.length; i++) {
this.drawIcon(icons, x, y + 2);
//this.refreshStates();
}
}
else {
var icons = actor.allIcons();
for (var i = 0; i < icons.length; i++) {
this.drawIcon(icons, x, y + 2);
}
}
};
if (actor.allIcons().length > 1) {
var icons = actor.allIcons();
for (var i = 0; i < icons.length; i++) {
this.drawIcon(icons, x, y + 2);
//this.refreshStates();
}
}
else {
var icons = actor.allIcons();
for (var i = 0; i < icons.length; i++) {
this.drawIcon(icons, x, y + 2);
}
}
};
The "refreshStates" part is just there because I wasn't sure if it must be refreshed in the same function or in a different one. And it's possible that this code is just plain bullshit, I'm still learning and looking the things up as I need them xD
So, if someone could tell me how I can toggle between the states or give me at least a hint which commands I would need that would be great 🙂