加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
我想把我的战斗指令菜单挪个位置
像这样
然后按照别的帖子的方法,对
class Window_ActorCommand < Window_Command
#--------------------------------------------------------------------------
# ● 初始化对象
#--------------------------------------------------------------------------
def initialize
super(0, 0)
里面的坐标进行了修改
然后也修改了
def create_info_viewport @info_viewport = Viewport.new @info_viewport.rect.y = Graphics.height - @status_window.height @info_viewport.rect.height = @status_window.height @info_viewport.z = 100 @info_viewport.ox = 64 @status_window.viewport = @info_viewport end
def create_info_viewport
@info_viewport = Viewport.new
@info_viewport.rect.y = Graphics.height - @status_window.height
@info_viewport.rect.height = @status_window.height
@info_viewport.z = 100
@info_viewport.ox = 64
@status_window.viewport = @info_viewport
end
中的
@info_viewport.rect.y = Graphics.height - @status_window.height @info_viewport.rect.height = @status_window.height
@info_viewport.rect.y = Graphics.height - @status_window.height
@info_viewport.rect.height = @status_window.height
viewport的y和height设置成需要的参数
但是修改出来还是
就像红色部分那里,感觉好像被一个看不见的框体限制住了一样,命令选择的框体只能和左边的人物头像和状态框体等高而不能突破。
又去试着修改了状态框体行数的返回值,变成6行后就成这样
不知道为什么,感觉好像指令框体的高度和状态头像框体的高度是捆绑在一起的?还是说他们本来就只是一个框体?只不过进行了分割,左边显示状态
右边显示战斗指令。
可以的话,求高手帮我写个脚本,或者教教我怎么改成上面我想改成的样子。万分感谢! |