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:
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 复制代码
本贴来自国际rpgmaker官方论坛作者:tvghost处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:
https://forums.rpgmakerweb.com/threads/large-key-item-select-window.111752/