promotional bannermobile promotional banner

LibSnowflake-3.0

Abandoned
A library to provide a dropdown menus.

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

The LibSnowflake-3.0 Team

profile avatar
  • 6
    Projects
  • 248.6K
    Downloads

More from Forge_User_71701812View all

  • Splitter project image

    Splitter

    • 13.8K
    • Addons

    GetDKP Clone

    • 13.8K
    • December 8, 2011
    • Addons
  • Producer project image

    Producer

    • 28.5K
    • Addons

    Retooled Professions

    • 28.5K
    • December 6, 2011
    • Addons
  • Bison project image

    Bison

    • 186.7K
    • Addons

    Customizing your buff display

    • 186.7K
    • November 13, 2011
    • Addons
  • AutoProfitY project image

    AutoProfitY

    • 14.7K
    • Addons

    Automatically sells low quality gray items and selected white items to the vendor.

    • 14.7K
    • November 10, 2011
    • Addons
  • Splitter project image

    Splitter

    • 13.8K
    • Addons

    GetDKP Clone

    • 13.8K
    • December 8, 2011
    • Addons
  • Producer project image

    Producer

    • 28.5K
    • Addons

    Retooled Professions

    • 28.5K
    • December 6, 2011
    • Addons
  • Bison project image

    Bison

    • 186.7K
    • Addons

    Customizing your buff display

    • 186.7K
    • November 13, 2011
    • Addons
  • AutoProfitY project image

    AutoProfitY

    • 14.7K
    • Addons

    Automatically sells low quality gray items and selected white items to the vendor.

    • 14.7K
    • November 10, 2011
    • Addons