Class Description
author: Elm description - Menu Class This class is used to present a user with an interface they can interact with, without installing client sided files. This class utilizes the centerprint to achieve this. All menus should be created in /Menus/menu_menuName.cs classes: menuSystem & menuObject
menuSystem::newMenuObject(%this,%name,%bodyTxt)
Notes: creates a new menu.
menuSystem::getMenu(%this,%name)
Notes: attempts to get an existing menu from the menuSystem group
menuObject::getSelected(%this,%client)
Notes: gets the current selection in the menu
menuObject::getMenuItemByText(%this,%text)
Notes: returns the actual menu item object by it's text value
menuObject::onMenuSelect(%this,%client)
Notes: called when a user selects a menu item
menuObject::onMenuSelectCallBack(%this,%client,%selected)
Notes: empty callback
menuObject::scrollDown(%this,%client)
Notes: scrolls down the interface list
menuObject::scrollUp(%this,%client)
Notes: scrolls up the interface list
menuObject::setTempBody(%this,%body)
Notes: all menuObjects have static body text defined in the /Menus/menu_menuName.cs file This method allows you to change that text
menuObject::setDefaultBody(%this)
Notes: sets the body text of the menu interface back to whatever it was initially set to when created in the /Menus/menu_menuName.cs file
menuObject::showInputMenu(%this,%client)
Notes: if the object is an input menu, it will be displayed
menuObject::hideInputMenu(%this,%client)
Notes: hides a currently displayed input menu
menuObject::onInputValueRecieved(%this,%client,%value)
Notes: callback for when a user gives the server input, from the input menu
menuObject::showMenu(%this,%client,%indexHighlight)
Notes: attempts to show a menu
menuObject::hideMenu(%this,%client)
Notes: attempts to hide a menu, if visible
menuObject::addMenuItem(%this,%text,%evalText)
Notes: adds an item into the menu that is selectable and scrollable
menuObject::isMenu(%this,%name)
Notes: simple menu check
menuObject::getMenu(%this,%name)
Notes: attempts to return a menu object, by name
serverCmdMessageSent(%client,%message)
Notes: Packaged overwrite - input menu support
menuObject::onInputValueRecieved(%this,%client,%value)
Notes: Packaged Example on displaying menus based on certain things being clicked by a user
servercmdsupershiftbrick(%client,%x,%y,%z)
Notes: menu support for scrolling
servercmdshiftbrick(%client,%x,%y,%z)
Notes: menu support for scrolling
serverCmdPlantBrick(%client,%a,%b,%c,%d)
Notes: menu support for selecting an item, in a menu
serverCmdCancelBrick(%this,%a,%b,%c,%d,%e)
Notes: support for closing a menu, if visible