diff --git a/tabs/search/frames.lua b/tabs/search/frames.lua index e8b0dcb..d96362a 100644 --- a/tabs/search/frames.lua +++ b/tabs/search/frames.lua @@ -25,9 +25,24 @@ Aux.search_tab.FRAMES(function(m, public, private) do local btn = Aux.gui.button(m.frame, 22) btn:SetPoint('TOPLEFT', 0, 0) - btn:SetWidth(70) - btn:SetHeight(40) - btn:SetText('_\n_\n_') + btn:SetWidth(42) + btn:SetHeight(42) + local t1 = btn:CreateTexture() + t1:SetTexture(unpack(Aux.gui.config.text_color.enabled)) + t1:SetWidth(20) + t1:SetHeight(3) + t1:SetPoint('CENTER', 0, 7) + local t2 = btn:CreateTexture() + t2:SetTexture(unpack(Aux.gui.config.text_color.enabled)) + t2:SetWidth(20) + t2:SetHeight(3) + t2:SetPoint('CENTER', 0, 0) + local t3 = btn:CreateTexture() + t3:SetTexture(unpack(Aux.gui.config.text_color.enabled)) + t3:SetWidth(20) + t3:SetHeight(3) + t3:SetPoint('CENTER', 0, -7) +-- btn:SetText('_\n_\n_') -- btn:RegisterForClicks('LeftButtonUp', 'RightButtonUp') btn:SetScript('OnClick', function() this.open = not this.open @@ -46,21 +61,21 @@ Aux.search_tab.FRAMES(function(m, public, private) local panel = Aux.gui.panel(m.frame) panel:SetPoint('LEFT', m.settings_button, 'RIGHT', 0, 0) panel:SetPoint('RIGHT', 0, 0) - panel:SetHeight(40) + panel:SetHeight(42) panel:Hide() private.settings = panel end do local panel = CreateFrame('Frame', nil, m.frame) panel:SetPoint('LEFT', m.settings_button, 'RIGHT', 0, 0) - panel:SetPoint('RIGHT', 0, 0) + panel:SetPoint('RIGHT', 0, 1) panel:SetHeight(40) private.controls = panel end do local editbox = Aux.gui.editbox(m.settings) editbox:SetBackdropColor(unpack(Aux.gui.config.frame_color)) - editbox:SetPoint('LEFT', 60, 0) + editbox:SetPoint('LEFT', 55, 0) editbox:SetWidth(30) editbox:SetNumeric(true) editbox:SetMaxLetters(nil) @@ -107,7 +122,7 @@ Aux.search_tab.FRAMES(function(m, public, private) local checkbox = CreateFrame('CheckButton', nil, m.settings, 'UICheckButtonTemplate') checkbox:SetWidth(22) checkbox:SetHeight(22) - checkbox:SetPoint('LEFT', 210, 0) + checkbox:SetPoint('LEFT', 190, 0) checkbox:SetScript('OnClick', function() if m.snipe then m.disable_sniping() @@ -117,7 +132,7 @@ Aux.search_tab.FRAMES(function(m, public, private) m.update_resume() end) local label = Aux.gui.label(checkbox, 15) - label:SetPoint('RIGHT', checkbox, 'LEFT', -10, 0) + label:SetPoint('RIGHT', checkbox, 'LEFT', -7, 0) label:SetText('Sniping') private.snipe_checkbox = checkbox end @@ -125,7 +140,7 @@ Aux.search_tab.FRAMES(function(m, public, private) local checkbox = CreateFrame('CheckButton', nil, m.settings, 'UICheckButtonTemplate') checkbox:SetWidth(22) checkbox:SetHeight(22) - checkbox:SetPoint('LEFT', 300, 0) + checkbox:SetPoint('LEFT', 280, 0) checkbox:SetScript('OnClick', function() if this:GetChecked() then this:SetChecked(nil) @@ -133,7 +148,7 @@ Aux.search_tab.FRAMES(function(m, public, private) end end) local label = Aux.gui.label(checkbox, 15) - label:SetPoint('RIGHT', checkbox, 'LEFT', -10, 0) + label:SetPoint('RIGHT', checkbox, 'LEFT', -7, 0) label:SetText('Auto Buy') private.auto_buy_checkbox = checkbox end @@ -141,7 +156,7 @@ Aux.search_tab.FRAMES(function(m, public, private) local checkbox = CreateFrame('CheckButton', nil, m.settings, 'UICheckButtonTemplate') checkbox:SetWidth(22) checkbox:SetHeight(22) - checkbox:SetPoint('LEFT', 460, 0) + checkbox:SetPoint('LEFT', 405, 0) checkbox:SetScript('OnClick', function() if this:GetChecked() then this:SetChecked(nil) @@ -151,7 +166,7 @@ Aux.search_tab.FRAMES(function(m, public, private) end end) local label = Aux.gui.label(checkbox, 15) - label:SetPoint('RIGHT', checkbox, 'LEFT', -10, 0) + label:SetPoint('RIGHT', checkbox, 'LEFT', -7, 0) label:SetText('Auto Buy Filter') private.auto_buy_filter_checkbox = checkbox end @@ -161,8 +176,8 @@ Aux.search_tab.FRAMES(function(m, public, private) editbox:SetMaxLetters(nil) editbox:EnableMouse(1) editbox.complete = Aux.completion.complete_filter - editbox:SetPoint('LEFT', 500, 0) - editbox:SetWidth(200) + editbox:SetPoint('LEFT', 430, 0) + editbox:SetWidth(290) editbox:SetHeight(25) editbox:SetScript('OnChar', function() this:complete() @@ -179,7 +194,7 @@ Aux.search_tab.FRAMES(function(m, public, private) end do local btn = Aux.gui.button(m.controls, 26) - btn:SetPoint('LEFT', 12, 0) + btn:SetPoint('LEFT', 5, 0) btn:SetWidth(30) btn:SetHeight(25) btn:SetText('<') @@ -197,7 +212,7 @@ Aux.search_tab.FRAMES(function(m, public, private) end do local btn = Aux.gui.button(m.controls, 22) - btn:SetPoint('TOPRIGHT', -5, -8) + btn:SetPoint('TOPRIGHT', -5, -7) btn:SetWidth(70) btn:SetHeight(25) btn:SetText('Start') @@ -212,7 +227,7 @@ Aux.search_tab.FRAMES(function(m, public, private) end do local btn = Aux.gui.button(m.controls, 22) - btn:SetPoint('TOPRIGHT', -5, -8) + btn:SetPoint('TOPRIGHT', -5, -7) btn:SetWidth(70) btn:SetHeight(25) btn:SetText('Stop')