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 () override
 
void flagButtonEnable (Button *button)
 
void flagButtonDisable (Button *button)
 
int redrawShadedButtonCallback (Button *button) override
 
int redrawButtonCallback (Button *button) override
 
int optionsButton (Button *button)
 
void createScreenThumbnail (Graphics::Surface &dst) override
 
- Public Member Functions inherited from Kyra::GUI_v2
 GUI_v2 (KyraEngine_v2 *vm)
 
ButtonaddButtonToList (Button *list, Button *newButton) override
 
void processButton (Button *button) override
 
int processButtonList (Button *button, uint16 inputFlag, int8 mouseWheel) override
 
- Public Member Functions inherited from Kyra::GUI_v1
 GUI_v1 (KyraEngine_v1 *vm)
 
 ~GUI_v1 () override
 
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) override
 
const char * getMenuItemTitle (const MenuItem &menuItem) override
 
const char * getMenuItemLabel (const MenuItem &menuItem) override
 
char * getTableString (int id) override
 
uint8 textFieldColor1 () const override
 
uint8 textFieldColor2 () const override
 
uint8 textFieldColor3 () const override
 
uint8 defaultColor1 () const override
 
uint8 defaultColor2 () const override
 
void resetState (int item)
 
int quitGame (Button *button)
 
int loadMenu (Button *button)
 
int loadSecondChance (Button *button)
 
int gameOptions (Button *button)
 
void setupOptionsButtons () override
 
int audioOptions (Button *button)
 
int sliderHandler (Button *caller) override
 
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) override
 
virtual void setupPalette ()
 
virtual void restorePalette ()
 
virtual void getInput ()
 
ButtongetButtonListData () override
 
ButtongetScrollUpButton () override
 
ButtongetScrollDownButton () override
 
int scrollUpButton (Button *button)
 
int scrollDownButton (Button *button)
 
Button::Callback getScrollUpButtonHandler () const override
 
Button::Callback getScrollDownButtonHandler () const override
 
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 1442 of file gui_mr.cpp.

◆ changeLanguage()

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

Definition at line 1404 of file gui_mr.cpp.

◆ createScreenThumbnail()

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

Implements Kyra::GUI_v1.

Definition at line 1039 of file gui_mr.cpp.

◆ defaultColor1()

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

Implements Kyra::GUI_v1.

Definition at line 59 of file gui_mr.h.

◆ defaultColor2()

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

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 1570 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)
overrideprivatevirtual

Implements Kyra::GUI_v1.

Definition at line 1079 of file gui_mr.cpp.

◆ getMenuItemTitle()

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

Implements Kyra::GUI_v1.

Definition at line 1072 of file gui_mr.cpp.

◆ getMenuTitle()

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

Implements Kyra::GUI_v1.

Definition at line 1065 of file gui_mr.cpp.

◆ getTableString()

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

Implements Kyra::GUI_v2.

Definition at line 1086 of file gui_mr.cpp.

◆ initStaticData()

void Kyra::GUI_MR::initStaticData ( )
overridevirtual

Implements Kyra::GUI_v2.

Definition at line 1951 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)
overridevirtual

Reimplemented from Kyra::GUI_v1.

Definition at line 1090 of file gui_mr.cpp.

◆ redrawShadedButtonCallback()

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

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 ( )
overrideprivatevirtual

Implements Kyra::GUI_v2.

Definition at line 1365 of file gui_mr.cpp.

◆ sliderHandler()

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

Implements Kyra::GUI_v2.

Definition at line 1501 of file gui_mr.cpp.

◆ textFieldColor1()

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

Implements Kyra::GUI_v2.

Definition at line 55 of file gui_mr.h.

◆ textFieldColor2()

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

Implements Kyra::GUI_v2.

Definition at line 56 of file gui_mr.h.

◆ textFieldColor3()

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

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 1431 of file gui_mr.cpp.

◆ toggleSkipSupport()

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

Definition at line 1423 of file gui_mr.cpp.

◆ toggleStudioSFX()

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

Definition at line 1415 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: