ScummVM API documentation
Myst3::Menu Class Referenceabstract
Inheritance diagram for Myst3::Menu:
Myst3::Drawable Myst3::AlbumMenu Myst3::PagingMenu

Public Member Functions

 Menu (Myst3Engine *vm)
 
bool isOpen () const
 
virtual bool handleInput (const Common::KeyState &e)=0
 
void updateMainMenu (uint16 action)
 
void goToNode (uint16 node)
 
Graphics::SurfacecaptureThumbnail ()
 
void generateSaveThumbnail ()
 
Graphics::SurfaceborrowSaveThumbnail ()
 
virtual void saveLoadAction (uint16 action, uint16 item)=0
 
virtual void setSaveLoadSpotItem (uint16 id, SpotItemFace *spotItem)
 
- Public Member Functions inherited from Myst3::Drawable
virtual void draw ()
 
virtual void drawOverlay ()
 
bool isConstrainedToWindow () const
 
bool is3D () const
 
bool isScaled () const
 

Protected Member Functions

uint dialogIdFromType (DialogType type)
 
uint16 dialogConfirmValue ()
 
uint16 dialogSaveValue ()
 
Graphics::SurfacecreateThumbnail (Graphics::Surface *big)
 
Common::String getAgeLabel (GameState *gameState)
 

Protected Attributes

Myst3Engine_vm
 
Common::ScopedPtr< Graphics::Surface, Graphics::SurfaceDeleter_saveThumbnail
 
SpotItemFace_saveLoadSpotItem
 
Common::String _saveLoadAgeName
 
- Protected Attributes inherited from Myst3::Drawable
bool _isConstrainedToWindow
 
bool _is3D
 
bool _scaled
 

Member Function Documentation

◆ isOpen()

bool Myst3::Menu::isOpen ( ) const

Indicates if the player is currently in a menu node

◆ handleInput()

virtual bool Myst3::Menu::handleInput ( const Common::KeyState e)
pure virtual

Handle an event for the menu

Returns
true if the event was handled

Implemented in Myst3::AlbumMenu, and Myst3::PagingMenu.

◆ captureThumbnail()

Graphics::Surface* Myst3::Menu::captureThumbnail ( )

Capture a save thumbnail

◆ generateSaveThumbnail()

void Myst3::Menu::generateSaveThumbnail ( )

Capture and save a thumbnail thumbnail can be obtain from borrowSaveThumbnail()

◆ borrowSaveThumbnail()

Graphics::Surface* Myst3::Menu::borrowSaveThumbnail ( )

Get the current save thumbnail

Only valid while the menu is open


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