Accessing the Options Dialog is new in v0.6.0.0 of the Scripts Plugin.
Accessing the Options Dialog
When the script is selected from the list of scripts in the PlayOn Options Dialog the plugin will search for a specific bit of text, parse the string and show the results to the user. The options hide inside a Lua comment box:
--[[Options
EndOptions]]--
The Options are formatted like so:
OptionName=OptionDefault;
So an example could look like this:
--[[Options
Name=Frank;
EndOptions]]--
The options also support a obscured Password input box.
If the Option Name is 'Password' then the option behavior will change.
--[[Options
Name=;
Password=;
EndOptions]]--
The options also support multiple choice read-only options
--[[Options
Name=;
Password=;
AutoLogin=Yes|No;
EndOptions]]--
It doesn't matter where in your code the Options Comment Box is located, as long as it is formatted correctly it will not interfere with your normal code and will allow your users a user friendly way to input information from the host PC.