big refactoring
This commit is contained in:
+3
-3
@@ -135,9 +135,9 @@ function update_auction_listing()
|
||||
|
||||
tinsert(auction_rows, {
|
||||
cols = {
|
||||
{value=auction_record.own and gui.color.yellow(auction_record.count) or auction_record.count},
|
||||
{value=auction_record.own and color.yellow(auction_record.count) or auction_record.count},
|
||||
{value=auction_listing.time_left(auction_record.duration)},
|
||||
{value=auction_record.stack_size == stack_size and gui.color.yellow(auction_record.stack_size) or auction_record.stack_size},
|
||||
{value=auction_record.stack_size == stack_size and color.yellow(auction_record.stack_size) or auction_record.stack_size},
|
||||
{value=money.to_string(auction_record.unit_blizzard_bid, true, nil, 3, bid_color) },
|
||||
{value=historical_value and auction_listing.percentage_historical(round(auction_record.unit_blizzard_bid / historical_value * 100)) or '---'},
|
||||
{value=auction_record.unit_buyout_price > 0 and money.to_string(auction_record.unit_buyout_price, true, nil, 3, buyout_color) or '---'},
|
||||
@@ -273,7 +273,7 @@ function update_item_configuration()
|
||||
|
||||
item.texture:SetTexture(nil)
|
||||
item.count:SetText()
|
||||
item.name:SetTextColor(unpack(gui.color.label.enabled))
|
||||
item.name:SetTextColor(color.label.enabled())
|
||||
item.name:SetText('No item selected')
|
||||
|
||||
start_price_frame:Hide()
|
||||
|
||||
+2
-2
@@ -251,7 +251,7 @@ function create_frames()
|
||||
editbox.pretty:SetPoint('LEFT', 1, 0)
|
||||
editbox.pretty:SetPoint('RIGHT', -2, 0)
|
||||
editbox.pretty:SetJustifyH 'RIGHT'
|
||||
editbox.pretty:SetTextColor(gui.color.text.enabled())
|
||||
editbox.pretty:SetTextColor(color.text.enabled())
|
||||
do
|
||||
local label = gui.label(frame, gui.config.small_font_size)
|
||||
label:SetPoint('BOTTOMLEFT', frame, 'TOPLEFT', -2, 1)
|
||||
@@ -303,7 +303,7 @@ function create_frames()
|
||||
editbox.pretty:SetPoint('LEFT', 1, 0)
|
||||
editbox.pretty:SetPoint('RIGHT', -2, 0)
|
||||
editbox.pretty:SetJustifyH 'RIGHT'
|
||||
editbox.pretty:SetTextColor(gui.color.text.enabled())
|
||||
editbox.pretty:SetTextColor(color.text.enabled())
|
||||
do
|
||||
local label = gui.label(frame, gui.config.small_font_size)
|
||||
label:SetPoint('BOTTOMLEFT', frame, 'TOPLEFT', -2, 1)
|
||||
|
||||
@@ -195,12 +195,12 @@ function public.formatted_post_filter(components)
|
||||
elseif i > 1 then
|
||||
str = str..'</p><p>'
|
||||
for _=1,getn(stack) do
|
||||
str = str..gui.color.content.background('----')
|
||||
str = str..color.content.background('----')
|
||||
end
|
||||
end
|
||||
no_line_break = component[1] == 'operator' and component[2] == 'not'
|
||||
|
||||
local filter_color = (filter_builder_state.selected == i and gui.color.orange or gui.color.aux)
|
||||
local filter_color = (filter_builder_state.selected == i and color.orange or color.aux)
|
||||
local component_text = filter_color(component[2])
|
||||
if component[1] == 'operator' and component[2] ~= 'not' then
|
||||
component_text = component_text..filter_color(tonumber(component[3]) or '')
|
||||
|
||||
@@ -54,7 +54,7 @@ function create_frames()
|
||||
do
|
||||
local panel = CreateFrame('Frame', nil, frame)
|
||||
panel:SetBackdrop{bgFile=[[Interface\Buttons\WHITE8X8]]}
|
||||
panel:SetBackdropColor(unpack(gui.color.content.background))
|
||||
panel:SetBackdropColor(color.content.background())
|
||||
panel:SetPoint('LEFT', settings_button, 'RIGHT', 0, 0)
|
||||
panel:SetPoint('RIGHT', 0, 0)
|
||||
panel:SetHeight(42)
|
||||
@@ -76,9 +76,9 @@ function create_frames()
|
||||
this:SetText(valid_input)
|
||||
end
|
||||
if blizzard_page_index(this:GetText()) and not real_time_button:GetChecked() then
|
||||
this:SetBackdropColor(gui.color.state.enabled())
|
||||
this:SetBackdropColor(color.state.enabled())
|
||||
else
|
||||
this:SetBackdropColor(gui.color.state.disabled())
|
||||
this:SetBackdropColor(color.state.disabled())
|
||||
end
|
||||
end
|
||||
do
|
||||
@@ -92,7 +92,7 @@ function create_frames()
|
||||
local label = gui.label(editbox, 16)
|
||||
label:SetPoint('RIGHT', editbox, 'LEFT', -6, 0)
|
||||
label:SetText('Pages')
|
||||
label:SetTextColor(gui.color.text.enabled())
|
||||
label:SetTextColor(color.text.enabled())
|
||||
first_page_input = editbox
|
||||
end
|
||||
do
|
||||
@@ -106,7 +106,7 @@ function create_frames()
|
||||
local label = gui.label(editbox, gui.config.medium_font_size)
|
||||
label:SetPoint('RIGHT', editbox, 'LEFT', -3.5, 0)
|
||||
label:SetText('-')
|
||||
label:SetTextColor(gui.color.text.enabled())
|
||||
label:SetTextColor(color.text.enabled())
|
||||
last_page_input = editbox
|
||||
end
|
||||
end
|
||||
@@ -217,7 +217,7 @@ function create_frames()
|
||||
btn:SetPoint('RIGHT', start_button, 'LEFT', -4, 0)
|
||||
btn:SetWidth(70)
|
||||
btn:SetHeight(25)
|
||||
btn:SetText(gui.color.green 'Resume')
|
||||
btn:SetText(color.green 'Resume')
|
||||
btn:SetScript('OnClick', function()
|
||||
execute(true)
|
||||
end)
|
||||
@@ -579,7 +579,7 @@ function create_frames()
|
||||
local scroll_child = CreateFrame('SimpleHTML', nil, scroll_frame)
|
||||
scroll_frame:SetScrollChild(scroll_child)
|
||||
scroll_child:SetFont('p', [[Fonts\ARIALN.TTF]], 23)
|
||||
scroll_child:SetTextColor('p', gui.color.label.enabled())
|
||||
scroll_child:SetTextColor('p', color.label.enabled())
|
||||
scroll_child:SetWidth(1)
|
||||
scroll_child:SetHeight(1)
|
||||
scroll_child:SetScript('OnHyperlinkClick', data_link_click)
|
||||
|
||||
Reference in New Issue
Block a user