123456789101112131415161718192021222324252627 |
- 'use strict';
- module.exports = {
- load () {
- // execute when package loaded
- },
- unload () {
- // execute when package unloaded
- },
- // register your ipc messages here
- messages: {
- 'open' () {
- // open entry panel registered in package.json
- Editor.Panel.open('bezier');
- },
- 'say-hello' () {
- Editor.log('Hello World!');
- // send ipc message to panel
- Editor.Ipc.sendToPanel('bezier', 'bezier:hello');
- },
- 'pointClick' () {
- Editor.log('Button clicked!');
- }
- },
- };
|