-
Notifications
You must be signed in to change notification settings - Fork 20
Icon Picker
Sharlikran edited this page Nov 28, 2020
·
1 revision
property | type | default | required | description |
---|---|---|---|---|
type | string | - | yes | The widget type of this control ("iconpicker") |
name | string | - | yes | "My Icon Picker", string id or function returning a string |
choices | table | - | yes | {"texture path 1", "texture path 2", "texture path 3"}, |
getFunc | function | - | yes | function() return db.r, db.g, db.b, db.a end, -- (alpha is optional) |
setFunc | function | - | yes | function(r,g,b,a) db.r=r, db.g=g, db.b=b, db.a=a end, -- (alpha is optional) |
tooltip | number, string, function | nil | no | "Iconpicker Picker's tooltip text.", or string id or function returning a string |
choicesTooltips | table | - | no | {"icon tooltip 1", "icon tooltip 2", "icon tooltip 3"}, or array of string ids or array of functions returning a table |
maxColumns | number | - | no | 5, number of icons in one row |
visibleRows | number | - | no | 4.5, number of visible rows |
iconSize | number | - | no | 28, size of the icons |
defaultColor | ZO_ColorDef | - | no | ZO_ColorDef:New("FFFFFF"), default color of the icons |
width | string | "full" | no | "full" or "half" width in the panel |
beforeShow | function | - | no | function(control, iconPicker) return preventShow end, |
disabled | boolean, function | false | no | Determines if the colorpicker is disabled and its value cannot be changed |
warning | number, string, function | nil | no | Shows a warning icon beside the button which has a tooltip with some warning text |
requiresReload | boolean | false | no | Appends a special warning text and shows a reload button if the value is changed |
default | number, function | nil | no | {r = defaults.r, g = defaults.g, b = defaults.b, a = defaults.a}, Table of default color values (or default = defaultColor, where defaultColor is a table with keys of r, g, b[, a]) or a function that returns the color |
helpUrl | string, function | - | no | A string URL "https://www.esoui.com", or a function that returns one |
reference | string | nil | no | A unique global reference to the control |
General
Home
Differences between v1.0 and v2.0
Getting started
LAM2 for the Experienced Author
Reference
Exposed Methods on LAM2
LAM2 callbacks
Details on LAM2 data tables
LAM2 control widgets
Resources
Addons using LAM2
External controls
DatePicker widget
OrderListBox widget
SoundSlider widget
DualListBox widget
MultiSelectDropdown widget