ScummVM API documentation
MADS::Nebular::GameDialog Class Reference
Inheritance diagram for MADS::Nebular::GameDialog:
MADS::FullScreenDialog MADS::EventTarget MADS::Nebular::DifficultyDialog MADS::Nebular::GameMenuDialog MADS::Nebular::OptionsDialog

Public Member Functions

 GameDialog (MADSEngine *vm)
 
 ~GameDialog () override
 
virtual void show ()
 
- Public Member Functions inherited from MADS::FullScreenDialog
 FullScreenDialog (MADSEngine *vm)
 
- Public Member Functions inherited from MADS::EventTarget
virtual bool onEvent (Common::Event &event)
 

Protected Member Functions

void display () override
 
void clearLines ()
 
void setClickableLines ()
 
void addQuote (int id1, int id2, DialogTextAlign align, const Common::Point &pt, Font *font=nullptr)
 
void addLine (const Common::String &msg, DialogTextAlign align, const Common::Point &pt, Font *font=nullptr)
 
void initVars ()
 
void setFrame (int frameNumber, int depth)
 
void chooseBackground ()
 
void handleEvents ()
 
void refreshText ()
 

Protected Attributes

Common::Array< DialogLine > _lines
 
int _tempLine
 
bool _movedFlag
 
bool _redrawFlag
 
int _selectedLine
 
bool _dirFlag
 
int _menuSpritesIndex
 
int _lineIndex
 
int _textLineCount
 
- Protected Attributes inherited from MADS::FullScreenDialog
MADSEngine_vm
 
int _screenId
 
bool _palFlag
 

Constructor & Destructor Documentation

◆ GameDialog()

MADS::Nebular::GameDialog::GameDialog ( MADSEngine vm)

Constructor

◆ ~GameDialog()

MADS::Nebular::GameDialog::~GameDialog ( )
override

Destructor

Member Function Documentation

◆ display()

void MADS::Nebular::GameDialog::display ( )
overrideprotectedvirtual

◆ clearLines()

void MADS::Nebular::GameDialog::clearLines ( )
protected

Reset the lines list for the dialog

◆ setClickableLines()

void MADS::Nebular::GameDialog::setClickableLines ( )
protected

Setup lines to be clickable

◆ addQuote()

void MADS::Nebular::GameDialog::addQuote ( int  id1,
int  id2,
DialogTextAlign  align,
const Common::Point pt,
Font font = nullptr 
)
protected

Add a quote to the lines list

◆ addLine()

void MADS::Nebular::GameDialog::addLine ( const Common::String msg,
DialogTextAlign  align,
const Common::Point pt,
Font font = nullptr 
)
protected

Adds a line to the lines list

◆ initVars()

void MADS::Nebular::GameDialog::initVars ( )
protected

Initializes variables

◆ setFrame()

void MADS::Nebular::GameDialog::setFrame ( int  frameNumber,
int  depth 
)
protected

Sets the display for the screen background behind the dialog

◆ chooseBackground()

void MADS::Nebular::GameDialog::chooseBackground ( )
protected

Choose the background to display for the dialog

◆ handleEvents()

void MADS::Nebular::GameDialog::handleEvents ( )
protected

Handle events whilst the dialog is active

◆ refreshText()

void MADS::Nebular::GameDialog::refreshText ( )
protected

Refresh the display of the dialog's text

◆ show()

virtual void MADS::Nebular::GameDialog::show ( )
virtual

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