This commit is contained in:
Manuel Simon Hirsig
2016-09-06 01:47:25 +02:00
parent 213924d9c8
commit 59161b0212
7 changed files with 59 additions and 36 deletions
+6 -4
View File
@@ -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)