Displaying Help for MenuCommand

● ARCHIVED · READ-ONLY
Started by Rello 4 posts View original ↗
  1. Hey all,

    I'm trying to put something together that displays "Help" text for Menu Commands, and I've ran intro some problems (such as, it not working xD;).

    This is what I have so far:

    Defining the Text

    Spoiler
    class Window_MenuCommand < Window_Command #-------------------------------------------------------------------------- # * Update Help Text #-------------------------------------------------------------------------- def update_help text = "" if self.active case current_symbol when :item text = "View/use Collected Items." when :skill text = "View/Use Skills and Spells" when :equip text = "View/Equip Weapons and Armor" when :status text = "View Personal Information" when :formation text = "Change Battle Party" when :game_end text = "View/Manage System Settings" end end @help_window.set_text(text) endend
    Relevant Section of Scene_Menu

    Spoiler
    #-------------------------------------------------------------------------- # * Start Processing #-------------------------------------------------------------------------- def start super create_command_window create_gold_window create_status_window create_help_window end #-------------------------------------------------------------------------- # * Create Command Window #-------------------------------------------------------------------------- def create_command_window @command_window = Window_MenuCommand.new @command_window.set_handler:)item, method:)command_item)) @command_window.set_handler:)skill, method:)command_personal)) @command_window.set_handler:)equip, method:)command_personal)) @command_window.set_handler:)status, method:)command_personal)) @command_window.set_handler:)formation, method:)command_formation)) @command_window.set_handler:)game_end, method:)command_game_end)) @command_window.set_handler:)cancel, method:)return_scene)) @command_window.help_window = @help_window end 
    The Help window displays, but remains black. Any help would be appreciated. Thank you.
  2. haha normally this use the Vocab module is maybe why you have a little problem~
  3. I can't say anything normally uses Vocab for what I'm trying to do?
  4. the code looks fine.. however... I'm not sure why you aren't getting errors because your command window is created/called before you help window is called/created. Try taking out this line:

    @command_window.help_window = @help_windowand moving it down to after your help window is set up.

    if you redefine the help window in the current scene, then add it to the bottom of that method or try this:

    def start super create_command_window create_gold_window create_status_window create_help_window @command_window.help_window = @help_window endIf that doesn't fix it.. I'm just not seeing the issue and think your probably is somewhere else in the code