#--------------------------------------------------------------------------
# ● 更新光标
#--------------------------------------------------------------------------
def update_cursor
unless @cursor
@cursor_viewport = Viewport.new(0, 0, 465, 26)
@cursor = Sprite.new
@cursor.viewport = @cursor_viewport
@cursor.bitmap = Cache.skillui("cursor_able")
end
@cursor_viewport.visible = false if @index < 0
return unless @index >= 0
ensure_cursor_visible
@cursor_viewport.visible = true
@cursor_viewport.ox = item_rect(@index).x + 72
@cursor_viewport.oy = item_rect(@index).y + 172
end
#--------------------------------------------------------------------------
# ● 更新光标
#--------------------------------------------------------------------------
def update_cursor
unless @cursor
@cursor_viewport = Viewport.new(0, 0, 465, 26)
@cursor = Sprite.new
@cursor.viewport = @cursor_viewport
@cursor.bitmap = Cache.skillui("cursor_able")
end
@cursor_viewport.visible = false if @index < 0
return unless @index >= 0
ensure_cursor_visible
@cursor_viewport.visible = true
@cursor_viewport.ox = item_rect(@index).x + 72
@cursor_viewport.oy = item_rect(@index).y + 172
end