|
bool | checkEvents (XeenEngine *vm) |
|
bool | doScroll (bool rollUp, bool fadeIn) override |
|
void | loadStrings (const Common::Path &name) |
|
void | loadStrings (const Common::Path &name, int ccMode) |
|
void | setWaitBounds () |
|
Common::String | getNextTextSection (const Common::String &text, uint &index, uint count, const char *separator) const |
|
Common::String | getNextTextSection (const Common::String &text, uint &index, uint count) const |
|
Common::String | getNextTextSection (const Common::String &text, uint &index) const |
|
Common::String | addNextTextToButtons (const Common::String &text, uint &index) |
|
Common::String | addNextTextToButtons (const Common::String &text, uint &index, uint count) |
|
void | setButtonTexts (const Common::String &text) |
|
void | disableButtonVoicing (uint startIndex, uint endIndex) |
|
void | enableButtonVoicing (uint startIndex, uint endIndex) |
|
| Cutscenes (XeenEngine *vm) |
|
uint | getSpeakingFrame (uint minFrame, uint maxFrame) |
|
◆ doScroll()
bool MM::Xeen::ButtonContainer::doScroll |
( |
bool |
rollUp, |
|
|
bool |
fadeIn |
|
) |
| |
|
overrideprotectedvirtual |
Draws the scroll in the background
- Parameters
-
rollUp | If true, rolls up the scroll. If false, unrolls. |
fadeIn | If true, does an initial fade in |
- Returns
- True if key or mouse pressed
Reimplemented from MM::Xeen::Cutscenes.
◆ loadStrings() [1/2]
void MM::Xeen::ButtonContainer::loadStrings |
( |
const Common::Path & |
name | ) |
|
|
protected |
Load a set of text strings from the given resource
- Parameters
-
name | Name of resource containing strings |
◆ loadStrings() [2/2]
void MM::Xeen::ButtonContainer::loadStrings |
( |
const Common::Path & |
name, |
|
|
int |
ccMode |
|
) |
| |
|
protected |
Load a set of text strings from the given resource
- Parameters
-
name | Name of resource containing strings |
ccMode | Optional cc file number to explicitly use |
◆ setWaitBounds()
void MM::Xeen::ButtonContainer::setWaitBounds |
( |
| ) |
|
|
protected |
Sets the wait bounds, the area where clicking with the mouse generates the equivalent of a space bar press, to the main interface area
◆ getNextTextSection() [1/3]
Common::String MM::Xeen::ButtonContainer::getNextTextSection |
( |
const Common::String & |
text, |
|
|
uint & |
index, |
|
|
uint |
count, |
|
|
const char * |
separator |
|
) |
| const |
|
protected |
Reads one or more sections of text, then combines them
- Parameters
-
text | Text to take the sections from. Each section should be separated by one or more newlines |
index | Starting index, which is moved to the start of the following section, or npos if no sections remain |
count | How many sections to read |
separator | What to separate sections with |
- Returns
- The text sections combined, each separated by the separator
◆ getNextTextSection() [2/3]
Reads one or more sections of text, then combines them. Newlines are kept intact
- Parameters
-
text | Text to take the sections from. Each section should be separated by one or more newlines |
index | Starting index, which is moved to the start of the following section, or npos if no sections remain |
count | How many sections to read |
- Returns
- The text sections combined
◆ getNextTextSection() [3/3]
Reads one section of text
- Parameters
-
text | Text to take the section from. Each section should be separated by one or more newlines |
index | Starting index, which is moved to the start of the following section, or npos if no sections remain |
- Returns
- The text section
◆ addNextTextToButtons() [1/2]
Reads one section of text and adds it to the button texts
- Parameters
-
text | Text to take the section from. Each section should be separated by one or more newlines |
index | Starting index, which is moved to the start of the following section, or npos if no sections remain |
- Returns
- The text section
◆ addNextTextToButtons() [2/2]
Reads one or more sections of text and adds them to the button texts
- Parameters
-
text | Text to take the sections from. Each section should be separated by one or more newlines |
index | Starting index, which is moved to the start of the following section, or npos if no sections remain |
count | How many sections to read |
- Returns
- The text sections combined
◆ setButtonTexts()
void MM::Xeen::ButtonContainer::setButtonTexts |
( |
const Common::String & |
text | ) |
|
|
protected |
Sets the text of each button for use by TTS
- Parameters
-
text | Text for buttons. Each button's text should be separated by newlines |
◆ disableButtonVoicing()
void MM::Xeen::ButtonContainer::disableButtonVoicing |
( |
uint |
startIndex, |
|
|
uint |
endIndex |
|
) |
| |
|
protected |
Disables the voicing of buttons from the start index to the end index
- Parameters
-
startIndex | Starting index |
endIndex | Ending index |
◆ enableButtonVoicing()
void MM::Xeen::ButtonContainer::enableButtonVoicing |
( |
uint |
startIndex, |
|
|
uint |
endIndex |
|
) |
| |
|
protected |
Enables the voicing of buttons from the start index to the end index
- Parameters
-
startIndex | Starting index |
endIndex | Ending index |
◆ saveButtons()
void MM::Xeen::ButtonContainer::saveButtons |
( |
| ) |
|
Saves the current list of buttons
◆ drawButtons()
void MM::Xeen::ButtonContainer::drawButtons |
( |
XSurface * |
surface | ) |
|
Draws the buttons onto the passed surface
◆ clearEvents()
void MM::Xeen::ButtonContainer::clearEvents |
( |
| ) |
|
|
inline |
Clears any currently set button value
◆ checkHoverOverButton()
void MM::Xeen::ButtonContainer::checkHoverOverButton |
( |
| ) |
|
Checks if a button is being hovered over and voices its text with TTS, if there is text
The documentation for this class was generated from the following file: