Local function createMenus( moduleMenuItemID) Require( "masscontrolmodule/masscontrol ") Require( "masscontrolmodule/events ") - Forwarded TeamSpeak 3 callbacks Local function onMenuItemEvent( serverConnectionHandlerID, menuType, menuItemID, selectedItemID) selectedItemID: Channel or Client ID in the case of PLUGIN_MENU_TYPE_CHANNEL and PLUGIN_MENU_TYPE_CLIENT. menuItemID: Id used when creating the menu item type: Type of the menu (_MENU_TYPE_CHANNEL, _MENU_TYPE_CLIENT or _MENU_TYPE_GLOBAL) serverConnectionHandlerID: ID of the current server tab Optional function, when not using plugin menus, do not implement this. Called when a plugin menu item (see ts3plugin_initMenus) is triggered. Add this value to above menuID when passing the ID to setPluginMenuEnabled. Will store factor to add to menuID to calculate the real menuID used in the TeamSpeak client (to support menus from multiple Lua modules) To avoid function name collisions, you should use local functions and export them with a unique package name.
0 Comments
Leave a Reply. |