refactoring
This commit is contained in:
+2
-2
@@ -285,12 +285,12 @@ do
|
||||
stack_size_slider.editbox:SetFocus()
|
||||
end
|
||||
end)
|
||||
editbox.formatter = function() return money.to_string(get_unit_buyout_price(), true, nil, 3) end
|
||||
editbox.formatter = function() return money.to_string(unit_buyout_price, true, nil, 3) end
|
||||
editbox.char = function() buyout_selection = nil end
|
||||
editbox.change = function() refresh = true end
|
||||
editbox.enter = function() this:ClearFocus() end
|
||||
editbox.focus_loss = function()
|
||||
this:SetText(money.to_string(get_unit_buyout_price(), true, nil, 3, nil, true))
|
||||
this:SetText(money.to_string(unit_buyout_price, true, nil, 3, nil, true))
|
||||
end
|
||||
do
|
||||
local label = gui.label(editbox, gui.font_size.small)
|
||||
|
||||
Reference in New Issue
Block a user