Texture - sirinsidiator/ESO-LibAddonMenu GitHub Wiki
The texture control can be used to add an image to your settings panel. When you create your own images, keep in mind that their size has to be a power of 2 and the file has to exist before you launch the game.
property | type | required | description |
---|---|---|---|
type | string | yes | The widget type of this control ("texture") |
image | string | yes | The path to the image file to display |
imageWidth | string | yes | The display width of the image. Max of 250 for half and 510 for full width |
imageHeight | string | yes | The display height of the image. Max of 100 |
tooltip | number, string, function | no | The tooltip to display for the image |
width | string | no | "full" or "half" width in the panel |
reference | string | no | A unique global reference to the control |
- none -
LAM:RegisterOptionControls(panelName, {
{
type = "texture",
image = "MyAddon/images/MyCustomSeparator.dds",
imageWidth = "510",
imageHeight = "20"
}
})