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