WoWInterface SVN PhanxConfigWidgets

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 186 to Rev 187
    Reverse comparison

Rev 186 → Rev 187

trunk/PhanxConfig-Dropdown/PhanxConfig-Dropdown.lua
314,14 → 314,19
end
function methods:SetValue(value, text)
self.selected = value
if not text and self.items then
if not text and self.items and type(self.items[1]) == "table" then
local found
for i = 1, #self.items do
local item = self.items[i]
if type(item) == "table" and item.value == value then
text = item.text
found = true
break
end
end
if not found then
text = CUSTOM
end
end
self.valueText:SetText(text or value)
end