backup
This commit is contained in:
+6
-4
@@ -203,13 +203,10 @@ function create_frames()
|
||||
label:SetPoint('LEFT', checkbox, 'RIGHT', 4, 1)
|
||||
label:SetText('Hide this item')
|
||||
hide_checkbox = checkbox
|
||||
end
|
||||
local function money_input()
|
||||
|
||||
|
||||
end
|
||||
do
|
||||
local editbox = gui.editbox(frame.parameters)
|
||||
editbox.name = 'start'
|
||||
editbox:SetPoint('TOPRIGHT', -71, -60)
|
||||
editbox:SetWidth(180)
|
||||
editbox:SetHeight(22)
|
||||
@@ -227,6 +224,7 @@ function create_frames()
|
||||
editbox.change = function() refresh = true end
|
||||
editbox.enter = function() this:ClearFocus() end
|
||||
editbox.focus_loss = function()
|
||||
p = this.SetText
|
||||
this:SetText(money.to_string(get_unit_start_price(), true, nil, 3, nil, true))
|
||||
end
|
||||
do
|
||||
@@ -245,6 +243,7 @@ function create_frames()
|
||||
end
|
||||
do
|
||||
local editbox = gui.editbox(frame.parameters)
|
||||
editbox.name = 'buy'
|
||||
editbox:SetPoint('TOPRIGHT', unit_start_price, 'BOTTOMRIGHT', 0, -19)
|
||||
editbox:SetWidth(180)
|
||||
editbox:SetHeight(22)
|
||||
@@ -262,6 +261,7 @@ function create_frames()
|
||||
editbox.change = function() refresh = true end
|
||||
editbox.enter = function() this:ClearFocus() end
|
||||
editbox.focus_loss = function()
|
||||
p(this.SetText)
|
||||
this:SetText(money.to_string(get_unit_buyout_price(), true, nil, 3, nil, true))
|
||||
end
|
||||
do
|
||||
@@ -277,6 +277,8 @@ function create_frames()
|
||||
buyout_price_percentage = label
|
||||
end
|
||||
unit_buyout_price = editbox
|
||||
local o = editbox.SetText
|
||||
function editbox:SetText(v) p(v) o(self, v) end
|
||||
end
|
||||
do
|
||||
local btn = gui.button(frame.parameters, 14)
|
||||
|
||||
Reference in New Issue
Block a user