LibSnowflake-3.0

This project has become inactive.

This project is inactive and its default file will likely not work with the most recent version of World of Warcraft. The author may have abandoned it, or it may have outlived its usefulness.

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

You must login to post a comment. Don't have an account? Register to get one!

  • 1 comment
  • 1 comment

Facts

Date created
Dec 21, 2009
Category
Last update
Nov 10, 2011
Development stage
Inactive
Language
  • deDE
  • enUS
License
GNU Lesser General Public License version 3 (LGPLv3)
Curse link
LibSnowflake-3.0
Reverse relationships
1
Downloads
3,023
Recent files

Authors