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