本文整理汇总了C++中CClientChatManager::cycleLastTell方法的典型用法代码示例。如果您正苦于以下问题:C++ CClientChatManager::cycleLastTell方法的具体用法?C++ CClientChatManager::cycleLastTell怎么用?C++ CClientChatManager::cycleLastTell使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CClientChatManager
的用法示例。
在下文中一共展示了CClientChatManager::cycleLastTell方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: actionPart
void actionPart ()
{
// If the line starts with '/tell ', do not try to expand
static const ucstring TELL_STR("/tell ");
if (_GroupEdit->getInputString().substr(0, TELL_STR.length()) != TELL_STR)
{
if (_GroupEdit->expand()) return;
}
CInterfaceManager *im = CInterfaceManager::getInstance();
if (!im->isInGame()) return;
// there was no / at the start of the line so try to cycle through the last people on which a tell was done
const ucstring *lastTellPeople = ChatMngr.cycleLastTell();
if (!lastTellPeople) return;
// Get chat box from ist edit box
// If it isn't a user chat or the main chat, just display 'tell' with the name. Otherwise, change the target of the window
CChatWindow *cw = getChatWndMgr().getChatWindowFromCaller(_GroupEdit);
if (!cw) return;
CFilteredChat *fc = PeopleInterraction.getFilteredChatFromChatWindow(cw);
if (fc)
{
fc->Filter.setTargetPlayer(*lastTellPeople);
}
else
{
// it is not a filtered chat, display 'tell' (must be ingame)
_GroupEdit->setCommand(ucstring("tell ") + *lastTellPeople + (ucchar) ' ', false);
}
}