ScummVM API documentation
Ultima::Ultima3::Views::NumberInput Class Reference

#include <menu_input.h>

Inheritance diagram for Ultima::Ultima3::Views::NumberInput:
Ultima::Ultima3::Views::LineInput

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
 

Detailed Description

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

Member Function Documentation

◆ handleKey()

bool Ultima::Ultima3::Views::NumberInput::handleKey ( const KeypressMessage &  msg)
overridevirtual

Handles a keypress, returning true once the entry has been accepted

Reimplemented from Ultima::Ultima3::Views::LineInput.


The documentation for this class was generated from the following file: