refactoring
This commit is contained in:
@@ -163,7 +163,6 @@ function M.button(parent, text_height)
|
|||||||
local highlight = button:CreateTexture(nil, 'HIGHLIGHT')
|
local highlight = button:CreateTexture(nil, 'HIGHLIGHT')
|
||||||
highlight:SetAllPoints()
|
highlight:SetAllPoints()
|
||||||
highlight:SetTexture(1, 1, 1, .2)
|
highlight:SetTexture(1, 1, 1, .2)
|
||||||
highlight:SetBlendMode('BLEND')
|
|
||||||
button.highlight = highlight
|
button.highlight = highlight
|
||||||
do
|
do
|
||||||
local label = button:CreateFontString()
|
local label = button:CreateFontString()
|
||||||
@@ -214,7 +213,6 @@ do
|
|||||||
local highlight = tab:CreateTexture(nil, 'HIGHLIGHT')
|
local highlight = tab:CreateTexture(nil, 'HIGHLIGHT')
|
||||||
highlight:SetAllPoints()
|
highlight:SetAllPoints()
|
||||||
highlight:SetTexture(1, 1, 1, .2)
|
highlight:SetTexture(1, 1, 1, .2)
|
||||||
highlight:SetBlendMode('BLEND')
|
|
||||||
tab.highlight = highlight
|
tab.highlight = highlight
|
||||||
|
|
||||||
tab.text = tab:CreateFontString()
|
tab.text = tab:CreateFontString()
|
||||||
|
|||||||
+1
-1
@@ -401,7 +401,7 @@ function update_item(item)
|
|||||||
UIDropDownMenu_SetSelectedValue(duration_dropdown, settings.duration)
|
UIDropDownMenu_SetSelectedValue(duration_dropdown, settings.duration)
|
||||||
|
|
||||||
hide_checkbox:SetChecked(settings.hidden)
|
hide_checkbox:SetChecked(settings.hidden)
|
||||||
|
|
||||||
if selected_item.max_charges then
|
if selected_item.max_charges then
|
||||||
for i = selected_item.max_charges, 1, -1 do
|
for i = selected_item.max_charges, 1, -1 do
|
||||||
if selected_item.availability[i] > 0 then
|
if selected_item.availability[i] > 0 then
|
||||||
|
|||||||
Reference in New Issue
Block a user