/*: * @plugindesc Displays Icons in the main menu * Read Help * @author mrcopra * * @help * Write in item's note for get item's icon and switch's ID * Example: * In the note of Potion * write * this will show potion's icon in main menu when switch 10 enabled * * This plugin for at most 12 Items */ var h = 0; var w = 0; var z = 0; var q = 0; ////////////////////////////////////////////////////////////////////////////////////// var _Scene_Menu_start = Scene_Menu.prototype.start; Scene_Menu.prototype.start = function() { _Scene_Menu_start.call(this); this._myWindow = new My_Window(30,100); this.addWindow(this._myWindow); }; function My_Window() { this.initialize.apply(this, arguments); } My_Window.prototype = Object.create(Window_Base.prototype); My_Window.prototype.constructor = My_Window; My_Window.prototype.initialize = function(x, y) { Window_Base.prototype.initialize.call(this, 0, 323, this.windowWidth(), this.windowHeight()); this.contents.clear(); var item = $dataItems for (var i = 1; i/i; /// var collect = item[i].note.match(Collectable); if (collect){ q +=1 collect=Number(collect[1]); if ($gameSwitches.value(collect)){ this.drawIcon(item[i].iconIndex,w*Window_Base._iconWidth+5,z); w +=1; };} } q=0; z=0; w=0; }; My_Window.prototype.windowWidth = function(){ return 240; }; My_Window.prototype.windowHeight = function(){ return this.fittingHeight(2); }; ///////////////////////////////////////////////////////////////////////////////////////////////