ScummVM
Kyra::GUI_MR Class Reference

#include <gui_mr.h>

Inheritance diagram for Kyra::GUI_MR:
Collaboration diagram for Kyra::GUI_MR:

Public Member Functions

 GUI_MR (KyraEngine_MR *engine)
 
void initStaticData ()
 
void flagButtonEnable (Button *button)
 
void flagButtonDisable (Button *button)
 
int redrawShadedButtonCallback (Button *button)
 
int redrawButtonCallback (Button *button)
 
int optionsButton (Button *button)
 
void createScreenThumbnail (Graphics::Surface &dst)
 
- Public Member Functions inherited from Kyra::GUI_v2
 GUI_v2 (KyraEngine_v2 *vm)
 
ButtonaddButtonToList (Button *list, Button *newButton)
 
void processButton (Button *button)
 
int processButtonList (Button *button, uint16 inputFlag, int8 mouseWheel)
 
- Public Member Functions inherited from Kyra::GUI_v1
 GUI_v1 (KyraEngine_v1 *vm)
 
virtual ~GUI_v1 ()
 
virtual void initMenuLayout (Menu &menu)
 
void initMenu (Menu &menu)
 
void processHighlights (Menu &menu)
 
- Public Member Functions inherited from Kyra::GUI
 GUI (KyraEngine_v1 *vm)
 
virtual ~GUI ()
 
void notifyUpdateSaveSlotsList ()
 

Private Member Functions

const char * getMenuTitle (const Menu &menu)
 
const char * getMenuItemTitle (const MenuItem &menuItem)
 
const char * getMenuItemLabel (const MenuItem &menuItem)
 
char * getTableString (int id)
 
uint8 textFieldColor1 () const
 
uint8 textFieldColor2 () const
 
uint8 textFieldColor3 () const
 
uint8 defaultColor1 () const
 
uint8 defaultColor2 () const
 
void resetState (int item)
 
int quitGame (Button *button)
 
int loadMenu (Button *button)
 
int loadSecondChance (Button *button)
 
int gameOptions (Button *button)
 
void setupOptionsButtons ()
 
int audioOptions (Button *button)
 
int sliderHandler (Button *caller)
 
void drawSliderBar (int slider, const uint8 *shape)
 
int changeLanguage (Button *caller)
 
int toggleStudioSFX (Button *caller)
 
int toggleSkipSupport (Button *caller)
 
int toggleHeliumMode (Button *caller)
 

Private Attributes

KyraEngine_MR_vm
 
Screen_MR_screen
 

Friends

class KyraEngine_MR
 

Additional Inherited Members

- Protected Member Functions inherited from Kyra::GUI_v2
void updateButton (Button *button)
 
virtual void setupPalette ()
 
virtual void restorePalette ()
 
virtual void getInput ()
 
ButtongetButtonListData ()
 
ButtongetScrollUpButton ()
 
ButtongetScrollDownButton ()
 
int scrollUpButton (Button *button)
 
int scrollDownButton (Button *button)
 
Button::Callback getScrollUpButtonHandler () const
 
Button::Callback getScrollDownButtonHandler () const
 
void renewHighlight (Menu &menu)
 
void backUpPage1 (uint8 *buffer)
 
void restorePage1 (const uint8 *buffer)
 
void setupSavegameNames (Menu &menu, int num)
 
int resumeGame (Button *caller)
 
int clickLoadSlot (Button *caller)
 
int cancelLoadMenu (Button *caller)
 
int saveMenu (Button *caller)
 
int clickSaveSlot (Button *caller)
 
int cancelSaveMenu (Button *caller)
 
int deleteMenu (Button *caller)
 
int quitOptionsMenu (Button *caller)
 
int toggleWalkspeed (Button *caller)
 
int toggleText (Button *caller)
 
const char * nameInputProcess (char *buffer, int x, int y, uint8 c1, uint8 c2, uint8 c3, int bufferSize)
 
int finishSavename (Button *caller)
 
int cancelSavename (Button *caller)
 
bool checkSavegameDescription (const char *buffer, int size)
 
int getCharWidth (uint8 c)
 
void drawTextfieldBlock (int x, int y, uint8 c)
 
bool choiceDialog (int name, bool type)
 
int choiceYes (Button *caller)
 
int choiceNo (Button *caller)
 
- Protected Member Functions inherited from Kyra::GUI_v1
virtual void printMenuText (const char *str, int x, int y, uint8 c0, uint8 c1, uint8 c2)
 
virtual int getMenuCenterStringX (const char *str, int x1, int x2)
 
