|
Public Methods |
| | cMenu (MENU_TYPE id, UI32 x, UI32 y, bool canMove, bool canClose, bool canDispose) |
| | ~cMenu () |
| void | setCloseable (bool canClose) |
| bool | getCloseable () |
| void | setDisposeable (bool canDispose) |
| bool | getDisposeable () |
| void | setMoveable (bool canMove) |
| bool | getMoveable () |
| virtual void | handleButton (NXWCLIENT ps, cClientPacket *pkg) |
| void | addCommand (std::string command) |
| void | addCommand (char *s,...) |
| void | addBackground (UI32 gumpId, UI32 width, UI32 height) |
| void | addButton (UI32 x, UI32 y, UI32 up, UI32 down, SI32 returnCode, bool pressable) |
| void | addButtonFn (UI32 x, UI32 y, UI32 up, UI32 down, SI32 returnCode, bool pressable, FUNCIDX fn) |
| void | addCheckbox (UI32 x, UI32 y, UI32 off, UI32 on, UI32 checked, SI32 result) |
| void | addCheckertrans (UI32 x, UI32 y, UI32 width, UI32 height) |
| void | addCroppedText (UI32 x, UI32 y, UI32 width, UI32 height, wstring text, UI32 hue) |
| void | addGump (UI32 x, UI32 y, UI32 gump, UI32 hue) |
| void | addHtmlGump (UI32 x, UI32 y, UI32 width, UI32 height, wstring html, UI32 hasBack, UI32 canScroll) |
| void | addInputField (UI32 x, UI32 y, UI32 width, UI32 height, UI16 textId, wstring data, UI32 hue=0) |
| void | addPropertyField (UI32 x, UI32 y, UI32 width, UI32 height, UI32 property, UI32 subProperty, UI32 hue=0, UI32 subProperty2=0) |
| void | addRadioButton (UI32 x, UI32 y, UI32 off, UI32 on, UI32 checked, SI32 result) |
| void | addResizeGump (UI32 x, UI32 y, UI32 gumpId, UI32 width, UI32 height) |
| void | addText (UI32 x, UI32 y, wstring data, UI32 hue=0) |
| void | addTilePic (UI32 x, UI32 y, UI32 tile, UI32 hue=0) |
| void | addTiledGump (UI32 x, UI32 y, UI32 width, UI32 height, UI32 gump, UI32 hue) |
| void | addXmfHtmlGump (UI32 x, UI32 y, UI32 width, UI32 height, wstring clilocid, UI32 hasBack, UI32 canScroll) |
| void | addGroup (UI32 group=0) |
| | Add a new group.
|
| void | addPage (UI32 page) |
| | Add a new page.
|
| void | addPageButton (UI32 x, UI32 y, UI32 up, UI32 down, UI32 page) |
| bool | getCheckBox (SERIAL checkbox, bool raw=false) |
| bool | getRadio (SERIAL radio, bool raw=false) |
| std::wstring * | getText (SERIAL text, bool raw=false) |
| SI32 | getButton (SI32 rawButton) |
Public Attributes |
| UI32 | x |
| | x coord where show
|
| UI32 | y |
| | y location where show
|
| UI32 | pageCount |
| | page count
|
| UI32 | pageCurrent |
| | current page
|
| UI32 | groupCount |
| | group count
|
| UI32 | groupCurrent |
| | current group
|
| SERIAL | buffer [5] |
| std::string | buffer_str [5] |
Protected Methods |
| virtual cServerPacket * | createPacket () |
Protected Attributes |
| std::vector< std::string > | commands |
| | all commands
|
| std::vector< wstring > | texts |
| | all strings
|
Private Methods |
| UI32 | addString (wstring s) |
| void | removeCommand (std::string command) |
| void | removeCommand (char *s,...) |
| void | setPropertyField (SERIAL type, SERIAL obj, int prop, int subProp, int subProp2, bool data) |
| void | setPropertyField (SERIAL type, SERIAL obj, int prop, int subProp, int subProp2, std::wstring data) |
| bool | getPropertyFieldBool (SERIAL type, SERIAL obj, int prop, int subProp, int subProp2) |
| std::wstring | getPropertyField (SERIAL type, SERIAL obj, int prop, int subProp, int subProp2) |
| SI32 | getIntFromProps (int prop, int prop2, int prop3) |
| void | getPropsFromInt (SI32 returnCode, int &prop, int &prop2, int &prop3) |
Private Attributes |
| bool | closeable |
| bool | moveable |
| bool | disposeable |
| SERIAL | rc_serialCurrent |
| | current code serial current
|
| std::map< SERIAL, SI32 > | rc_button |
| | return code for for button
|
| std::map< SERIAL, SI32 > | rc_radio |
| | return code for for radio
|
| std::map< SERIAL, SI32 > | rc_checkbox |
| | return code for for checkbox
|
| std::map< SERIAL, SI32 > | rc_edit |
| | return code for for edit
|
| std::map< SERIAL, FUNCIDX > | buttonCallbacks |
| | all callback for button
|
| std::map< SERIAL, SI32 > | editProps |
| | all edit property
|
| std::vector< SERIAL > * | switchs |
| | switch ids on after menu selection
|
| std::map< SERIAL, std::wstring > * | textResp |
| | edit field response
|