LibSnowflake-2.0

This project is abandoned and its default file will likely not work with the most recent version of World of Warcraft. Whether this project is out of date or its author has marked it as abandoned, this project is no longer maintained.

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.


Comments

Posts Quoted:
Reply
Clear All Quotes

About This Project

Categories

Members

Recent Files