void updateAllMenuButtons ()
 
void updateMenuButton (Button *button)
 
void redrawText (const Menu &menu)
 
void redrawHighlight (const Menu &menu)
 
void checkTextfieldInput ()
 
- Protected Member Functions inherited from Kyra::GUI
void updateSaveFileList (Common::String targetName, bool excludeQuickSaves=false)
 
int getNextSavegameSlot ()
 
void updateSaveSlotsList (Common::String targetName, bool force=false)
 
virtual void sortSaveSlots ()
 
- Protected Attributes inherited from Kyra::GUI_v2
KyraEngine_v2_vm
 
Screen_v2_screen
 
bool _buttonListChanged
 
Button_backUpButtonList
 
Button_specialProcessButton
 
uint16 _flagsModifier
 
Button _menuButtons [7]
 
Button _scrollUpButton
 
Button _scrollDownButton
 
Menu _mainMenu
 
Menu _gameOptions
 
Menu _audioOptions
 
Menu _choiceMenu
 
Menu _loadMenu
 
Menu _saveMenu
 
Menu _savenameMenu
 
Menu _deathMenu
 
Button::Callback _scrollUpFunctor
 
Button::Callback _scrollDownFunctor
 
Button _sliderButtons [3][4]
 
Menu_currentMenu
 
bool _isLoadMenu
 
bool _isDeathMenu
 
bool _isSaveMenu
 
bool _isDeleteMenu
 
bool _isChoiceMenu
 
bool _isOptionsMenu
 
bool _madeSave
 
bool _loadedSave
 
bool _restartGame
 
bool _reloadTemporarySave
 
int _savegameOffset
 
bool _noLoadProcess
 
bool _noSaveProcess
 
int _saveSlot
 
char _saveDescription [0x51]
 
int _slotToDelete
 
Button::Callback _sliderHandlerFunctor
 
bool _finishNameInput
 
bool _cancelNameInput
 
bool _choice
 
- Protected Attributes inherited from Kyra::GUI_v1
TextDisplayer_text
 
Button_menuButtonList
 
bool _displayMenu
 
bool _displaySubMenu
 
bool _cancelSubMenu
 
Button::Callback _redrawShadedButtonFunctor
 
Button::Callback _redrawButtonFunctor
 
uint32 _lastScreenUpdate
 
- Protected Attributes inherited from Kyra::GUI
KyraEngine_v1_vm
 
Screen_screen
 
Common::Array< int_saveSlots
 
uint32 _lastScreenUpdate
 
char ** _savegameList
 
int _savegameListSize
 
bool _saveSlotsListUpdateNeeded
 
Common::KeyState _keyPressed
 
- Static Protected Attributes inherited from Kyra::GUI_v2
static const int _sliderBarsPosition []
 

Detailed Description

Definition at line 33 of file gui_mr.h.

Constructor & Destructor Documentation

◆ GUI_MR()

Kyra::GUI_MR::GUI_MR ( KyraEngine_MR engine)

Definition at line 1036 of file gui_mr.cpp.

Member Function Documentation

◆ audioOptions()

int Kyra::GUI_MR::audioOptions ( Button button)
private

Definition at line 1444 of file gui_mr.cpp.

◆ changeLanguage()

int Kyra::GUI_MR::changeLanguage ( Button caller)
private

Definition at line 1406 of file gui_mr.cpp.

◆ createScreenThumbnail()

void Kyra::GUI_MR::createScreenThumbnail ( Graphics::Surface dst)
virtual

Implements Kyra::GUI_v1.

Definition at line 1039 of file gui_mr.cpp.

◆ defaultColor1()

uint8 Kyra::GUI_MR::defaultColor1 ( ) const
inlineprivatevirtual

Implements Kyra::GUI_v1.

Definition at line 59 of file gui_mr.h.

◆ defaultColor2()

uint8 Kyra::GUI_MR::defaultColor2 ( ) const
inlineprivatevirtual

Implements Kyra::GUI_v1.

Definition at line 60 of file gui_mr.h.

◆ drawSliderBar()

void Kyra::GUI_MR::drawSliderBar ( int  slider,
const uint8 shape 
)
private

Definition at line 1572 of file gui_mr.cpp.

◆ flagButtonDisable()

void Kyra::GUI_MR::flagButtonDisable ( Button button)

Definition at line 1055 of file gui_mr.cpp.

◆ flagButtonEnable()

void Kyra::GUI_MR::flagButtonEnable ( Button button)

Definition at line 1045 of file gui_mr.cpp.

◆ gameOptions()

int Kyra::GUI_MR::gameOptions ( Button button)
private

Definition at line 1311 of file gui_mr.cpp.

◆ getMenuItemLabel()

const char * Kyra::GUI_MR::getMenuItemLabel ( const MenuItem menuItem)
privatevirtual

Implements Kyra::GUI_v1.

Definition at line 1079 of file gui_mr.cpp.

◆ getMenuItemTitle()

const char * Kyra::GUI_MR::getMenuItemTitle ( const MenuItem menuItem)
privatevirtual

Implements Kyra::GUI_v1.

Definition at line 1072 of file gui_mr.cpp.

◆ getMenuTitle()

const char * Kyra::GUI_MR::getMenuTitle ( const Menu menu)
privatevirtual

Implements Kyra::GUI_v1.

Definition at line 1065 of file gui_mr.cpp.

◆ getTableString()

char * Kyra::GUI_MR::getTableString ( int  id)
privatevirtual

Implements Kyra::GUI_v2.

Definition at line 1086 of file gui_mr.cpp.

◆ initStaticData()

void Kyra::GUI_MR::initStaticData ( )
virtual

Implements Kyra::GUI_v2.

Definition at line 1926 of file staticres.cpp.

◆ loadMenu()

int Kyra::GUI_MR::loadMenu ( Button button)
private

Definition at line 1254 of file gui_mr.cpp.

◆ loadSecondChance()

int Kyra::GUI_MR::loadSecondChance ( Button button)
private

Definition at line 1300 of file gui_mr.cpp.

◆ optionsButton()

int Kyra::GUI_MR::optionsButton ( Button button)

Definition at line 1141 of file gui_mr.cpp.

◆ quitGame()

int Kyra::GUI_MR::quitGame ( Button button)
private

Definition at line 1123 of file gui_mr.cpp.

◆ redrawButtonCallback()

int Kyra::GUI_MR::redrawButtonCallback ( Button button)
virtual

Reimplemented from Kyra::GUI_v1.

Definition at line 1090 of file gui_mr.cpp.

◆ redrawShadedButtonCallback()

int Kyra::GUI_MR::redrawShadedButtonCallback ( Button button)
virtual

Reimplemented from Kyra::GUI_v1.

Definition at line 1099 of file gui_mr.cpp.

◆ resetState()

void Kyra::GUI_MR::resetState ( int  item)
private

Definition at line 1107 of file gui_mr.cpp.

◆ setupOptionsButtons()

void Kyra::GUI_MR::setupOptionsButtons ( )
privatevirtual

Implements Kyra::GUI_v2.

Definition at line 1367 of file gui_mr.cpp.

◆ sliderHandler()

int Kyra::GUI_MR::sliderHandler ( Button caller)
privatevirtual

Implements Kyra::GUI_v2.

Definition at line 1503 of file gui_mr.cpp.

◆ textFieldColor1()

uint8 Kyra::GUI_MR::textFieldColor1 ( ) const
inlineprivatevirtual

Implements Kyra::GUI_v2.

Definition at line 55 of file gui_mr.h.

◆ textFieldColor2()

uint8 Kyra::GUI_MR::textFieldColor2 ( ) const
inlineprivatevirtual

Implements Kyra::GUI_v2.

Definition at line 56 of file gui_mr.h.

◆ textFieldColor3()

uint8 Kyra::GUI_MR::textFieldColor3 ( ) const
inlineprivatevirtual

Implements Kyra::GUI_v2.

Definition at line 57 of file gui_mr.h.

◆ toggleHeliumMode()

int Kyra::GUI_MR::toggleHeliumMode ( Button caller)
private

Definition at line 1433 of file gui_mr.cpp.

◆ toggleSkipSupport()

int Kyra::GUI_MR::toggleSkipSupport ( Button caller)
private

Definition at line 1425 of file gui_mr.cpp.

◆ toggleStudioSFX()

int Kyra::GUI_MR::toggleStudioSFX ( Button caller)
private

Definition at line 1417 of file gui_mr.cpp.

Friends And Related Function Documentation

◆ KyraEngine_MR

friend class KyraEngine_MR
friend

Definition at line 34 of file gui_mr.h.

Member Data Documentation

◆ _screen

Screen_MR* Kyra::GUI_MR::_screen
private

Definition at line 82 of file gui_mr.h.

◆ _vm

KyraEngine_MR* Kyra::GUI_MR::_vm
private

Definition at line 81 of file gui_mr.h.


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