Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //-----------------------------------------------------------------------------
- // No Item Number Plugin by Makeratore
- // This plugin eliminates the number of items from the item window by default.
- //-----------------------------------------------------------------------------
- // For: RPG Maker MV
- //-----------------------------------------------------------------------------
- // 11/11/2019 1.0 Release
- //-----------------------------------------------------------------------------
- // TERMS AND CONDITIONS
- // You can use this plugin in commercial and non-commercial projects.
- // Please, provide credits to Makeratore.
- //
- // This plugin can be found at:
- // http://www.rpg2s.net/forum/
- //-----------------------------------------------------------------------------
- //-----------------------------------------------------------------------------
- /*:
- *
- * @plugindesc This plugin eliminates the number of items from the item window by default.
- *
- * @author Makeratore
- *
- * @help TERMS AND CONDITIONS
- * You can use this plugin in commercial and non-commercial projects.
- * Please, provide credits to Makeratore.
- *
- * PLUGIN COMMANDS:
- *
- * - HideItemNumber false
- * It shows the number of items.
- *
- * - HideItemNumber true
- * It hides the number of items.
- *
- */
- //-----------------------------------------------------------------------------
- //-----------------------------------------------------------------------------
- // Code
- //-----------------------------------------------------------------------------
- (function() {
- var hideItemNumber = "true";
- var _Game_Interpreter_pluginCommand = Game_Interpreter.prototype.pluginCommand;
- Game_Interpreter.prototype.pluginCommand = function(command, args) {
- _Game_Interpreter_pluginCommand.call(this, command, args);
- if (command == "HideItemNumber") {
- hideItemNumber = String(args).trim();
- }
- }
- Window_ItemList.prototype.drawItem = function(index) {
- var item = this._data[index];
- if (item) {
- var numberWidth = this.numberWidth();
- var rect = this.itemRect(index);
- rect.width -= this.textPadding();
- this.changePaintOpacity(this.isEnabled(item));
- this.drawItemName(item, rect.x, rect.y, rect.width - numberWidth);
- if (hideItemNumber == "false") {
- this.drawItemNumber(item, rect.x, rect.y, rect.width);
- }
- // this.drawItemNumber(item, rect.x, rect.y, rect.width);
- this.changePaintOpacity(1);
- }
- };
- })();
- //-----------------------------------------------------------------------------
- // End of plugin
- //-----------------------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement