Skip to content
This repository has been archived by the owner on Jun 9, 2023. It is now read-only.

Latest commit

 

History

History
99 lines (82 loc) · 7.8 KB

plugins.core.loupedeckctandlive.prefs.md

File metadata and controls

99 lines (82 loc) · 7.8 KB

docs » plugins.core.loupedeckctandlive.prefs


Loupedeck CT & Loupedeck Live Preferences Panels

API Overview

API Documentation

Variables

Signature plugins.core.loupedeckctandlive.prefs.defaultIconPath -> string
Type Variable
Description Default Path where built-in icons are stored
Signature plugins.core.loupedeckctandlive.prefs.supportedExtensions -> string
Type Variable
Description Table of supported extensions for Icons.

Functions

Signature plugins.core.loupedeckctandlive.prefs:updateUI([params]) -> none
Type Function
Description Update the Preferences Panel UI.
Parameters
  • params - A optional table of parameters
Returns
  • None

Constructors

Signature plugins.core.loupedeckctandlive.prefs.new() -> Loupedeck
Type Constructor
Description Creates a new Loupedeck Preferences panel.
Parameters
  • deviceType - The device type defined in hs.loupedeck.deviceTypes
Returns
  • None
Notes
  • The deviceType should be either hs.loupedeck.deviceTypes.LIVE or hs.loupedeck.deviceTypes.CT.

Methods

Signature plugins.core.loupedeckctandlive.prefs:generateContent() -> string
Type Method
Description Generates the Preference Panel HTML Content.
Parameters
  • None
Returns
  • HTML content as string
Signature plugins.core.loupedeckctandlive.prefs:generateKnobImages(app, bank, id) -> none
Type Method
Description Generates a combined image for all the knobs.
Parameters
  • app - The application bundle ID
  • bank - The bank as a string
  • id - The ID
Returns
  • None
Signature plugins.core.loupedeckctandlive.prefs:panelCallback() -> none
Type Method
Description JavaScript Callback for the Preferences Panel
Parameters
  • id - ID as string
  • params - Table of paramaters
Returns
  • None
Signature plugins.core.loupedeckctandlive.prefs:renderPanel(context) -> none
Type Method
Description Generates the Preference Panel HTML Content.
Parameters
  • context - Table of data that you want to share with the renderer
Returns
  • HTML content as string
Signature plugins.core.loupedeckctandlive.prefs:setItem(app, bank, controlType, id, valueA, valueB) -> none
Type Method
Description Update the Loupedeck CT layout file.
Parameters
  • app - The application bundle ID as a string
  • bank - The bank ID as a string
  • controlType - The control type as a string
  • id - The ID of the item as a string
  • valueA - The value of the item as a string
  • valueB - An optional value
Returns
  • None