def refresh super @help_window.set_text("????") if @help_window end def cursor_down(wrap = false); super;refresh;end def cursor_up(wrap = false); super;refresh;end def cursor_left(wrap = false); super;refresh;end def cursor_right(wrap = false); super;refresh;end
def help_window=(help_window) @help_window = help_window call_update_help refresh end
def initialize super(0,80) end
#-------------------------------------------------------------------------- # ● 选项窗口的类 #-------------------------------------------------------------------------- class Window_M5Command < Window_Command #-------------------------------------------------------------------------- # ● 载入窗口以及选项帮助窗口 #-------------------------------------------------------------------------- def initialize super(0, fitting_height(2)) @m5_command_help = Window_Help.new @m5_command_help.set_text(current_ext) end #-------------------------------------------------------------------------- # ● 生成选项列表 #-------------------------------------------------------------------------- def make_command_list add_command("选项1", :cho1, true, "选择了选项1") add_command("选项2", :cho2, true, "选择了选项2") add_command("选项3", :cho3, true, "选择了选项3") add_command("选项4", :cho4, true, "选择了选项4") end #-------------------------------------------------------------------------- # ● 释放选项帮助窗口 #-------------------------------------------------------------------------- def dispose super @m5_command_help.dispose end #-------------------------------------------------------------------------- # ● 如果光标移动时,更新帮助窗口 #-------------------------------------------------------------------------- def process_cursor_move last_index = @index super @m5_command_help.set_text(current_ext) if @index != last_index end end #-------------------------------------------------------------------------- # ● Scene #-------------------------------------------------------------------------- class Scene_Test < Scene_MenuBase def start super @command_window = Window_M5Command.new end end class << SceneManager def first_scene_class $BTEST ? Scene_Battle : Scene_Test end end
无标题.png (118.23 KB, 下载次数: 49)
还是显示那句话,有一瞬间的刷新为技能描述。
VIPArcher 发表于 2014-4-23 13:55
你看我发的那个脚本就是 Window_EquipCommand 在那个窗口里也是一样的情况,Window_SkillCommand那里我也 ...
无标题.png (148.56 KB, 下载次数: 47)
一样的问题
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |