ScummVM API documentation
MADS::Nebular::PictureDialog Class Reference
Inheritance diagram for MADS::Nebular::PictureDialog:
MADS::TextDialog MADS::Dialog

Public Member Functions

 PictureDialog (MADSEngine *vm, const Common::Point &pos, int maxChars, int objectId)
 
- Public Member Functions inherited from MADS::TextDialog
 TextDialog (MADSEngine *vm, const Common::String &fontName, const Common::Point &pos, int maxChars)
 
 TextDialog (MADSEngine *vm, const Common::String &fontName, const Common::Point &pos, MSurface *portrait, int maxTextChars)
 
 ~TextDialog () override
 
void draw () override
 
void drawWithInput ()
 
void addLine (const Common::String &line, bool underline=false)
 
void wordWrap (const Common::String &line)
 
void incNumLines ()
 
void addInput ()
 
void addBarLine ()
 
void underlineLine ()
 
void downPixelLine ()
 
void setLineXp (int xp)
 
int estimatePieces (int maxLen)
 
virtual void show ()
 

Protected Member Functions

void save () override
 
void restore () override
 
- Protected Member Functions inherited from MADS::TextDialog
void calculateBounds () override
 
- Protected Member Functions inherited from MADS::Dialog
void drawContent (const Common::Rect &r, int seed, byte color1, byte color2)
 
 Dialog (MADSEngine *vm)
 
virtual ~Dialog ()
 
Common::Rect getBounds () const
 

Additional Inherited Members

- Protected Attributes inherited from MADS::TextDialog
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
 
- Protected Attributes inherited from MADS::Dialog
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
 

Member Function Documentation

◆ save()

void MADS::Nebular::PictureDialog::save ( )
overrideprotectedvirtual

Save the section of the passed surface the dialog will cover.

Reimplemented from MADS::Dialog.

◆ restore()

void MADS::Nebular::PictureDialog::restore ( )
overrideprotectedvirtual

Restore saved dialog surface

Reimplemented from MADS::Dialog.


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