Module providing base classes for creating panel-based plugins in Lens Studio.
Example
// PanelPlugin provides a dockable panel in the Lens Studio editor. // Override createWidget(parent) to build the UI, deinit() to clean up. constroot = newWidget(parent); constlayout = newBoxLayout(); layout.setDirection(Direction.TopToBottom); layout.spacing = 8; root.layout = layout;
constinfo = newLabel(root); info.text = 'This panel was created by extending PanelPlugin and overriding createWidget().'; info.wordWrap = true; layout.addWidget(info);
constbtn = newPushButton(root); btn.text = 'Hello from PanelPlugin'; layout.addWidget(btn);
this.connections.push( btn.onClick.connect(() => { info.text = 'Button clicked! Use pluginSystem.findInterface() to access editor APIs.'; }) );
Module providing base classes for creating panel-based plugins in Lens Studio.
Example