comparison options.lua @ 98:b5a55c69ef67

Properly switch between profiles.
author Farmbuyer of US-Kilrogg <farmbuyer@gmail.com>
date Fri, 27 Jul 2012 19:09:29 +0000
parents ba5ff82dcf19
children 966d06c8d9c9
comparison
equal deleted inserted replaced
97:ba5ff82dcf19 98:b5a55c69ef67
701 preload = nil 701 preload = nil
702 end 702 end
703 703
704 -- Clicking an entry on the left tree column. 704 -- Clicking an entry on the left tree column.
705 local opt_OnGroupSelected_func = function (treeg,event,category) 705 local opt_OnGroupSelected_func = function (treeg,event,category)
706 opts = addon.db.profile
706 local catfuncs = controls[category] 707 local catfuncs = controls[category]
707 if not catfuncs then 708 if not catfuncs then
708 addon:horrible_horrible_error(("Category '%s' has no handler function!"):format(category:gsub('\001','_'))) 709 addon:horrible_horrible_error(("Category '%s' has no handler function!"):format(category:gsub('\001','_')))
709 end 710 end
710 treeg:ReleaseChildren() 711 treeg:ReleaseChildren()
728 end 729 end
729 end 730 end
730 731
731 -- Clicking the Options tab as a whole (tabs_OnGroupSelected["opt"]). 732 -- Clicking the Options tab as a whole (tabs_OnGroupSelected["opt"]).
732 local tabs_OGS = function (container, specials) 733 local tabs_OGS = function (container, specials)
733 opts = gui.opts
734
735 container:SetLayout("Fill") 734 container:SetLayout("Fill")
736 local left = AceGUI:Create("TreeGroup") 735 local left = AceGUI:Create("TreeGroup")
737 left:SetStatusTable(status_for_select) 736 left:SetStatusTable(status_for_select)
738 left:SetLayout("Fill") 737 left:SetLayout("Fill")
739 left:SetFullWidth(true) 738 left:SetFullWidth(true)