fixed font bug in post

This commit is contained in:
Manuel Simon Hirsig
2016-07-29 16:46:00 +02:00
parent 184b6da028
commit 6998389b2a
3 changed files with 9 additions and 31 deletions
+6 -21
View File
@@ -474,9 +474,9 @@ do
end
end
function public.slider(frame, name)
function public.slider(frame)
local slider = CreateFrame('Slider', name, frame)
local slider = CreateFrame('Slider', nil, frame)
slider:SetOrientation('HORIZONTAL')
slider:SetHeight(6)
slider:SetHitRectInsets(0, 0, -8, -8)
@@ -494,29 +494,14 @@ function public.slider(frame, name)
label:SetPoint('BOTTOMRIGHT', slider, 'TOPRIGHT', 6, 6)
label:SetJustifyH('LEFT')
label:SetHeight(13)
label:SetFont(m.config.content_font, m.config.normal_font_size)
label:SetFont(m.config.content_font, 13)
label:SetTextColor(unpack(m.config.label_color.enabled))
local editbox = CreateFrame('EditBox', nil, slider)
editbox:SetAutoFocus(false)
local editbox = m.editbox(slider)
editbox:SetPoint('LEFT', slider, 'RIGHT', 5, 0)
editbox:SetHeight(15)
editbox:SetWidth(70)
editbox:SetWidth(50)
editbox:SetJustifyH('CENTER')
editbox:EnableMouse(true)
m.set_content_style(editbox)
-- editbox:SetFont(m.config.content_font, m.config.normal_font_size)
editbox:SetFont(m.config.content_font, m.config.normal_font_size)
editbox:SetShadowColor(0, 0, 0, 0)
--
-- local button = CreateFrame('Button', nil, editbox, 'UIPanelButtonTemplate')
-- button:SetWidth(40)
-- button:SetHeight(20)
-- button:SetPoint('LEFT', editbox, 'RIGHT', 2, 0)
-- button:SetText(OKAY)
-- button:SetScript('OnClick', Button_OnClick)
-- button:Hide()
--
slider.label = label
slider.editbox = editbox
return slider
+3 -7
View File
@@ -119,7 +119,7 @@ Aux.post_tab.FRAMES(function(m, public, private)
end
do
local item = Aux.gui.item(m.frame.parameters)
item:SetPoint('TOPLEFT', 10, -10)
item:SetPoint('TOPLEFT', 10, -8)
item:EnableMouse()
item:SetScript('OnReceiveDrag', function()
local item_info = Aux.cursor_item()
@@ -155,7 +155,7 @@ Aux.post_tab.FRAMES(function(m, public, private)
do
local slider = Aux.gui.slider(m.frame.parameters)
slider:SetValueStep(1)
slider:SetPoint('TOPLEFT', 16, -75)
slider:SetPoint('TOPLEFT', 16, -73)
slider:SetWidth(190)
slider:SetScript('OnValueChanged', function()
m.quantity_update(true)
@@ -178,11 +178,9 @@ Aux.post_tab.FRAMES(function(m, public, private)
m.unit_start_price:SetFocus()
end
end)
slider.editbox:SetWidth(50)
slider.editbox:SetNumeric(true)
slider.editbox:SetMaxLetters(3)
slider.label:SetText('Stack Size')
slider.label:SetTextHeight(13)
private.stack_size_slider = slider
end
do
@@ -204,15 +202,13 @@ Aux.post_tab.FRAMES(function(m, public, private)
m.unit_start_price:SetFocus()
end
end)
slider.editbox:SetWidth(50)
slider.editbox:SetNumeric(true)
slider.label:SetText('Stack Count')
slider.label:SetTextHeight(13)
private.stack_count_slider = slider
end
do
local dropdown = Aux.gui.dropdown(m.frame.parameters)
dropdown:SetPoint('TOPLEFT', m.stack_count_slider, 'BOTTOMLEFT', 0, -19)
dropdown:SetPoint('TOPLEFT', m.stack_count_slider, 'BOTTOMLEFT', 0, -21)
dropdown:SetWidth(90)
dropdown:SetHeight(10)
local label = Aux.gui.label(dropdown, 13)
-3
View File
@@ -446,7 +446,6 @@ function public.execute(resume, real_time)
end
end
m.search_box:HighlightText(0, 0)
m.search_box:ClearFocus()
if resume then
@@ -671,14 +670,12 @@ do
end
function private.previous_search()
m.search_box:HighlightText(0, 0)
m.search_box:ClearFocus()
m.update_search(search_index - 1)
m.update_tab(m.RESULTS)
end
function private.next_search()
m.search_box:HighlightText(0, 0)
m.search_box:ClearFocus()
m.update_search(search_index + 1)
m.update_tab(m.RESULTS)