Forum

Results 1 to 2 of 2
  1. #1
    Join Date
    November 2010
    Location
    Poland
    Posts
    55

    LUA PLUGIN: Submenu for each active module loaded

    Hi all.

    I have an idea.
    Now we can create custom menus in your own plugin createMenus (moduleMenuItemID) function.

    Code:
    local function createMenus(moduleMenuItemID)
    	testmodule_events.moduleMenuItemID = moduleMenuItemID
    	return {
    		{ts3defs.PluginMenuType.PLUGIN_MENU_TYPE_CLIENT,  testmodule_events.MenuIDs.MENU_ID_CLIENT_1,  "testmodule: Client item 1",  "../test_plugin/1.png"},
    		{ts3defs.PluginMenuType.PLUGIN_MENU_TYPE_CHANNEL, testmodule_events.MenuIDs.MENU_ID_CHANNEL_1, "testmodule: Channel item 1", "../test_plugin/1.png"},
    		{ts3defs.PluginMenuType.PLUGIN_MENU_TYPE_GLOBAL,  testmodule_events.MenuIDs.MENU_ID_GLOBAL_1,  "testmodule: Global item 1",  "../test_plugin/1.png"}
    	}
    end
    We can also enable or disable the ability to click on it with
    Code:
    ts3.setPluginMenuEnabled (menuID, 1) -- enable menu specifed by menuID
    
    ts3.setPluginMenuEnabled (menuID, 0) -- disable menu specifed by menuID
    Helped by the possibility of completely hide the menu options and the ability to create a submenu for each plugin (ex menu name = MODULE_NAME then each menu is submenu of MODULE_NAME menu)

  2. #2
    Join Date
    December 2014
    Posts
    15
    Any news how to do submenus on Lua or it's impossible?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. G15 - Plugin won't stay active
    By MatthewH12 in forum Windows
    Replies: 0
    Last Post: December 5th, 2010, 05:30 AM
  2. Plugin that lowers the sounds of all active applications except TeamSpeak 3
    By Artyom.Topchyan in forum Client Plugins / Lua Scripts
    Replies: 16
    Last Post: October 13th, 2010, 07:06 PM
  3. Whispering plugin or module?
    By TridentSWE in forum General Questions
    Replies: 0
    Last Post: September 23rd, 2010, 02:12 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •