Presentation state shared by default and custom dialogue UIs. 更多...
#include <DialogueUX.h>
Public 成员函数 | |
| Module_REG (DialogueUX) | |
| void | record (const std::string &lineId, const std::string &speaker, const std::string &text) |
| Record a completed line in the player-visible backlog. | |
| void | clearHistory () |
| Clears history. | |
| int | getHistoryCount () const |
| Returns the history count. | |
| std::string | getHistoryLineId (int index) const |
| Returns the history line id. | |
| std::string | getHistorySpeaker (int index) const |
| Returns the history speaker. | |
| std::string | getHistoryText (int index) const |
| Returns the history text. | |
| std::string | plainText (const std::string &richText) const |
| Strip supported control tags for plain UI widgets. | |
| int | getTextActionCount (const std::string &richText) const |
| Number of pause/speed/style actions in rich text. | |
| void | setAutoMode (bool enabled) |
| Sets the auto mode. | |
| bool | isAutoMode () const |
| True when auto mode. | |
| void | setAutoDelay (float seconds) |
| Sets the auto delay. | |
| float | getAutoDelay () const |
| Returns the auto delay. | |
| bool | updateAuto (float dt, bool voicePlaying) |
| Advance the auto timer; voice playback holds the timer. | |
| void | resetAutoTimer () |
| Resets auto timer. | |
| bool | setSkipMode (const std::string &mode) |
| Set skip mode: off, read, or all. | |
| std::string | getSkipMode () const |
| Returns the skip mode. | |
| void | markRead (const std::string &lineId) |
| Mark read. | |
| bool | isRead (const std::string &lineId) const |
| True when read. | |
| bool | shouldSkip (const std::string &lineId) const |
| Should skip. | |
Public 成员函数 继承自 eve::Module | |
| virtual | ~Module () |
| Module. | |
| virtual std::string | getName () const =0 |
| Returns the name. | |
详细描述
Presentation state shared by default and custom dialogue UIs.
在文件 DialogueUX.h 第 14 行定义.
成员函数说明
◆ clearHistory()
| void eve::dialogue::DialogueUX::clearHistory | ( | ) |
Clears history.
在文件 DialogueUX.cpp 第 16 行定义.
◆ getAutoDelay()
|
inline |
Returns the auto delay.
在文件 DialogueUX.h 第 43 行定义.
◆ getHistoryCount()
| int eve::dialogue::DialogueUX::getHistoryCount | ( | ) | const |
Returns the history count.
在文件 DialogueUX.cpp 第 18 行定义.
◆ getHistoryLineId()
| std::string eve::dialogue::DialogueUX::getHistoryLineId | ( | int | index | ) | const |
◆ getHistorySpeaker()
| std::string eve::dialogue::DialogueUX::getHistorySpeaker | ( | int | index | ) | const |
◆ getHistoryText()
| std::string eve::dialogue::DialogueUX::getHistoryText | ( | int | index | ) | const |
◆ getSkipMode()
|
inline |
Returns the skip mode.
在文件 DialogueUX.h 第 52 行定义.
◆ getTextActionCount()
| int eve::dialogue::DialogueUX::getTextActionCount | ( | const std::string & | richText | ) | const |
◆ isAutoMode()
|
inline |
True when auto mode.
在文件 DialogueUX.h 第 39 行定义.
◆ isRead()
| bool eve::dialogue::DialogueUX::isRead | ( | const std::string & | lineId | ) | const |
◆ markRead()
| void eve::dialogue::DialogueUX::markRead | ( | const std::string & | lineId | ) |
Mark read.
在文件 DialogueUX.cpp 第 100 行定义.
◆ Module_REG()
| eve::dialogue::DialogueUX::Module_REG | ( | DialogueUX | ) |
◆ plainText()
| std::string eve::dialogue::DialogueUX::plainText | ( | const std::string & | richText | ) | const |
◆ record()
| void eve::dialogue::DialogueUX::record | ( | const std::string & | lineId, |
| const std::string & | speaker, | ||
| const std::string & | text | ||
| ) |
Record a completed line in the player-visible backlog.
在文件 DialogueUX.cpp 第 10 行定义.
引用了 plainText() , 以及 text.
◆ resetAutoTimer()
|
inline |
Resets auto timer.
在文件 DialogueUX.h 第 47 行定义.
◆ setAutoDelay()
| void eve::dialogue::DialogueUX::setAutoDelay | ( | float | seconds | ) |
Sets the auto delay.
在文件 DialogueUX.cpp 第 84 行定义.
◆ setAutoMode()
|
inline |
◆ setSkipMode()
| bool eve::dialogue::DialogueUX::setSkipMode | ( | const std::string & | mode | ) |
Set skip mode: off, read, or all.
在文件 DialogueUX.cpp 第 94 行定义.
◆ shouldSkip()
| bool eve::dialogue::DialogueUX::shouldSkip | ( | const std::string & | lineId | ) | const |
◆ updateAuto()
| bool eve::dialogue::DialogueUX::updateAuto | ( | float | dt, |
| bool | voicePlaying | ||
| ) |
Advance the auto timer; voice playback holds the timer.
在文件 DialogueUX.cpp 第 86 行定义.
该类的文档由以下文件生成:
- src/modules/dialogue/DialogueUX.h
- src/modules/dialogue/DialogueUX.cpp
Public 成员函数 继承自