Advertisement
Guest User

Untitled

a guest
Sep 7th, 2015
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.49 KB | None | 0 0
  1. CoreLoot.DefaultDatabase = {
  2.   -- things
  3.   Blacklist = { [1234] = "Some Item" }
  4.   -- Things
  5. }
  6.  
  7.  
  8. local _BlacklistDropdown = CoreLoot.GUI:Create("Dropdown")
  9.       _BlacklistDropdown:SetMultiselect(true)
  10.       _BlacklistDropdown:SetFullWidth(true)
  11.       _BlacklistDropdown:SetLabel("Blacklisted Items")
  12.       _BlacklistDropdown:SetList(CoreLoot.DefaultDatabase.Blacklist)
  13.       _BlacklistDropdown:SetCallback("OnValueChanged", function(key, checked)
  14.         CoreLoot:Print(key)
  15.         CoreLoot:Print(checked)
  16.       end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement