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::Surface * | captureThumbnail () |
| void | generateSaveThumbnail () |
| Graphics::Surface * | borrowSaveThumbnail () |
| 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::Surface * | createThumbnail (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 |
| bool Myst3::Menu::isOpen | ( | ) | const |
Indicates if the player is currently in a menu node
|
pure virtual |
Handle an event for the menu
Implemented in Myst3::AlbumMenu, and Myst3::PagingMenu.
| Graphics::Surface* Myst3::Menu::captureThumbnail | ( | ) |
Capture a save thumbnail
| void Myst3::Menu::generateSaveThumbnail | ( | ) |
Capture and save a thumbnail thumbnail can be obtain from borrowSaveThumbnail()
| Graphics::Surface* Myst3::Menu::borrowSaveThumbnail | ( | ) |
Get the current save thumbnail
Only valid while the menu is open