![]() |
|
How to display online player count on server section - Printable Version +- LCKB (https://lckb.dev/forum) +-- Forum: ** OLD LCKB DATABASE ** (https://lckb.dev/forum/forumdisplay.php?fid=109) +--- Forum: Guides & Help Section (https://lckb.dev/forum/forumdisplay.php?fid=193) +---- Forum: Tutorials & Guides (https://lckb.dev/forum/forumdisplay.php?fid=124) +----- Forum: Ep4 Guides (https://lckb.dev/forum/forumdisplay.php?fid=125) +----- Thread: How to display online player count on server section (/showthread.php?tid=3312) |
- cooldude - 12-30-2020 Set 1: Open client soruce file UIServerSelect.cpp. You will find this in Engine\Contents\Login. Set 2: find this code: else { pText->SetText(CTString(_S( 371, "¿øÈ°" ))); pText->setFontColor(0xCCCCCCFF); } } Step 3 add this underneath. else { CTString strTmp; strTmp.PrintF("%d", pChannelInfo->iPlayerNum); pText->SetText(strTmp); pText->setFontColor(0xFF9533FF); } If added cuorrectly this will be the result: /monthly_2020_12/image.png.1d8d718f97cf1415affd00db70bf0a78.png"> Enjoy. Found this code on my computer not sure who made it - dethunter12 - 12-31-2020 where you see pText->setFontColor(0xFF9533FF); you can replace the hex value with . 0xcolorFF using html color picker to get the value 2 /monthly_2020_12/image.png.6efa99f78750279dcca7a92aa345993f.png" /> So final result would be Ox in the front FF at the end (color in the middle) pText->setFontColor(0xcc9900FF); This would display gold number for online counter. - b4rr4cud4 - 02-24-2021 Cant get it to work thanks anyway... ![]() else { pText->SetText(CTString(_S( 371, "원활" ))); pText->setFontColor(0xCCCCCCFF); } } else { CTString strTmp; strTmp.PrintF("%d", pChannelInfo->iPlayerNum); pText->SetText(strTmp); pText->setFontColor(0xFF9533FF); } } compiles but does not show, just says normal - rondo157 - 02-24-2021 41 minutes ago, b4rr4cud4 said: Cant get it to work thanks anyway... ? else { pText->SetText(CTString(_S( 371, "원활" ))); pText->setFontColor(0xCCCCCCFF); } } else { CTString strTmp; strTmp.PrintF("%d", pChannelInfo->iPlayerNum); pText->SetText(strTmp); pText->setFontColor(0xFF9533FF); } } compiles but does not show, just says normal else { pText->SetText(CTString(_S( 371, "원활" ))); pText->setFontColor(0xCCCCCCFF); } remove it lol - kravens - 02-24-2021 17 hours ago, rondo157 said: else { pText->SetText(CTString(_S( 371, "원활" ))); pText->setFontColor(0xCCCCCCFF); } remove it lol i just laugh so hard xDDDDDDDDDDDDDDDDDD - Matt Hias - 11-23-2021 nothing changes for me. here is an excerpt of my change Does somebody has any idea? if (pText = (CUIText*)pTmpItem->findUI("text_state")) { if( pChannelInfo->iPlayerNum == -1 ) { pText->SetText(CTString(_S( 372, "Á¡°Ë" ))); pText->setFontColor(0x9400D6FF); } else if( pChannelInfo->iPlayerNum >= _cmiComm.cci_iFullUsers ) { pText->SetText(CTString(_S( 373, "FULL" ))); pText->setFontColor(0xD11184FF); } else if( pChannelInfo->iPlayerNum >= _cmiComm.cci_iBusyUsers ) { pText->SetText(CTString(_S( 374, "È¥Àâ" ))); pText->setFontColor(0xFF9533FF); } } else { CTString strTmp; strTmp.PrintF("%d", pChannelInfo->iPlayerNum); pText->SetText(strTmp); pText->setFontColor(0x00ff00FF); } } m_pChannelList->UpdateList(); m_pChannelList->UpdateScroll(nChannelCnt); 2 - nicolasg - 11-23-2021 6 minutes ago, Matt Hias said: nothing changes for me. here is an excerpt of my change Does somebody has any idea? if (pText = (CUIText*)pTmpItem->findUI("text_state")) { if( pChannelInfo->iPlayerNum == -1 ) { pText->SetText(CTString(_S( 372, "Á¡°Ë" ))); pText->setFontColor(0x9400D6FF); } else if( pChannelInfo->iPlayerNum >= _cmiComm.cci_iFullUsers ) { pText->SetText(CTString(_S( 373, "FULL" ))); pText->setFontColor(0xD11184FF); } else if( pChannelInfo->iPlayerNum >= _cmiComm.cci_iBusyUsers ) { pText->SetText(CTString(_S( 374, "È¥Àâ" ))); pText->setFontColor(0xFF9533FF); } else { CTString strTmp; strTmp.PrintF("%d", pChannelInfo->iPlayerNum); pText->SetText(strTmp); pText->setFontColor(0x00ff00FF); } } } m_pChannelList->UpdateList(); m_pChannelList->UpdateScroll(nChannelCnt); - Matt Hias - 11-23-2021 thanks ? |