if item_32?
# 计算光标坐标
x = @index % @column_max * (cursor_width + 32)
y = @index / @column_max * 40 - self.oy
# 更新光标矩形
self.cursor_rect.set(x, y, cursor_width, 40)
else
x = @index % @column_max * (cursor_width + 32)
y = @index / @column_max * 32 - self.oy
# 更新光标矩形
self.cursor_rect.set(x, y, cursor_width, 32)
end
item_32?
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |