Menubar with bitmaps.
by Javier Canon · in Game Design and Creative Issues · 06/18/2007 (11:54 pm) · 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?
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?
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
On the bus again... :)