/trunk/PhanxConfig-Dropdown
end |
local function Frame_OnHide(self) |
if self.dropdown.list then |
self.dropdown.list:Hide() |
if self.list then |
self.list:Hide() |
end |
end |
local callback = dropdown.OnValueChanged or dropdown.Callback |
if callback then |
callback(dropdown, self.value) |
callback(dropdown, self.value, self:GetText()) |
end |
PlaySound("UChatScrollButton") |
end |
local id = 0 |
function CreateList(parent) -- local |
local dropdown = parent |
function CreateList(dropdown) -- local |
if dropdown.list then |
return dropdown.list |
end |