#include <menu_input.h>
Public Member Functions | |
| void | setup (int col, int row) |
| bool | handleKey (const KeypressMessage &msg) override |
| byte | bcd () const |
| int | decimal () const |
Public Member Functions inherited from Ultima::Ultima3::Views::LineInput | |
| void | setup (uint maxLength, int col, int row) |
| void | reset () |
| const Common::String & | text () const |
| virtual bool | handleKey (const KeypressMessage &msg) |
| void | draw (GfxSurface &s, bool active) const |
Additional Inherited Members | |
Protected Attributes inherited from Ultima::Ultima3::Views::LineInput | |
| Common::String | _text |
| uint | _maxLength = 0 |
| int | _col = 0 |
| int | _row = 0 |
A two character entry that has to be a valid decimal number. It's available as the decimal value, and as the BCD value the game stores
|
overridevirtual |
Handles a keypress, returning true once the entry has been accepted
Reimplemented from Ultima::Ultima3::Views::LineInput.