- Joined
- Nov 12, 2018
- Messages
- 78
- Reaction score
- 12
- First Language
- Russian
- Primarily Uses
- Other
Can anyone make a guide on how to create command windows with options and handlers please?
I was able to create a window using this code
but thats about it. I cant do anyhthing more than that (I cant even close it lol)
I want to learn how to do my own command menu
I took a look at original rpg maker's scripts but I can't figure it out
I was able to create a window using this code
Code:
function MyWindow() {
this.initialize.apply(this, arguments);
}
MyWindow.prototype = Object.create(Window_Base.prototype)
MyWindow.prototype.constructor = MyWindow;
MyWindow.prototype.initialize = function(x, y, width, height) {
Window_Base.prototype.initialize.call(this, 0, 0, Graphics.boxWidth, lh);
this.refresh();
}
MyWindow.prototype.refresh = function() {
this.contents.clear();
this.drawText(text, 0, 0);
}
var scene = Scene_Map.prototype.start;
Scene_Map.prototype.start = function(){
scene.apply(this, arguments);
this.myWindow = new MyWindow();
this.addChild(this.myWindow);
};
I want to learn how to do my own command menu
I took a look at original rpg maker's scripts but I can't figure it out
