C&C Tiberium Alliances Dev AddonMainMenu

C&C:Tiberium Alliances Dev AddonMainMenu (AMM)

Autor
DLwarez 007
Denně instalací
0
Celkem instalací
931
Hodnocení
0 0 0
Verze
0.2
Vytvořeno
29. 05. 2014
Aktualizováno
31. 05. 2014
Licence
CC BY-NC-ND 3.0 - http://creativecommons.org/licenses/by-nc-nd/3.0/
Spustit na

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