Lazy load options panel
This commit is contained in:
@@ -1776,7 +1776,10 @@ do
|
||||
|
||||
sectionFrame.sectionOptions = sectionOptions
|
||||
sectionOptions.always_boxfirst = true
|
||||
|
||||
C_Timer.After(0.2, function()
|
||||
DF:BuildMenu(sectionFrame, sectionOptions, startX, startY-20, heightSize+40, false, options_text_template, options_dropdown_template, options_switch_template, true, options_slider_template, options_button_template)
|
||||
end)
|
||||
end
|
||||
|
||||
tinsert(Details.optionsSection, buildSection)
|
||||
@@ -2163,6 +2166,7 @@ do
|
||||
|
||||
sectionFrame.sectionOptions = sectionOptions
|
||||
sectionOptions.always_boxfirst = true
|
||||
C_Timer.After(0.15, function()
|
||||
DF:BuildMenu(sectionFrame, sectionOptions, startX, startY-20, heightSize, false, options_text_template, options_dropdown_template, options_switch_template, true, options_slider_template, options_button_template)
|
||||
|
||||
local separatorOption = sectionFrame.widget_list[25]
|
||||
@@ -2182,6 +2186,7 @@ do
|
||||
warningLabel:Hide()
|
||||
end
|
||||
end)
|
||||
end)
|
||||
end
|
||||
|
||||
tinsert(Details.optionsSection, buildSection)
|
||||
@@ -2716,7 +2721,9 @@ do
|
||||
|
||||
sectionFrame.sectionOptions = sectionOptions
|
||||
sectionOptions.always_boxfirst = true
|
||||
C_Timer.After(0.25, function()
|
||||
DF:BuildMenu(sectionFrame, sectionOptions, startX, startY-20, heightSize, false, options_text_template, options_dropdown_template, options_switch_template, true, options_slider_template, options_button_template)
|
||||
end)
|
||||
end
|
||||
|
||||
tinsert(Details.optionsSection, buildSection)
|
||||
@@ -3141,7 +3148,9 @@ do
|
||||
}
|
||||
sectionFrame.sectionOptions = sectionOptions
|
||||
sectionOptions.always_boxfirst = true
|
||||
C_Timer.After(0.05, function()
|
||||
DF:BuildMenu(sectionFrame, sectionOptions, startX, startY-20, heightSize+20, false, options_text_template, options_dropdown_template, options_switch_template, true, options_slider_template, options_button_template)
|
||||
end)
|
||||
end
|
||||
|
||||
tinsert(Details.optionsSection, buildSection)
|
||||
@@ -3256,7 +3265,10 @@ do
|
||||
|
||||
sectionFrame.sectionOptions = sectionOptions
|
||||
sectionOptions.always_boxfirst = true
|
||||
|
||||
C_Timer.After(0.3, function()
|
||||
DF:BuildMenu(sectionFrame, sectionOptions, startX, startY-20, heightSize, false, options_text_template, options_dropdown_template, options_switch_template, true, options_slider_template, options_button_template)
|
||||
end)
|
||||
|
||||
do --micro displays
|
||||
|
||||
@@ -3895,7 +3907,9 @@ do
|
||||
|
||||
sectionFrame.sectionOptions = sectionOptions
|
||||
sectionOptions.always_boxfirst = true
|
||||
C_Timer.After(0.333, function()
|
||||
DF:BuildMenu(sectionFrame, sectionOptions, startX, startY-20, heightSize, false, options_text_template, options_dropdown_template, options_switch_template, true, options_slider_template, options_button_template)
|
||||
end)
|
||||
end
|
||||
|
||||
tinsert(Details.optionsSection, buildSection)
|
||||
@@ -4152,7 +4166,9 @@ do
|
||||
|
||||
sectionFrame.sectionOptions = sectionOptions
|
||||
sectionOptions.always_boxfirst = true
|
||||
C_Timer.After(0.366, function()
|
||||
DF:BuildMenu(sectionFrame, sectionOptions, startX, startY-20, heightSize, false, options_text_template, options_dropdown_template, options_switch_template, true, options_slider_template, options_button_template)
|
||||
end)
|
||||
end
|
||||
|
||||
tinsert(Details.optionsSection, buildSection)
|
||||
@@ -4599,8 +4615,10 @@ do
|
||||
|
||||
sectionFrame.sectionOptions = sectionOptions
|
||||
sectionOptions.always_boxfirst = true
|
||||
C_Timer.After(0.275, function()
|
||||
DF:BuildMenu(sectionFrame, sectionOptions, startX, startY-20, heightSize, false, options_text_template, options_dropdown_template, options_switch_template, true, options_slider_template, options_button_template)
|
||||
refreshToggleAnchor()
|
||||
end)
|
||||
end
|
||||
|
||||
tinsert(Details.optionsSection, buildSection)
|
||||
@@ -4748,7 +4766,10 @@ do
|
||||
|
||||
sectionFrame.sectionOptions = sectionOptions
|
||||
sectionOptions.always_boxfirst = true
|
||||
|
||||
C_Timer.After(0.4, function()
|
||||
DF:BuildMenu(sectionFrame, sectionOptions, startX, startY-20, heightSize, false, options_text_template, options_dropdown_template, options_switch_template, true, options_slider_template, options_button_template)
|
||||
end)
|
||||
end
|
||||
|
||||
tinsert(Details.optionsSection, buildSection)
|
||||
@@ -5168,7 +5189,10 @@ do
|
||||
|
||||
sectionFrame.sectionOptions = sectionOptions
|
||||
sectionOptions.always_boxfirst = true
|
||||
|
||||
C_Timer.After(0.433, function()
|
||||
DF:BuildMenu(sectionFrame, sectionOptions, startX, startY-20, heightSize, false, options_text_template, options_dropdown_template, options_switch_template, true, options_slider_template, options_button_template)
|
||||
end)
|
||||
|
||||
sectionFrame:SetScript("OnShow", function()
|
||||
sectionFrame:UpdateWallpaperInfo()
|
||||
@@ -6364,7 +6388,9 @@ do
|
||||
|
||||
sectionFrame.sectionOptions = sectionOptions
|
||||
sectionOptions.always_boxfirst = true
|
||||
C_Timer.After(0.1, function()
|
||||
DF:BuildMenu(sectionFrame, sectionOptions, startX + 350, startY - 20, heightSize + 300, false, options_text_template, options_dropdown_template, options_switch_template, true, options_slider_template, options_button_template)
|
||||
end)
|
||||
end
|
||||
|
||||
tinsert(Details.optionsSection, buildSection)
|
||||
|
||||
Reference in New Issue
Block a user