加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
菜单的状态窗口怎么改成?:光标移动到该角色的时候该角色向左看,前进一小步,并且原地踏步。应该怎么弄?脚本在此:
#============================================================================== # ■ Window_MenuStatus #------------------------------------------------------------------------------ # 显示菜单画面和同伴状态的窗口。 #============================================================================== class Window_MenuStatus < Window_Selectable #-------------------------------------------------------------------------- # ● 初始化目标 #-------------------------------------------------------------------------- def initialize super(0, 0, 447, 165)#447 160 self.contents = Bitmap.new(width - 32, height - 32) refresh self.active = false self.index = -1 end #-------------------------------------------------------------------------- # ● 刷新 #-------------------------------------------------------------------------- def refresh self.contents.clear @item_max = $game_party.actors.size for i in 0...$game_party.actors.size x = 64 y = i * 34 actor = $game_party.actors[i] draw_actor_graphic(actor, x - 30, y+32 ) draw_actor_hp(actor, x+50, y) if $game_switches[1] = true draw_actor_sp(actor, x + 210, y ) end end end #-------------------------------------------------------------------------- # ● 刷新光标矩形 #-------------------------------------------------------------------------- def update_cursor_rect if @index < 0 self.cursor_rect.empty else self.cursor_rect.set(0, @index * 34, 64, 37) end end end
#==============================================================================
# ■ Window_MenuStatus
#------------------------------------------------------------------------------
# 显示菜单画面和同伴状态的窗口。
#==============================================================================
class Window_MenuStatus < Window_Selectable
#--------------------------------------------------------------------------
# ● 初始化目标
#--------------------------------------------------------------------------
def initialize
super(0, 0, 447, 165)#447 160
self.contents = Bitmap.new(width - 32, height - 32)
refresh
self.active = false
self.index = -1
end
#--------------------------------------------------------------------------
# ● 刷新
#--------------------------------------------------------------------------
def refresh
self.contents.clear
@item_max = $game_party.actors.size
for i in 0...$game_party.actors.size
x = 64
y = i * 34
actor = $game_party.actors[i]
draw_actor_graphic(actor, x - 30, y+32 )
draw_actor_hp(actor, x+50, y)
if $game_switches[1] = true
draw_actor_sp(actor, x + 210, y )
end
end
end
#--------------------------------------------------------------------------
# ● 刷新光标矩形
#--------------------------------------------------------------------------
def update_cursor_rect
if @index < 0
self.cursor_rect.empty
else
self.cursor_rect.set(0, @index * 34, 64, 37)
end
end
end
我觉得应该是在刷新光标矩形哪里改,但是不会改,教教我呗?
@芯☆淡茹水 |