promotional bannermobile promotional banner

LibSnowflake-2.0

Abandoned
dropdown framework

I searched for a dewdrop library on ace3 without autohide functionality.
At the end I created my own library.

Snowflake 2.0
My version 1.0 was to simple. :)
A library to provide a dropdown menu like dewdrop as ACE3 library.

Snowflake:CreateMain()
Create a new drop down main menu as a SnowflakeGroup.

local Snowflake = LibStub( 'Snowflake-2.0')
grp = Snowflake:CreateMain()

SnowflakeGroup:AddLine( array)
Add a new line into the SnowflakeGroup.

array

  • text .. visible text at new line (left align)
  • token .. for internal use (each line on a group need a unique identifiere) default == text
  • second .. second text (reight align)
  • hasArrow .. a arrow for submenus
  • func .. function for dynamic creation of submenus
  • args .. call parameter of func( args[1], args[2],.., parant)
  • action .. function for click action of the user
  • params .. call paramter of action( params[1], params[2], ...)
  • link .. for tooltip
  • disabled .. disabled the line
  • closeWhenClicked .. close on click
  • isTitle .. for title
  • isPlain .. for plane text
  • isEditbox .. for a edit box

grp:AddLine{ text = player, second = skill, action = 'CastSpellOf', params = { Producer, prof }, closeWhenClicked = true }
grp:AddLine{ text = Producer:GetProfessionName( n), func = CreateUsers, args = { names, n }, hasArrow = true }

Actual Using
Producer (release)
Splitter (alpha)

Plan
A future implementation should cowork with the AceConfigRegistry array system.

The LibSnowflake-2.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.4K
    • Addons

    Retooled Professions

    • 28.4K
    • 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.4K
    • Addons

    Retooled Professions

    • 28.4K
    • 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