From ebf2fb01b8bb6bb118ad40cd2d0ecff06db000d9 Mon Sep 17 00:00:00 2001 From: Repooc Date: Fri, 19 Jul 2013 19:10:23 -0400 Subject: [PATCH] some test with a button --- ElvUI_SLE/dev/options.lua | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/ElvUI_SLE/dev/options.lua b/ElvUI_SLE/dev/options.lua index bf6c642..bd2ad96 100644 --- a/ElvUI_SLE/dev/options.lua +++ b/ElvUI_SLE/dev/options.lua @@ -19,6 +19,11 @@ local UserListCache = { ['userVersion'] = '1.65', }, } + +local function getlist(channel) + print(channel.." was selected") +end + if SLE:CheckFlag(nil, 'SLEAUTHOR') then local function configTable() E.Options.args.sle.args.developer = { @@ -64,17 +69,23 @@ if SLE:CheckFlag(nil, 'SLEAUTHOR') then ['BATTLEGROUND'] = 'BATTLEGROUND', }, }, + submitbutton = { + type = 'execute', + order = 3, + name = "Update List", + func = function(info, value) getlist(selectedChannel) end, + }, Space = { type = 'description', name = ' ', - order = 3, + order = 4, }, userList = { type = 'group', name = function() return 'Userlist : '..selectedChannel end, - order = 4, + order = 5, guiInline = true, args = {}, hidden = function() return selectedChannel == '' end, -- 1.7.9.5