LibWidgetFactory is a library that simplifies using the AceGUI widgets. Below are some examples of it in action. For a more complete view take a look at how I did my options in Buffzilla.
local wf = LibStub('LibWidgetFactory-1.0')
local scaleNotifier = wf.factory('Slider', { key = 'scale', parent = frame, label = L['NOTIFIER_SIZE'], width = 160, min = 0.5, max = 1.35, isPercent = true, get = getOption, set = setOption });
local item_threshold = wf.factory('Dropdown', { key = 'item_threshold', parent = frame, label = L['Item quality threshold'], tooltip = L['The item quality threshold for what should be sold.'], values = { [ITEM_QUALITY_POOR] = L['POOR'], [ITEM_QUALITY_COMMON] = L['COMMON'], [ITEM_QUALITY_UNCOMMON] = L['UNCOMMON'], [ITEM_QUALITY_RARE] = L['RARE'], [ITEM_QUALITY_EPIC] = L['EPIC'] }, get = getOption, set = setOption })
-- create a overlay blocking out the interface options panel -- useful for creating dialogs in your options frames local dialog = wf.dialog(frame)
Facts
- Date created
- Nov 15, 2010
- Category
- Last update
- Nov 15, 2010
- Development stage
- Release
- License
- BSD License
- Curse link
- LibWidgetFactory
- Downloads
- 67
- Recent file
- R: 1.0.2 for 4.0.1 Nov 15, 2010