C&C Tiberium Alliances Dev AddonMainMenu

C&C:Tiberium Alliances Dev AddonMainMenu (AMM)

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

Author
DLwarez 007
Daily installs
0
Total installs
932
Ratings
0 0 0
Version
0.2
Created
2014-05-29
Updated
2014-05-31
Size
5.31 KB
License
CC BY-NC-ND 3.0 - http://creativecommons.org/licenses/by-nc-nd/3.0/
Applies to

Tiberium Alliances Extension : Dev AddonMainMenu (AMM)

Script-integrity-check after 15.3 server-patch-update : Pass

Copyright: 2012+, Claus Neumann

License: CC BY-NC-ND 3.0 - http://creativecommons.org/licenses/by-nc-nd/3.0/

This is a script for other addons. With these scripts, developers can easily add their addon commands in a fixed menu.

Pics:


The Script for Developers:

var addonmenu = Addons.AddonMainMenu.getInstance();
addonmenu.AddMainMenu("TestMainButton",function(){debugfunction("1");},"ALT+J");
//--SUBMENUS--
var submenu = addonmenu.AddSubMainMenu("TestSubMenu");
addonmenu.AddSubMenu(submenu,"TestSubButton 1",function(){debugfunction("2");},"ALT+L");
addonmenu.AddSubMenu(submenu,"TestSubButton 2",function(){debugfunction("3");});
addonmenu.AddSubMenu(submenu,"TestSubButton 3",function(){debugfunction("4");});

------------------------------------------------------------------------------------

AddMainMenu( Buttonname, Function, optional Hotkey ) AddSubMainMenu( Buttonname ) AddSubMenu( Ref AddSubMainMenu ,Buttonname, Function, optional Hotkey )

Extensions that use this script
https://greasyfork.org/scripts/1830-c-c-tiberium-alliances-map-elda-mod
https://greasyfork.org/nl/scripts/1865-c-c-tiberium-alliances-navigate-to-coords

Version 0.2 Fixed graphical bug

Credits : BlinDManX
Original source : http://userscripts.org/scripts/show/155357