C&C Tiberium Alliances Dev AddonMainMenu

C&C:Tiberium Alliances Dev AddonMainMenu (AMM)

نووسەر
DLwarez 007
Daily installs
0
Total installs
931
Ratings
0 0 0
وەشان
0.2
Created
2014-05-29
Updated
2014-05-31
مۆڵەت
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:
 photo 2ovi5tdv_zps63341167.png

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