big refactoring
This commit is contained in:
@@ -34,7 +34,7 @@ function create_frames()
|
||||
end
|
||||
do
|
||||
local btn = gui.button(frame, 16)
|
||||
btn:SetPoint('TOPLEFT', m.status_bar, 'TOPRIGHT', 5, 0)
|
||||
btn:SetPoint('TOPLEFT', status_bar, 'TOPRIGHT', 5, 0)
|
||||
btn:SetWidth(80)
|
||||
btn:SetHeight(24)
|
||||
btn:SetText('Cancel')
|
||||
@@ -42,13 +42,13 @@ function create_frames()
|
||||
cancel_button = btn
|
||||
end
|
||||
do
|
||||
local btn = gui.button(m.frame, 16)
|
||||
btn:SetPoint('TOPLEFT', m.cancel_button, 'TOPRIGHT', 5, 0)
|
||||
local btn = gui.button(frame, 16)
|
||||
btn:SetPoint('TOPLEFT', cancel_button, 'TOPRIGHT', 5, 0)
|
||||
btn:SetWidth(80)
|
||||
btn:SetHeight(24)
|
||||
btn:SetText('Refresh')
|
||||
btn:SetScript('OnClick', function()
|
||||
m.scan_auctions()
|
||||
scan_auctions()
|
||||
end)
|
||||
end
|
||||
end
|
||||
+1
-1
@@ -314,7 +314,7 @@ function update_item_configuration()
|
||||
stack_count = stack_count_slider:GetValue()
|
||||
local deposit = floor(selected_item.unit_vendor_price * deposit_factor * (selected_item.max_charges and 1 or stack_size)) * stack_count * UIDropDownMenu_GetSelectedValue(duration_dropdown) / 120
|
||||
|
||||
m.deposit:SetText('Deposit: '..money.to_string(deposit, nil, nil, nil, gui.inline_color.text.enabled))
|
||||
_m.deposit:SetText('Deposit: '..money.to_string(deposit, nil, nil, nil, gui.inline_color.text.enabled))
|
||||
end
|
||||
|
||||
refresh_button:Enable()
|
||||
|
||||
@@ -216,7 +216,7 @@ function create_frames()
|
||||
local frame = CreateFrame('Frame', nil, frame.parameters)
|
||||
start_price_frame = frame
|
||||
gui.set_content_style(frame)
|
||||
frame:SetPoint('TOPRIGHT', m.frame.parameters, 'TOPRIGHT', -71, -60)
|
||||
frame:SetPoint('TOPRIGHT', _m.frame.parameters, 'TOPRIGHT', -71, -60)
|
||||
frame:SetWidth(180)
|
||||
frame:SetHeight(22)
|
||||
local editbox = gui.editbox(frame)
|
||||
|
||||
@@ -73,7 +73,7 @@ function update_form()
|
||||
|
||||
if blizzard_query.exact then
|
||||
for _, key in {'class', 'subclass', 'slot', 'quality'} do
|
||||
m[key..'_dropdown'].button:Disable()
|
||||
_m[key..'_dropdown'].button:Disable()
|
||||
end
|
||||
else
|
||||
class_dropdown.button:Enable()
|
||||
@@ -81,9 +81,9 @@ function update_form()
|
||||
end
|
||||
for _, key in {'min_level', 'max_level'} do
|
||||
if blizzard_query.exact then
|
||||
m[key..'_input']:Disable()
|
||||
_m[key..'_input']:Disable()
|
||||
else
|
||||
m[key..'_input']:Enable()
|
||||
_m[key..'_input']:Enable()
|
||||
end
|
||||
end
|
||||
if blizzard_query.exact then
|
||||
|
||||
Reference in New Issue
Block a user