| 赞 | 3 |
| VIP | |
| 好人卡 | |
| 积分 | 4 |
| 经验 | |
| 最后登录 | 2025-4-27 |
| 在线时间 | 1196 小时 |
虚構歪曲
- 梦石
- 0
- 星屑
- 354
- 在线时间
- 1196 小时
- 注册时间
- 2010-12-18
- 回帖
- 3842

|
发表于 2011-4-4 12:47:03
|
显示全部楼层
- module RPG
- X = 0
- Y = 0
- Text = "你要显示的内容"
- end
- class Scene_Menu
- alias :old_main :main unless method_defined?("old_main")
- def main
- @text_window = Window_Base.new(RPG::X, RPG::Y, 160, 64)
- @text_window.contents = Bitmap.new(160 - 32, 64 - 32)
- @text_window.contents.clear
- @text_window.contents.draw_text(0, 0, 128, 32, RPG::Text)
- old_main
- end
- end
复制代码 |
|