PluginSDK
From WoWRosterWiKi
Important note: When you edit this page, you agree to release your contribution into the public domain. |
Contents |
Plugin SDK
Most of the Plugin install system is like the Addon system see the AddOn SDK for more info some changes are as such
- Each AddOn has its own Plugin Function settings each addon that uses Plugin "Should" Include a example Blank Plugin
- Plugins only function in addons that use plugin with the exception of Global Plugins which can be called in any function
Each install.def.php for each plugin has to have these vars at the top after the class is started
class eventsInstall { /* * These Vars are used with the new Plugin installer * @var name - unique name for the plugin * @var parent - the intended addon to use this plugin */ var $active = true; var $name = 'events'; var $filename = 'events.php'; var $parent = 'main'; var $scope = 'guild'; var $icon = 'achievement_worldevent_childrensweek'; var $version = '1.0'; var $oldversion = ''; var $wrnet_id = ''; var $fullname = 'WoW Events'; var $description = 'Creates a display of the current ingame event.'; var $credits = array( array( "name"=> "Ulminia <Ulminia@gmail.com>", "info"=> "WoW Events (Alpha Release)"), );
- $filename
- this is the filename that has the output functions must be the same name as the folder
- $parent
- the addon that the plugin is for this is the addon basename
- $scope
- this is the scope the plugin functions in ex guild, user multiple scopes are set as guild|char|user global can only be defined alone