Menubar with bitmaps like msoffice menus?
by Javier Canon · in Torque Game Engine · 06/20/2007 (10:54 am) · 0 replies
Hi, i found that the menubar have this method:
setMenuItemBitmap (string menu, string menuItem, int bitmapIndex)
how i can use this method to put an image in the menu items like MSoffice, or this change all menuitem with an image?, how use it?
thanks.
ex:
// LaunchMenu
LaunchMenu.addMenu("Launch", 0);
LaunchMenu.addMenuItem("Launch", "Play Online", 0);
LaunchMenu.addMenuItem("Launch", "Host a Game", 1);
// Launch Menu Commands.
LaunchMenu.scriptCommand["Launch", 0] = "Canvas.pushDialog(JoinServerGui);";
LaunchMenu.scriptCommand["Launch", 1] = "Canvas.pushDialog(startMissionGui);";
function LaunchMenu::onMenuSelect(%this, %menuId, %menu){}
function LaunchMenu::onMenuItemSelect(%this, %menuId, %menu, %itemId, %item){}
etc....
setMenuItemBitmap (string menu, string menuItem, int bitmapIndex)
how i can use this method to put an image in the menu items like MSoffice, or this change all menuitem with an image?, how use it?
thanks.
ex:
// LaunchMenu
LaunchMenu.addMenu("Launch", 0);
LaunchMenu.addMenuItem("Launch", "Play Online", 0);
LaunchMenu.addMenuItem("Launch", "Host a Game", 1);
// Launch Menu Commands.
LaunchMenu.scriptCommand["Launch", 0] = "Canvas.pushDialog(JoinServerGui);";
LaunchMenu.scriptCommand["Launch", 1] = "Canvas.pushDialog(startMissionGui);";
function LaunchMenu::onMenuSelect(%this, %menuId, %menu){}
function LaunchMenu::onMenuItemSelect(%this, %menuId, %menu, %itemId, %item){}
etc....
About the author
God blessed me with a brilliant mind... so im a genius...