if selected <= idx then |
offset = (selected==1) and 0 or (parent:GetValue() - (parent:GetHeight() / 2)) |
parent:SetValue(offset) |
PlaySound("UChatScrollButton") |
PlaySound(SOUNDKIT.U_CHAT_SCROLL_BUTTON) |
elseif selected >= (idx+12) then |
offset = (selected==#(list)) and ItemRackOptSortListScrollFrame:GetVerticalScrollRange() or (parent:GetValue() + (parent:GetHeight() / 2)) |
parent:SetValue(offset) |
PlaySound("UChatScrollButton"); |
PlaySound(SOUNDKIT.U_CHAT_SCROLL_BUTTON); |
end |
end |
ItemRackOptQueueEnable:SetChecked(ItemRackUser.QueuesEnabled[ItemRackOpt.SelectedSlot]) |