加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
class Window_MenuCommand alias xxx001_add_original_commands add_original_commands def add_original_commands xxx001_add_original_commands add_command("梗概", :story) end end class Scene_Menu alias xxx001_create_command_window create_command_window def create_command_window xxx001_create_command_window @command_window.set_handler(:story, method(:command_story)) end def command_story SceneManager.call(Scene_Story) end end class Scene_Story < Scene_MenuBase def start super @story_window = Window_Story.new @story_window.set_handler(:cancel, method(:return_scene)) end end class Window_Story < Window_Selectable def initialize super(0, 0, Graphics.width, Graphics.height) draw_text_ex(4, 0, "窗口中描绘的字符串") activate end end class Window_Story < Window_Selectable def initialize super(0, 0, Graphics.width, Graphics.height) story="" $game_variables[7]=1 $game_variables[7]=0 if $game_variables[7]==nil case $game_variables[7] when 0 draw_text_ex(4,0,story) when 1 draw_text_ex(4,0,"11111") when 2 draw_text_ex(4,0,story) end activate end end
class Window_MenuCommand
alias xxx001_add_original_commands add_original_commands
def add_original_commands
xxx001_add_original_commands
add_command("梗概", :story)
end
end
class Scene_Menu
alias xxx001_create_command_window create_command_window
def create_command_window
xxx001_create_command_window
@command_window.set_handler(:story, method(:command_story))
end
def command_story
SceneManager.call(Scene_Story)
end
end
class Scene_Story < Scene_MenuBase
def start
super
@story_window = Window_Story.new
@story_window.set_handler(:cancel, method(:return_scene))
end
end
class Window_Story < Window_Selectable
def initialize
super(0, 0, Graphics.width, Graphics.height)
draw_text_ex(4, 0, "窗口中描绘的字符串")
activate
end
end
class Window_Story < Window_Selectable
def initialize
super(0, 0, Graphics.width, Graphics.height)
story=""
$game_variables[7]=1
$game_variables[7]=0 if $game_variables[7]==nil
case $game_variables[7]
when 0
draw_text_ex(4,0,story)
when 1
draw_text_ex(4,0,"11111")
when 2
draw_text_ex(4,0,story)
end
activate
end
end
首先按照某个教程做了个窗口···
然后- [url=home.php?mod=space&uid=420706]@Scene[/url] = Window_Story.new
复制代码 用这个呼出来,再按X关掉,依然会显示囧@VIPArcher |