mirror of
https://github.com/Stone-Red-Code/DesktopMagic.git
synced 2026-09-08 23:39:30 +02:00
Updated Guide (markdown)
+3
-3
@@ -1,6 +1,6 @@
|
|||||||
## How to create a basic plugin
|
## How to create a basic plugin
|
||||||
|
|
||||||
1. Create a [.NET(Core) class library](https://docs.microsoft.com/en-us/dotnet/core/tutorials/library-with-visual-studio) project
|
1. Create a [.NET (Core) class library](https://docs.microsoft.com/en-us/dotnet/core/tutorials/library-with-visual-studio) project
|
||||||
|
|
||||||
1. Add the [DesktopMagicPluginAPI](https://www.nuget.org/packages/DesktopMagicPluginAPI/) nuget package
|
1. Add the [DesktopMagicPluginAPI](https://www.nuget.org/packages/DesktopMagicPluginAPI/) nuget package
|
||||||
|
|
||||||
@@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
1. Compile it to a `.dll` file.
|
1. Compile it to a `.dll` file.
|
||||||
|
|
||||||
1. In the plugin directory create a directory with the same name as the `.dll` file without the file extension and put the `.dll` file with all required dependencies into it.
|
1. In the plugin directory, create a directory with the same name as the `.dll` file without the file extension and put the `.dll` file with all required dependencies into it.
|
||||||
|
|
||||||
1. Add the plugin to the [DesktopMagic-Plugins](https://github.com/Stone-Red-Code/DesktopMagic-Plugins) repository.
|
1. Add the plugin to the [DesktopMagic-Plugins](https://github.com/Stone-Red-Code/DesktopMagic-Plugins) repository.
|
||||||
|
|
||||||
@@ -24,7 +24,7 @@ The method is executed in a different thread, which means you can run things wit
|
|||||||
You must return a `bitmap` from this method to display the output in the plugin window.
|
You must return a `bitmap` from this method to display the output in the plugin window.
|
||||||
|
|
||||||
### Event handlers
|
### Event handlers
|
||||||
All events are normally raised in the main thread of the DesktopMagic application, so they should not contain code that blocks the main thread.
|
All events are usually raised in the main thread of the DesktopMagic application, so they should not contain code that blocks the main thread.
|
||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user