Large Key Item Select Window

Large Key Item Select Window // The Select Key Item window will cover the entire screen.
Not ideal for games that show this menu and message windows at the same time.

Customization:
  • As of version 1.1, you can enable/disable a help window if you're using Kadafi - Item Select Help. (You will have to manually adjust this script's select item window position if you've changed Kadafi's help window coordinates.)
Updates:
Screenshots:
upload_2019-7-23_12-9-37.png

1.1.png


Setup:

  • Paste under the Materials slot, above main.
Usage Notes:
  • Don't remove the author part of the header. Reposting isn't allowed.
  • Script is allowed for commercial and non-commercial projects.
  • In the game's credits or read.me, credit "ZirconStorms".
Code:
#==============================================================================
#
# ** Title: Large Key Item Select Window 1.1
#    Created: July 2019 (forum request)
#    Creator: ZirconStorms
#
#------------------------------------------------------------------------------
# 1.1 - Added support for Kadafi - Item Select Help.
# 1.0 - Initial release.
#------------------------------------------------------------------------------
#
# Script is allowed for commercial and non-commercial games.
# In the game's credits or read.me, credit "ZirconStorms".
#
#==============================================================================
# Customizable Section Begins Here.
#==============================================================================

module ZSFSKeyItem
 
  KADAFIHELPWINDOW = true
  #Set to true if you're using Kadafi - Item Select Help.
  #(pastebin.com/Pbgq8AEf)
 
end

#==============================================================================
# Customizable Section Ends Here.
#==============================================================================

class Window_KeyItem < Window_ItemList
  #--------------------------------------------------------------------------
  # * Object Initialization
  #--------------------------------------------------------------------------
  def initialize(message_window)
    @message_window = message_window
    super(0, 0, Graphics.width, Graphics.height)
    self.openness = 0
    self.height = Graphics.height - @message_window.help_window.height if ZSFSKeyItem::KADAFIHELPWINDOW == true
    deactivate
    set_handler(:ok,     method(:on_ok))
    set_handler(:cancel, method(:on_cancel))
  end
  #--------------------------------------------------------------------------
  # * Update Window Position
  #--------------------------------------------------------------------------
  def update_placement
    if @message_window.y >= Graphics.height / 2
      self.y = @message_window.help_window.height if ZSFSKeyItem::KADAFIHELPWINDOW == true
    else
      self.y = Graphics.height - height
    end
  end
  #--------------------------------------------------------------------------
end

Original thread: https://forums.rpgmakerweb.com/threads/large-key-item-select-window.111752/