Skip to content

LAM2 for the Experienced Author

sirinsidiator edited this page May 3, 2018 · 2 revisions

As mentioned in the “Differences...” section, LAM2 offers the ability for an author to customize the options display.

  1. Use a custom control to create a container for your custom widget object.

  2. Set a control to “half” width to customize the anchoring of your controls. This works with any control type (except submenu), including headers and descriptions.

  3. Use LAM2 to create a panel for your addon, but create your options controls and anchor them manually, however you wish.

    • Use the LAMCreateControl methods manually
    • Create your own custom controls

If you allow LAM to handle the creation of your controls and would like to know when they have been created (when the panel is shown for the first time), then you can register for the "LAM-PanelControlsCreated" callback.

Notes:

  • Don’t colorize your addon name in your panel’s “name” field. This messes up alphabetizing. Use the displayName field for any color or texture codes.
  • When converting from LAM1 to LAM2, don’t forget that checkboxes pass through the value now - you should use this so that your saved variables don’t get out of sync with the display.
  • Make sure the unique reference passed to LAM2:RegisterAddonPanel() is not generic and is not the same as another global variable in your addon. “MyAddon” is not unique. “SeerahsInventoryAddon” is, for example.