Snowflake-3.0 A library to provide a dropdown menu like dewdrop as ACE3 library. Snowflake-3.0 is used by AceConfigDialog to create the dropdown menus. Also its implements a new method for creating table views.
Example
local option = { type = 'group', name = 'SplitterBrokerTip', args = { top = { type = 'header', order = 10, name = Addon:GetName() }, space = { type = 'description', order = 11, name = ' ' }, header = { type = 'header', order = 12, name = M.Name..'~L'..M.Rank..'~R'..M.DKP }, } } LibStub( 'AceConfig-3.0'):RegisterOptionsTable( 'SplitterBrokerTip', option) local Snow = LibStub("Snowflake-3.0") Snow:Open( 'SplitterBrokerTip') Snow:SmartAnchor( 'SplitterBrokerTip', parentFrame)
Snow:Open( appName, container, ...)
Open an dropdown window at the specified path (if any).
This function can optionally feed the group into a pre-created container instead of creating a new container frame.
Parameters
appName
The application name as given to `:RegisterOptionsTable()`
container
An optional container frame to feed the dropdown into
...
The path to open after creating the dropdown window
Snow:Close( appName)
Close a specific dropdown window.
Parameters
appName
The application name as given to `:RegisterOptionsTable()`
Snow:CloseAll()
Close all open dropdown windows
Snow:GetStatusTable( appName, path)
Gets the status table for this dropdown window.
Parameters
appName
The application name as given to `:RegisterOptionsTable()`
path
The path to the sub status table the dropdown window
Snow:SetDefaultPos( appName, left, top)
Sets the default position of the dropdown window for a specific application.
Parameters
appName
The application name as given to `:RegisterOptionsTable()`
left
The default left position
top
The default top position
Snow:Goto( appName, ...)
Open a selected sub menu of the dropdown window.
Parameters
appName
The application name as given to `:RegisterOptionsTable()`
...
The path to open after creating the dropdown window
Snow:SmartAnchor( appName, other)
Dock the dropdown menu at the other frame.
Parameters
appName
The application name as given to `:RegisterOptionsTable()`
other
The other Ace frame.
ToDo
- Implementation of inline groups
- 1 comment
- 1 comment
Facts
- Date created
- Dec 21, 2009
- Category
- Last update
- Nov 10, 2011
- Development stage
- Release
- Language
- deDE
- enUS
- License
- GNU Lesser General Public License version 3 (LGPLv3)
- Curse link
- LibSnowflake-3.0
- Reverse relationships
- 1
- Downloads
- 2,568
- Recent files
- R: 1.3.6-release for 4.2 Nov 10, 2011
- A: r135 for 4.2 Nov 10, 2011
- R: 1.3.5-release for 4.2 Nov 10, 2011
- A: r133 for 4.2 Nov 10, 2011
- R: 1.3.4-release for 4.2 Oct 24, 2011
- Reply
- #1
Grayal Dec 22, 2010 at 10:32 UTC - 0 likesups!