Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //=============================================================================
- // Kadafi_ItemSelectHelp.js
- //=============================================================================
- /*:
- * @plugindesc
- * Item Select Help Window
- *
- * @author Kadafi
- *
- * @help
- */
- //-----------------------------------------------------------------------------
- // Window_Message
- //-----------------------------------------------------------------------------
- Window_Message.prototype.subWindows = function() {
- return [this._helpWindow, this._goldWindow, this._choiceWindow,
- this._numberWindow, this._itemWindow];
- };
- var Window_Message_createSubWindows = Window_Message.prototype.createSubWindows;
- Window_Message.prototype.createSubWindows = function() {
- this._helpWindow = new Window_Help();
- this._helpWindow.openness = 0;
- Window_Message_createSubWindows.call(this);
- this._itemWindow.setHelpWindow(this._helpWindow);
- };
- var Window_Message_startInput = Window_Message.prototype.startInput;
- Window_Message.prototype.startInput = function() {
- if ($gameMessage.isItemChoice()) {
- this._helpWindow.open();
- this._itemWindow.start();
- return true;
- }
- return Window_Message_startInput.call(this);
- };
- var Window_Message_terminateMessage = Window_Message.prototype.terminateMessage;
- Window_Message.prototype.terminateMessage = function() {
- Window_Message_terminateMessage.call(this);
- this._helpWindow.close();
- };
- //-----------------------------------------------------------------------------
- // Window_EventItem
- //-----------------------------------------------------------------------------
- Window_EventItem.prototype.updatePlacement = function() {
- if (this._messageWindow.y >= Graphics.boxHeight / 2) {
- this._messageWindow._helpWindow.y = 0;
- } else {
- this._messageWindow._helpWindow.y = Graphics.boxHeight - this.height - this._messageWindow._helpWindow.height;
- }
- this.y = this._messageWindow._helpWindow.y + this._messageWindow._helpWindow.height;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement