refactoring
This commit is contained in:
+2
-2
@@ -285,12 +285,12 @@ do
|
|||||||
stack_size_slider.editbox:SetFocus()
|
stack_size_slider.editbox:SetFocus()
|
||||||
end
|
end
|
||||||
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.char = function() buyout_selection = nil end
|
||||||
editbox.change = function() refresh = true end
|
editbox.change = function() refresh = true end
|
||||||
editbox.enter = function() this:ClearFocus() end
|
editbox.enter = function() this:ClearFocus() end
|
||||||
editbox.focus_loss = function()
|
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
|
end
|
||||||
do
|
do
|
||||||
local label = gui.label(editbox, gui.font_size.small)
|
local label = gui.label(editbox, gui.font_size.small)
|
||||||
|
|||||||
Reference in New Issue
Block a user