Get an Epic Experience with Premium

LibWidgetFactory

Libraries Login to Add Favorites
  • 0 Likes
  • World of Warcraft
  • 1 Monthly Downloads
  • Supports: 4.0.1
  • 78 Total Downloads
  • Updated 11/14/2010
  • Created 11/14/2010
  • 0 Favorites
  • Project Site
  • Comments
  • Release Type: Release
  • License: BSD License
  • Newest File: 1.0.2
or

About LibWidgetFactory

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)

1.0.2
- fixed bug with slider widget

1.0.1
- initial release

Comments

Login to Curse

Don't have an account? Create One.

Get an epic experience with Curse Premium
  • Faster addon downloads
  • Premium-Only Beta Giveaways
  • Ad-Free Curse experience
  • Premium Curse Client
  • and many More Features
  • Learn More »

Maingear

ENTER NOW