Changed: #1135 Merge changes from Ryzom patch 1.10 (thanks Naush)
This commit is contained in:
parent
2e7c0b7953
commit
608bcb1bce
3 changed files with 8 additions and 5 deletions
|
@ -477,7 +477,8 @@ void CChatWindow::displayLocalPlayerTell(const ucstring &msg, uint numBlinks /*=
|
||||||
{
|
{
|
||||||
cur_time = CInterfaceManager::getTimestampHuman();
|
cur_time = CInterfaceManager::getTimestampHuman();
|
||||||
}
|
}
|
||||||
ucstring csr = CHARACTER_TITLE::isCsrTitle(UserEntity->getTitleRaw()) ? "(CSR) " : "";
|
ucstring csr;
|
||||||
|
if (CHARACTER_TITLE::isCsrTitle(UserEntity->getTitleRaw())) csr += ucstring("(CSR) ");
|
||||||
finalMsg += cur_time + csr + CI18N::get("youTell") + ": ";
|
finalMsg += cur_time + csr + CI18N::get("youTell") + ": ";
|
||||||
prop.readRGBA("UI:SAVE:CHAT:COLORS:TELL"," ");
|
prop.readRGBA("UI:SAVE:CHAT:COLORS:TELL"," ");
|
||||||
encodeColorTag(prop.getRGBA(), finalMsg, true);
|
encodeColorTag(prop.getRGBA(), finalMsg, true);
|
||||||
|
|
|
@ -6331,8 +6331,8 @@ char* CInterfaceManager::getTimestampHuman(const char* format /* "[%H:%M:%S] " *
|
||||||
bool CInterfaceManager::parseTokens(ucstring& ucstr)
|
bool CInterfaceManager::parseTokens(ucstring& ucstr)
|
||||||
{
|
{
|
||||||
ucstring str = ucstr;
|
ucstring str = ucstr;
|
||||||
ucstring start_token = "$";
|
ucstring start_token("$");
|
||||||
ucstring end_token = "$";
|
ucstring end_token("$");
|
||||||
size_t start_pos = 0;
|
size_t start_pos = 0;
|
||||||
size_t end_pos = 1;
|
size_t end_pos = 1;
|
||||||
|
|
||||||
|
|
|
@ -469,7 +469,8 @@ void CPeopleList::displayLocalPlayerTell(uint index,const ucstring &msg,uint num
|
||||||
{
|
{
|
||||||
cur_time = CInterfaceManager::getTimestampHuman();
|
cur_time = CInterfaceManager::getTimestampHuman();
|
||||||
}
|
}
|
||||||
ucstring csr = CHARACTER_TITLE::isCsrTitle(UserEntity->getTitleRaw()) ? "(CSR) " : "";
|
ucstring csr;
|
||||||
|
if (CHARACTER_TITLE::isCsrTitle(UserEntity->getTitleRaw())) csr += ucstring("(CSR) ");
|
||||||
ucstring finalMsg = cur_time + csr + CI18N::get("youTell") + ": " + msg;
|
ucstring finalMsg = cur_time + csr + CI18N::get("youTell") + ": " + msg;
|
||||||
// display msg with good color
|
// display msg with good color
|
||||||
CInterfaceProperty prop;
|
CInterfaceProperty prop;
|
||||||
|
@ -939,7 +940,8 @@ class CHandlerContactEntry : public IActionHandler
|
||||||
{
|
{
|
||||||
cur_time = CInterfaceManager::getTimestampHuman();
|
cur_time = CInterfaceManager::getTimestampHuman();
|
||||||
}
|
}
|
||||||
ucstring csr = CHARACTER_TITLE::isCsrTitle(UserEntity->getTitleRaw()) ? "(CSR) " : "";
|
ucstring csr;
|
||||||
|
if (CHARACTER_TITLE::isCsrTitle(UserEntity->getTitleRaw())) csr += ucstring("(CSR) ");
|
||||||
final += cur_time + csr + CI18N::get("youTell")+": ";
|
final += cur_time + csr + CI18N::get("youTell")+": ";
|
||||||
prop.readRGBA("UI:SAVE:CHAT:COLORS:TELL"," ");
|
prop.readRGBA("UI:SAVE:CHAT:COLORS:TELL"," ");
|
||||||
CChatWindow::encodeColorTag(prop.getRGBA(), final, true);
|
CChatWindow::encodeColorTag(prop.getRGBA(), final, true);
|
||||||
|
|
Loading…
Reference in a new issue