diff --git a/core.xml b/core.xml index d982f32..0954fe5 100644 --- a/core.xml +++ b/core.xml @@ -366,10 +366,9 @@ - + - - + - - - - - this.selector = Aux.completion.selector(this) - this:SetWidth(185) - - - this.selector.suggest() - - - if IsShiftKeyDown() then - this.selector.previous() - else - this.selector.next() - end - - - if this.selector.selected_value() then - this:ClearFocus() - end - - - this.selector.close() - if this.selector.selected_value() then - Aux.item_search_frame.set_item(this.selector.selected_value()) - end - if Aux.item_search_frame.item_set() then - this:Hide() - this.selector.clear() - Aux.item_search_frame.update_item() - end - - - this.selector.clear() - this:ClearFocus() - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sheet.lua b/sheet.lua index afc9444..9c5ac4e 100644 --- a/sheet.lua +++ b/sheet.lua @@ -82,11 +82,12 @@ function public.create(params) local scrollbar = getglobal(scroll_frame:GetName()..'ScrollBar') scrollbar:SetPoint('TOPLEFT', scroll_frame, 'TOPRIGHT', 6, -4) scrollbar:SetPoint('BOTTOMLEFT', scroll_frame, 'BOTTOMRIGHT', 6, 4) + scrollbar:SetWidth(12) local thumbTex = scrollbar:GetThumbTexture() thumbTex:SetPoint('CENTER', 0, 0) thumbTex:SetTexture(42/255, 42/255, 42/255, 1) - thumbTex:SetHeight(params.frame:GetHeight() * .4) - thumbTex:SetWidth(scrollbar:GetWidth()) + thumbTex:SetHeight(50) + thumbTex:SetWidth(12) local scrollbg = scrollbar:CreateTexture(nil, 'BACKGROUND') scrollbg:SetAllPoints(scrollbar) scrollbg:SetTexture(24/255, 24/255, 24/255, 1)