View Single Post
03-26-13, 07:36 AM   #2
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
Lua Code:
  1. info.func = self.click --self is the dropdown menu

Under your dropdown creation you just define your click function.
Lua Code:
  1. --dropdownmenu
  2. local dropdownMenu = createBasicDropDownMenu()
  3. dropdownMenu.click = function(self)
  4.   PVPSound_OptionsSetAddonLanguageOne(self.value)
  5. end

I'm doing it this way for the oUF_Diablo config panel:
http://code.google.com/p/rothui/sour.../panel.lua#382
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)

Last edited by zork : 03-26-13 at 07:38 AM.
  Reply With Quote