reverted some editbox changes as it seems coloring while typing cannot be done properly in vanilla

This commit is contained in:
Manuel Simon Hirsig
2016-09-19 09:19:26 +02:00
parent 7f7d723e1c
commit 852a72581f
2 changed files with 1 additions and 2 deletions
+1
View File
@@ -300,6 +300,7 @@ function public.editbox(parent)
editbox:SetTextInsets(1.5, 1.5, 3, 3)
editbox:SetMaxLetters(nil)
editbox:SetHeight(24)
editbox:SetTextColor(0, 0, 0, 0)
set_content_style(editbox)
editbox:SetScript('OnEscapePressed', function()
this:ClearFocus()
-2
View File
@@ -215,7 +215,6 @@ function create_frames()
unit_buyout_price:SetFocus()
end
end)
editbox.colorizer = function(text) return gsub(text, '[gsc]', function(str) return str == 'g' and money.GOLD_TEXT or str == 's' and money.SILVER_TEXT or str == 'c' and money.COPPER_TEXT end) end
editbox.formatter = function() return money.to_string(get_unit_start_price(), true, nil, 3) end
editbox.change = function() refresh = true end
editbox.enter = function() this:ClearFocus() end
@@ -251,7 +250,6 @@ function create_frames()
stack_size_slider.editbox:SetFocus()
end
end)
editbox.colorizer = function(text) return gsub(text, '[gsc]', function(str) return str == 'g' and money.GOLD_TEXT or str == 's' and money.SILVER_TEXT or str == 'c' and money.COPPER_TEXT end) end
editbox.formatter = function() return money.to_string(get_unit_buyout_price(), true, nil, 3) end
editbox.change = function() refresh = true end
editbox.enter = function() this:ClearFocus() end