app and win functionality in plugin

This commit is contained in:
Core 2022-01-18 15:27:47 +00:00
parent e8b6dd3180
commit ba58d456ac
No known key found for this signature in database
GPG key ID: 1B77805746C47C28
3 changed files with 21 additions and 14 deletions

View file

@ -1,5 +1,10 @@
let i = 1, k = 1;
export default class ExamplePlugin {
/**
* Private variables for interaction in plugins
*/
private _win: any;
private _app: any;
/**
* Base Plugin Details (Eventually implemented into a GUI in settings)
@ -12,14 +17,16 @@ export default class ExamplePlugin {
/**
* Runs on plugin load (Currently run on application start)
*/
constructor() {
}
constructor(app: any) {
this._app = app;
console.log('Example plugin loaded');
}
/**
* Runs on app ready
*/
onReady(): void {
onReady(win: any): void {
this._win = win;
console.log('Example plugin ready');
}
@ -48,4 +55,4 @@ export default class ExamplePlugin {
k++
}
}
}