-
Notifications
You must be signed in to change notification settings - Fork 24
Texture
sirinsidiator edited this page May 3, 2018
·
6 revisions
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"
}
})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