| 赞 | 153 |
| VIP | |
| 好人卡 | |
| 积分 | 93 |
| 经验 | |
| 最后登录 | 2024-5-6 |
| 在线时间 | 2504 小时 |
- 梦石
- 0
- 星屑
- 9292
- 在线时间
- 2504 小时
- 注册时间
- 2011-5-20
- 回帖
- 14521

|
加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有账号?注册会员
×
[pre lang="ruby" line="1"]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[/pre]
首先按照某个教程做了个窗口···
然后- [url=home.php?mod=space&uid=420706]@Scene[/url] = Window_Story.new
复制代码 用这个呼出来,再按X关掉,依然会显示囧@VIPArcher |
|