Dell SE2422HX 24-Inch FHD Monitor
Slim 24-inch Full HD monitor for a clean desk, second screen, or work setup.
View on Amazon
Bmmplay may earn a commission from qualifying purchases made through these links.
No products in the cart.
Simple enough for a child, powerful enough for a developer
BMM_Archive · July 15, 2026
Hi, I hope I can make a few questions under the same threat, if not I will split them. I'm currently working on the [Select Item] (Window_EventItem) function to transform it into an Inventory. Instead of drawing the items it just draws the icons (128x128), that I will switch for drawings on the Icon-sheet. I'm working directly on the code, not in a pluggin, since I'm still learning and it's easier for me this way until I learn more. This is the part that works correctly:
Dell SE2422HX 24-Inch FHD Monitor
Slim 24-inch Full HD monitor for a clean desk, second screen, or work setup.
View on Amazon
Bmmplay may earn a commission from qualifying purchases made through these links.
//-----------------------------------------------------------------------------
// Window_EventItem
//
// The window used for the event command [Select Item]. MODIFIED.
function Window_EventItem() {
this.initialize.apply(this, arguments);
}
Window_EventItem.prototype = Object.create(Window_ItemList.prototype);
Window_EventItem.prototype.constructor = Window_EventItem;
Window_EventItem.prototype.initialize = function(messageWindow) {
this._messageWindow = messageWindow;
var width = 900; // changed
var height = 600; // changed
Window_ItemList.prototype.initialize.call(this, (Graphics.boxWidth / 2) - (width / 2), (Graphics.boxHeight / 2) - (height / 2), width, height); //changed to center the box
this.opacity = 0; // added
this.openness = 0;
this.deactivate();
this.setHandler('ok', this.onOk.bind(this));
this.setHandler('cancel', this.onCancel.bind(this));
};
Window_EventItem.prototype.maxCols = function() {
return 6;
};
Window_EventItem.prototype.spacing = function() {
return 12; // Need to improve.
};
// Changed the size for the icons.
Window_EventItem.prototype.itemWidth = function() {
return 130;
};
Window_EventItem.prototype.itemHeight = function() {
return 130;
};
// Instead of drawing the text it only draws the Icons, sized 128x128.
Window_EventItem.prototype.drawItem = function(index) {
var item = this._data[index];
if (item) {
var rect = this.itemRect(index);
rect.width -= this.textPadding();
this.changePaintOpacity(this.isEnabled(item));
this.drawItemName(item, rect.x, rect.y, rect.width);
this.changePaintOpacity(1);
}
};
Window_EventItem.prototype.drawItemName = function(item, x, y, width) {
width = width || 312;
if (item) {
var iconBoxWidth = Window_Base._iconWidth + 4;
this.resetTextColor();
this.drawIcon(item.iconIndex, x + 2, y + 2);
}
};
Window_EventItem.prototype.start = function() {
this.refresh();
//this.updatePlacement(); REMOVED
this.select(0);
this.open();
this.activate();
};
Window_EventItem.prototype.includes = function(item) {
var itypeId = $gameMessage.itemChoiceItypeId();
return DataManager.isItem(item) && item.itypeId === itypeId;
};
Window_EventItem.prototype.isEnabled = function(item) {
return true;
};
Window_EventItem.prototype.onOk = function() {
var item = this.item();
var itemId = item ? item.id : 0;
$gameVariables.setValue($gameMessage.itemChoiceVariableId(), itemId);
this._messageWindow.terminateMessage();
this.close();
};
Window_EventItem.prototype.onCancel = function() {
$gameVariables.setValue($gameMessage.itemChoiceVariableId(), 0);
this._messageWindow.terminateMessage();
this.close();
};
Window_EventItem.prototype.start = function() {
this.refresh();
this.createBackground(); // add
this.select(0);
this.open();
this.activate();
};
Window_EventItem.prototype.createBackground = function() {
this._background = new Sprite();
this._background.bitmap = ImageManager.loadPicture('INV_Basesmall');
this._background.x = this._messageWindow.x - 60;
this._background.y = this._messageWindow.x - 40;
//this._background.anchor.x = 0;
//this._background.anchor.y = 0;
this.addChild(this._background);
};
this._background.z = this._messageWindow.x - 50;
this._background.z = 0;
73: 'i', // I
this.setHandler('i', this.onCancel.bind(this));
Log in, then follow the RPG Maker Developers Group to see these download links.
Log in to downloadIf you are the original creator and want this listing reassigned, edited, or removed, join BMMPlay and contact the moderators with proof that matches the original RPG Maker Web profile, linked GitHub, itch.io page, or another public creator identity.
No replies yet.
Loading summary...
Bmmplay creator tools
Log in or create an account to use this creator tool.
Join the conversation
Your reaction is ready. Log in and you will return to this page to add it.
Are you sure you want to close this music player?
Chromecast with Google TV HD
Compact streaming device for movies, live TV apps, and personalized entertainment.
View on Amazon
Bmmplay may earn a commission from qualifying purchases made through these links.
Community safety