class Sprite_WindowCursor def update_position rect = @window.cursor_rect self.z = @window.z + 100 self.x = @window.x + rect.x - @window.ox + BUFFER_X + @effect[1] self.y = @window.y + rect.y - @window.oy + BUFFER_Y + rect.height / 2 + @effect[2] if vp = @window.viewport self.x += vp.x self.y += vp.y end end end
class Sprite_WindowCursor
def update_position
rect = @window.cursor_rect
self.z = @window.z + 100
self.x = @window.x + rect.x - @window.ox + BUFFER_X + @effect[1]
self.y = @window.y + rect.y - @window.oy +
BUFFER_Y + rect.height / 2 + @effect[2]
if vp = @window.viewport
self.x += vp.x
self.y += vp.y
end
end
end
感觉是这样,未测试 |