mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Fix chat color formatting
This commit is contained in:
parent
93b59afed5
commit
394194f400
1 changed files with 3 additions and 3 deletions
|
@ -194,16 +194,16 @@ void ChatMenu::UpdateChat() {
|
|||
std::vector<std::string> chatLog = getChatLog();
|
||||
for (auto i : chatLog) {
|
||||
//split long text
|
||||
uint32_t namecolor = 0xF6B629;
|
||||
uint32_t namecolor = 0x29B6F6;
|
||||
uint32_t textcolor = 0xFFFFFF;
|
||||
uint32_t infocolor = 0x35D8FD;
|
||||
uint32_t infocolor = 0xFDD835;
|
||||
|
||||
std::string name = g_Config.sNickName.c_str();
|
||||
std::string displayname = i.substr(0, i.find(':'));
|
||||
std::string chattext = i.substr(displayname.length());
|
||||
|
||||
if (name.substr(0, 8) == displayname) {
|
||||
namecolor = 0x3539E5;
|
||||
namecolor = 0xE53935;
|
||||
}
|
||||
|
||||
if (i[displayname.length()] != ':') {
|
||||
|
|
Loading…
Add table
Reference in a new issue