赞 | 1 |
VIP | 0 |
好人卡 | 11 |
积分 | 0 |
经验 | 26243 |
最后登录 | 2014-8-4 |
在线时间 | 841 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 48
- 在线时间
- 841 小时
- 注册时间
- 2010-8-11
- 帖子
- 1135
|
1.事件选择框:
在main前插入:- class Window_ChoiceList < Window_Command
- #--------------------------------------------------------------------------
- # ● 更新窗口的位置
- #--------------------------------------------------------------------------
- def update_placement
- self.width = [max_choice_width + 12, 96].max + padding * 2
- self.width = [width, Graphics.width].min
- self.height = fitting_height($game_message.choices.size)
- self.x = Graphics.width / 2 - width / 2
- self.y = Graphics.height / 2 - height / 2
- end
- end
复制代码 2.菜单:
在main之前插入:- class Window_MenuCommand < Window_Command
- alias oi initialize
- #--------------------------------------------------------------------------
- # ● 初始化对象
- #--------------------------------------------------------------------------
- def initialize
- oi
- self.x = Graphics.width / 2 - width / 2
- self.y = Graphics.height / 2 - height / 2
- end
- end
复制代码 (以上全都未经测试) |
|