O.P. RE: Scriptmenu
My code that I Have:
function OnGetScriptCommands(){
var commands = '<ScriptCommands>';
commands+='<Command>';
commands+='<Name>Hardstyle</Name>';
commands+='</Command>';
commands+='<Command>';
commands+='<Name>Jumpstyle</Name>';
commands+='</Command>';
commands+='<Command>';
commands+='<Name>Extra</Name>';
commands+='</Command>';
commands+='</ScriptCommands>';
return commands;
}
function OnEvent_MenuClicked(MenuItemId, Location, OriginWnd) {
if (Location == 2) {
if (MenuItemId == "MnuAlbums2") OriginWnd.SendMessage("ALBUMS2");
if (MenuItemId == "MnuLiedjes2") OriginWnd.SendMessage("LIEDJES2");
if (MenuItemId == "MnuArtiesten2") OriginWnd.SendMessage("ARTIESTEN2");
if (MenuItemId == "MnuAlbums") OriginWnd.SendMessage("ALBUMS");
if (MenuItemId == "MnuLiedjes") OriginWnd.SendMessage("LIEDJES");
if (MenuItemId == "MnuArtiesten") OriginWnd.SendMessage("ARTIESTEN");
if (MenuItemId == "MnuStijlen") OriginWnd.SendMessage("!Stijlen");
if (MenuItemId == "MnuArtiesten Jumpstyle") OriginWnd.SendMessage("!Artiesten Jumpstyle");
if (MenuItemId == "MnuLocaties Jumpstyle") OriginWnd.SendMessage("!Locaties Jumpstyle");
if (MenuItemId == "MnuEvenementen Jumpstyle") OriginWnd.SendMessage("!Evenementen Jumpstyle");
if (MenuItemId == "MnuHoe Jumpen?") OriginWnd.SendMessage("!Hoe Jumpen?");
}
}
function OnGetScriptMenu(Location) {
if (Location == 2) { // Script menu in chat window
var ScriptMenu = "<ScriptMenu>";
ScriptMenu += "<SubMenu Label=\"Hardstyle\">";
ScriptMenu += "<MenuEntry Id=\"MnuAlbums2\">Albums</MenuEntry>";
ScriptMenu += "<MenuEntry Id=\"MnuLiedjes2\">Liedjes</MenuEntry>";
ScriptMenu += "<MenuEntry Id=\"MnuArtiesten2\">Artiesten</MenuEntry>";
ScriptMenu += "</SubMenu>";
ScriptMenu += "<SubMenu Label=\"Jumpstyle\">";
ScriptMenu += "<MenuEntry Id=\"MnuAlbums\">Albums</MenuEntry>";
ScriptMenu += "<MenuEntry Id=\"MnuLiedjes\">Liedjes</MenuEntry>";
ScriptMenu += "<MenuEntry Id=\"MnuArtiesten\">Artiesten</MenuEntry>";
ScriptMenu += "</SubMenu>";
ScriptMenu += "<SubMenu Label=\"Extra\">";
ScriptMenu += "<MenuEntry Id=\"MnuStijlen\">Stijlen</MenuEntry>";
ScriptMenu += "<MenuEntry Id=\"MnuArtiesten Jumpstyle\">Artiesten Jumpstyle</MenuEntry>";
ScriptMenu += "<MenuEntry Id=\"MnuLocaties Jumpstyle\">Locaties Jumpstyle</MenuEntry>";
ScriptMenu += "<MenuEntry Id=\"MnuEvenementen Jumpstyle\">Evenementen Jumpstyle</MenuEntry>";
ScriptMenu += "<MenuEntry Id=\"MnuHoe Jumpen?\">Hoe Jumpen?</MenuEntry>";
ScriptMenu += "</SubMenu>";
ScriptMenu += "</ScriptMenu>";
return ScriptMenu;
}
}
|