#--------------------------------------------------------------------------
# ● 获取项目的绘制矩形
#--------------------------------------------------------------------------
alias super_item_rect item_rect
def item_rect(index)
rect = super_item_rect(index)
if @index >= 0
rect.width - 100;
rect.x += 100
end
return rect
end
#--------------------------------------------------------------------------
# ● 获取值槽区域的矩形
#--------------------------------------------------------------------------
alias super_gauge_area_rect gauge_area_rect
def gauge_area_rect(index)
rect = super_gauge_area_rect(index)
rect.x -= 100 if @index >= 0
return rect
end
#--------------------------------------------------------------------------
# ● 更新光标
#--------------------------------------------------------------------------
alias super_update_cursor update_cursor
def update_cursor
super_update_cursor
refresh
end
end