CurseForge.com
Home
Addons
Authors
Forums
Knowledge base
Paste
Site issues
Sign in
Register new account
LibBlizzOptions
Overview
Files
Tickets
Pages
Repository
Subscriptions
Usage
r1
Source
Markup:
*
==Instantiation== LibBlizzOptions is a LibStub Library. You must have LibStub to use it. LBO = LibStub("LibBlizzOptions-1.0"); ==Parameters== You need to create a parameters list to pass to the addon. The parameters list is a LUA table with the following named elements: {|width="100%" style="padding: 2px; margin:2px; spacing: 2px;border: 1px solid #AAAAAA; border-collapse: collapse" !Parameter !Type !Inclusion !Description |- |.Mod |String |'''Required''' |The name of the mod, this is used for element naming. |- |.Title |String |'''Required''' |The title of the mod, this is used for both section name and title in the panel. |- |.Description |String |'''Required''' |A brief (1-3 lines) description of the mod. |- |.Version |String |'''Required''' |The version of the mod. |- |.Author |String |'''Required''' |The author of the mod. |- |.Category |String |''Optional'' |The mod Category |- |.Email |String |''Optional'' |A contact E-Mail |- |.Webpage |String |''Optional'' |A project Web-page |- |.Credits |String |''Optional'' |Additional Credits |- |.Execute |function |''Optional'' |A Function to execute when the execute button is pressed. |- |.ExecuteText |String |''Optional'' |The text of the execute button. |} ==Generation== Now that you have a parameters list, you can generate a frame and attach it to the UI: LibStub("LibBlizzOptions-1.0"):CreateBlizzardOptions(params);
Markup Type:
*
The type of markup for this entry.
Click here for details
.
WikiCreole
BBCode
Safe HTML
Plain Text
Markdown
Textile
Curse Wiki (Deprecated)