设为首页收藏本站|繁體中文

Project1

 找回密码
 注册会员
搜索
查看: 4570|回复: 2
打印 上一主题 下一主题

[已经解决] 菜单和选择框的位置

[复制链接]

Lv1.梦旅人

梦石
0
星屑
48
在线时间
841 小时
注册时间
2010-8-11
帖子
1135
1
发表于 2013-2-10 14:54:50 | 显示全部楼层
1.事件选择框:
在main前插入:
  1. class Window_ChoiceList < Window_Command
  2.   #--------------------------------------------------------------------------
  3.   # ● 更新窗口的位置
  4.   #--------------------------------------------------------------------------
  5.   def update_placement
  6.     self.width = [max_choice_width + 12, 96].max + padding * 2
  7.     self.width = [width, Graphics.width].min
  8.     self.height = fitting_height($game_message.choices.size)
  9.     self.x = Graphics.width / 2 - width / 2
  10.     self.y = Graphics.height / 2 - height / 2
  11.   end
  12. end
复制代码
2.菜单:
在main之前插入:
  1. class Window_MenuCommand < Window_Command
  2.   alias oi initialize
  3.   #--------------------------------------------------------------------------
  4.   # ● 初始化对象
  5.   #--------------------------------------------------------------------------
  6.   def initialize
  7.     oi
  8.     self.x = Graphics.width / 2 - width / 2
  9.     self.y = Graphics.height / 2 - height / 2
  10.   end
  11. end
复制代码
(以上全都未经测试)

点评

谢谢  发表于 2013-2-11 08:30
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作

GMT+8, 2024-6-14 09:10

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表