Difference between revisions of "PlugIn Development:GameEx Configure Function"

From Spesoft/GameEx Wiki
Jump to navigation Jump to search
Line 3: Line 3:
Typically you would launch a configuration window from this sub. If your plugin doesn't require user configuration, you can simply leave this area empty.
Typically you would launch a configuration window from this sub. If your plugin doesn't require user configuration, you can simply leave this area empty.


==Code Examples==
==<span style="font-size:125%; color:darkblue;">Code Examples</span>==


<span style="font-size:125%; color:#003300;"><b>VB.NET syntax:</b></span>
<span style="font-size:125%; color:#003300;"><b>VB.NET syntax:</b></span>

Revision as of 21:10, 26 April 2014

Configure PlugIn [GameEx]

This function is called when the user configures the PlugIn from the PlugIn Manager interface. Typically you would launch a configuration window from this sub. If your plugin doesn't require user configuration, you can simply leave this area empty.

Code Examples

VB.NET syntax:

Public Sub Configure()
     Dim config As New Configuration
     config.ShowDialog()
End Sub

C# syntax:

public void Configure()
{
     using(Configuration config = new Configuration())
     {
          config.ShowDialog(null);
     }
}