|
|
|
@ -146,6 +146,7 @@ local methods = { |
|
|
|
|
clickable = item.clickable, |
|
|
|
|
indent = item.indent or 0, |
|
|
|
|
}, true) |
|
|
|
|
dropdownItem.text:SetPoint("TOPLEFT", 12 + (item.indent * 6), -2) |
|
|
|
|
if item.indent and item.indent > 0 then |
|
|
|
|
local leftOffset = -6 + (-6 * item.indent) |
|
|
|
|
dropdownItem:UpdateStyle("frame-lineV", { |
|
|
|
@ -257,8 +258,7 @@ local methods = { |
|
|
|
|
for _, key in ipairs(keyTable) do |
|
|
|
|
if dropdownItem.settings.key == key then |
|
|
|
|
dropdownItem:SetSelected(true) |
|
|
|
|
dropdownText = dropdownText and format("%s, %s", dropdownText, dropdownItem.settings.value) or |
|
|
|
|
dropdownItem.settings.value |
|
|
|
|
dropdownText = dropdownText and format("%s, %s", dropdownText, dropdownItem.settings.value) or dropdownItem.settings.value |
|
|
|
|
selectionTable[#selectionTable + 1] = dropdownItem.settings.key |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|