Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Patch for Item Menu
- # Use as example how to make window specific commands
- module Config
- module FF9_Help
- # Window_Command = {...}
- Window_ItemCategory = {
- # Item Scene
- "Items" => ['View items \i[261] you have.'],
- "Weapons" => ['View weapons \i[144] you have.'],
- "Armours" => ['View armors \i[160] you have.'],
- "Key Items" => ['View key items \i[240] you have.'],
- }
- end
- end
- class Window_ItemCategory < Window_HorzCommand
- def ff9_help_text
- # Config::FF9_Help::Window_Command[command_name(index)]
- Config::FF9_Help::Window_ItemCategory[command_name(index)]
- end
- def ff9_help_avalaible?
- # Config::FF9_Help::Window_Command.include?(command_name(index)) rescue return
- Config::FF9_Help::Window_ItemCategory.include?(command_name(index)) rescue return
- end
- end
- =begin
- # Works the same in custom Window_Selectable's with these methods
- def ff9_help_text
- Config::FF9_Help::YOUR_CUSTOM_WINDOW[@data[index].name]
- end
- def ff9_help_avalaible?
- Config::FF9_Help::YOUR_CUSTOM_WINDOW.include?(@data[index].name) rescue return
- end
- =end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement