|
|
Font * | _font |
| |
|
int | _innerWidth |
| |
|
int | _lineWidth |
| |
|
int | _currentX |
| |
|
int | _numLines |
| |
|
int | _lineSize |
| |
|
int | _askXp |
| |
|
int | _askLineNum |
| |
|
Common::String | _lines [20] |
| |
|
int | _lineXp [20] |
| |
|
SpriteAsset * | _edgeSeries |
| |
|
MSurface * | _portrait |
| |
|
int | _piecesPerCenter |
| |
|
int | _fontSpacing |
| |
|
MADSEngine * | _vm |
| |
|
MSurface * | _savedSurface |
| |
|
Common::Point | _position |
| |
|
int | _width |
| |
|
int | _height |
| |
|
byte | _dialogPalette [8 *3] |
| |
|
int | TEXTDIALOG_CONTENT1 |
| |
|
int | TEXTDIALOG_CONTENT2 |
| |
|
int | TEXTDIALOG_EDGE |
| |
|
int | TEXTDIALOG_BACKGROUND |
| |
|
int | TEXTDIALOG_FC |
| |
|
int | TEXTDIALOG_FD |
| |
|
int | TEXTDIALOG_FE |
| |
|
int | TEXTDIALOG_BLACK |
| |
◆ TextDialog() [1/2]
Constructor
- Parameters
-
| vm | Engine reference |
| fontName | Font to use for display |
| pos | Position for window top-left |
| maxChars | Horizontal width of window in characters |
◆ TextDialog() [2/2]
Constructor
- Parameters
-
| vm | Engine reference |
| fontName | Font to use for display |
| pos | Position for window top-left |
| portrait | Speaker portrait to show in dialog |
| maxTextChars | Horizontal width of text portion of window in characters |
◆ ~TextDialog()
| MADS::TextDialog::~TextDialog |
( |
| ) |
|
|
override |
◆ calculateBounds()
| void MADS::TextDialog::calculateBounds |
( |
| ) |
|
|
overrideprotectedvirtual |
Calculate the bounds for the dialog
Reimplemented from MADS::Dialog.
◆ draw()
| void MADS::TextDialog::draw |
( |
| ) |
|
|
overridevirtual |
◆ drawWithInput()
| void MADS::TextDialog::drawWithInput |
( |
| ) |
|
Draw the dialog along with any input box
◆ addLine()
| void MADS::TextDialog::addLine |
( |
const Common::String & |
line, |
|
|
bool |
underline = false |
|
) |
| |
Add a new line to the dialog
◆ wordWrap()
Adds one or more lines, word wrapping the passed text
◆ incNumLines()
| void MADS::TextDialog::incNumLines |
( |
| ) |
|
Increments the number of text lines the text dialog uses
◆ addInput()
| void MADS::TextDialog::addInput |
( |
| ) |
|
Adds an input area following previously added text
◆ addBarLine()
| void MADS::TextDialog::addBarLine |
( |
| ) |
|
Adds a bar line to separate sections of text
◆ underlineLine()
| void MADS::TextDialog::underlineLine |
( |
| ) |
|
Flags the previously added line to be underlined
◆ setLineXp()
| void MADS::TextDialog::setLineXp |
( |
int |
xp | ) |
|
Set the x position for the given line
◆ estimatePieces()
| int MADS::TextDialog::estimatePieces |
( |
int |
maxLen | ) |
|
Estimates the maximum dialog length for text dialogs with icons
◆ show()
| virtual void MADS::TextDialog::show |
( |
| ) |
|
|
virtual |
The documentation for this class was generated from the following file: