#include <menuitem.h>
Public Member Functions | |
| IntMenuItem (const Common::String &text, short xp, short yp, int shortcutKey, int *val, int min, int max, int increment, menuOutputType output=MENU_OUTPUT_INT) | |
| void | activate (MenuEvent &event) override |
| Common::String | getText () const override |
Public Member Functions inherited from Ultima::Ultima4::MenuItem | |
| MenuItem (const Common::String &text, short x, short y, int shortcutKey=-1) | |
| int | getId () const |
| short | getX () const |
| short | getY () const |
| int | getScOffset () const |
| bool | isHighlighted () const |
| bool | isSelected () const |
| bool | isVisible () const |
| bool | hasShortcutKey (int key) const |
| bool | getClosesMenu () const |
| void | setId (int id) |
| void | setX (int x) |
| void | setY (int y) |
| void | setText (const Common::String &text) |
| void | setHighlighted (bool h=true) |
| void | setSelected (bool s=true) |
| void | setVisible (bool v=true) |
| void | addShortcutKey (int shortcutKey) |
| void | setClosesMenu (bool closesMenu) |
Protected Attributes | |
| int * | _val |
| int | _min |
| int | _max |
| int | _increment |
| menuOutputType | _output |
Protected Attributes inherited from Ultima::Ultima4::MenuItem | |
| int | _id |
| short | _x |
| short | _y |
| Common::String | _text |
| bool | _highlighted |
| bool | _selected |
| bool | _visible |
| int | _scOffset |
| Common::Array< int > | _shortcutKeys |
| bool | _closesMenu |
A menu item that cycles through a list of possible integer values, and displays the current setting as part of the text.