- Joined
- Sep 21, 2018
- Messages
- 22
- Reaction score
- 1
- First Language
- Spanish
- Primarily Uses
- RMMV
Hello everyone, it is me (again). I am now trying to tinker my way unto Window_NumInput (this is my true purpose) and I kind of ... want to use to to also start learning little by little the Window_Selectable function. I just want the number pad to show up, but I am having a hard time trying to figure out how the library itself work.
I will post my example code and tell me what can I do for the sake of it. Thanks a lot.
(function(){
function Window_MiVentana() {
this.iniciar.apply(this,arguments);
}
Window_MiVentana.prototype = Object.create(Window_NumInput.prototype);
Window_MyVentana.prototype.constructor = Window_MiVentana;
Window_MiVentana.prototype.iniciar = function(messageWindow) {
Window_NumInput.prototype.initialize.call(this,messageWindow);
this.refrescarse();
}
Window_MiVentana.prototype.refrescarse = function() {
Game_Message.prototype.setNumberInput.call(this,0,1);
}
var _Scene_Map_createAllWindows2 = Scene_Map.prototype.createAllWindows;
Scene_Map.prototype.createAllWindows = function() {
_Scene_Map_createAllWindows2.call(this);
this.crearMiniMapa2();
};
Scene_Map.prototype.crearMiniMapa2 = function() {
this._entradaNum = new Window_MiVentana('mensaje');
this.addChild(this._entradaNum);
this.update();
};
})();
P.D.: I want it to show up as soon as the scene shows up. If it doesn't allow me to move on the map it is ok. Once I understand how to make it pop-up I can ... take a look at the library and see by myself. Thanks.
I will post my example code and tell me what can I do for the sake of it. Thanks a lot.
(function(){
function Window_MiVentana() {
this.iniciar.apply(this,arguments);
}
Window_MiVentana.prototype = Object.create(Window_NumInput.prototype);
Window_MyVentana.prototype.constructor = Window_MiVentana;
Window_MiVentana.prototype.iniciar = function(messageWindow) {
Window_NumInput.prototype.initialize.call(this,messageWindow);
this.refrescarse();
}
Window_MiVentana.prototype.refrescarse = function() {
Game_Message.prototype.setNumberInput.call(this,0,1);
}
var _Scene_Map_createAllWindows2 = Scene_Map.prototype.createAllWindows;
Scene_Map.prototype.createAllWindows = function() {
_Scene_Map_createAllWindows2.call(this);
this.crearMiniMapa2();
};
Scene_Map.prototype.crearMiniMapa2 = function() {
this._entradaNum = new Window_MiVentana('mensaje');
this.addChild(this._entradaNum);
this.update();
};
})();
P.D.: I want it to show up as soon as the scene shows up. If it doesn't allow me to move on the map it is ok. Once I understand how to make it pop-up I can ... take a look at the library and see by myself. Thanks.



