载入中...
搜索中...
未找到
eve::dialogue::DialogueUX类 参考

Presentation state shared by default and custom dialogue UIs. 更多...

#include <DialogueUX.h>

类 eve::dialogue::DialogueUX 继承关系图:
eve::Module

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

float eve::dialogue::DialogueUX::getAutoDelay ( ) const
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

Returns the history line id.

在文件 DialogueUX.cpp 第 26 行定义.

引用了 index.

◆ getHistorySpeaker()

std::string eve::dialogue::DialogueUX::getHistorySpeaker ( int  index) const

Returns the history speaker.

在文件 DialogueUX.cpp 第 31 行定义.

引用了 index.

◆ getHistoryText()

std::string eve::dialogue::DialogueUX::getHistoryText ( int  index) const

Returns the history text.

在文件 DialogueUX.cpp 第 36 行定义.

引用了 index.

◆ getSkipMode()

std::string eve::dialogue::DialogueUX::getSkipMode ( ) const
inline

Returns the skip mode.

在文件 DialogueUX.h 第 52 行定义.

◆ getTextActionCount()

int eve::dialogue::DialogueUX::getTextActionCount ( const std::string &  richText) const

Number of pause/speed/style actions in rich text.

在文件 DialogueUX.cpp 第 68 行定义.

引用了 count.

◆ isAutoMode()

bool eve::dialogue::DialogueUX::isAutoMode ( ) const
inline

True when auto mode.

在文件 DialogueUX.h 第 39 行定义.

◆ isRead()

bool eve::dialogue::DialogueUX::isRead ( const std::string &  lineId) const

True when read.

在文件 DialogueUX.cpp 第 104 行定义.

被这些函数引用 shouldSkip().

◆ 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

Strip supported control tags for plain UI widgets.

在文件 DialogueUX.cpp 第 52 行定义.

被这些函数引用 record().

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

void eve::dialogue::DialogueUX::resetAutoTimer ( )
inline

Resets auto timer.

在文件 DialogueUX.h 第 47 行定义.

◆ setAutoDelay()

void eve::dialogue::DialogueUX::setAutoDelay ( float  seconds)

Sets the auto delay.

在文件 DialogueUX.cpp 第 84 行定义.

◆ setAutoMode()

void eve::dialogue::DialogueUX::setAutoMode ( bool  enabled)
inline

Sets the auto mode.

在文件 DialogueUX.h 第 37 行定义.

引用了 enabled.

◆ 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

Should skip.

在文件 DialogueUX.cpp 第 108 行定义.

引用了 isRead().

◆ updateAuto()

bool eve::dialogue::DialogueUX::updateAuto ( float  dt,
bool  voicePlaying 
)

Advance the auto timer; voice playback holds the timer.

在文件 DialogueUX.cpp 第 86 行定义.


该类的文档由以下文件生成: