no more decimals in post

This commit is contained in:
Manuel Simon Hirsig
2017-03-28 07:25:56 +02:00
parent 2dc7352581
commit bd4676d862
4 changed files with 38 additions and 42 deletions
+2 -2
View File
@@ -249,7 +249,7 @@ do
end
end)
editbox.formatter = function() return money.to_string(unit_start_price, true) end
editbox.char = function() bid_selection, buyout_selection = nil, nil end
editbox.char = function() bid_selection, buyout_selection = nil, nil; unit_start_price = money.from_string(this:GetText()) end
editbox.change = function() refresh = true end
editbox.enter = function() this:ClearFocus() end
editbox.focus_loss = function()
@@ -284,7 +284,7 @@ do
end
end)
editbox.formatter = function() return money.to_string(unit_buyout_price, true) end
editbox.char = function() buyout_selection = nil end
editbox.char = function() buyout_selection = nil; unit_buyout_price = money.from_string(this:GetText()) end
editbox.change = function() refresh = true end
editbox.enter = function() this:ClearFocus() end
editbox.focus_loss = function()