huge filter tab improvements

This commit is contained in:
Manuel Simon Hirsig
2016-08-09 18:02:27 +02:00
parent aefa2efdfc
commit f3cd6b1345
6 changed files with 141 additions and 107 deletions
+5 -7
View File
@@ -225,7 +225,7 @@ function private.create_frames()
btn:SetPoint('RIGHT', m.start_button, 'LEFT', -4, 0)
btn:SetWidth(70)
btn:SetHeight(25)
btn:SetText(aux.auction_listing.COLORS.GREEN..'Resume'..FONT_COLOR_CODE_CLOSE)
btn:SetText(aux.auction_listing.colors.GREEN..'Resume'..FONT_COLOR_CODE_CLOSE)
btn:SetScript('OnClick', function()
m.execute(true)
end)
@@ -508,9 +508,9 @@ function private.create_frames()
btn:RegisterForClicks('LeftButtonUp', 'RightButtonUp')
btn:SetScript('OnClick', function()
if arg1 == 'LeftButton' then
m.add_post_component()
m.add_dropdown_component()
elseif arg1 == 'RightButton' then
m.remove_post_filter()
m.remove_post_component()
end
end)
private.filter_button = btn
@@ -522,7 +522,7 @@ function private.create_frames()
input:SetScript('OnChar', function()
this:complete()
end)
input:SetScript('OnEnterPressed', m.add_post_component)
input:SetScript('OnEnterPressed', m.add_dropdown_component)
input:Hide()
private.filter_input = input
end
@@ -563,9 +563,7 @@ function private.create_frames()
scroll_child:SetFont('p', [[Fonts\ARIALN.TTF]], 26)
scroll_child:SetWidth(1)
scroll_child:SetHeight(1)
scroll_child:SetScript('OnHyperlinkClick', function()
aux.log(arg1, arg2, arg3)
end)
scroll_child:SetScript('OnHyperlinkClick', m.data_link_click)
-- scroll_child:SetHyperlinkFormat("format")
scroll_child.measure = scroll_child:CreateFontString()
private.filter_display = scroll_child