mirror of
https://github.com/CraftyBoss/SuperMarioOdysseyOnline.git
synced 2024-11-04 18:55:05 +00:00
Sardines player list update
This commit is contained in:
parent
f8eef7fb97
commit
2a0d0e7724
4 changed files with 17 additions and 9 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -89,16 +89,24 @@ void SardineIcon::exeWait()
|
|||
|
||||
char playerNameBuf[0x100] = {0}; // max of 16 player names if player name size is 0x10
|
||||
|
||||
sead::BufferedSafeStringBase<char> playerList = sead::BufferedSafeStringBase<char>(playerNameBuf, 0x200);
|
||||
sead::BufferedSafeStringBase<char> playerList =
|
||||
sead::BufferedSafeStringBase<char>(playerNameBuf, 0x200);
|
||||
|
||||
if (mInfo->mIsIt)
|
||||
playerList.appendWithFormat("%s\n", Client::instance()->getClientName());
|
||||
// Add your own name to the list at the top
|
||||
playerList.appendWithFormat("%s %s\n", mInfo->mIsIt ? "@" : "©", Client::instance()->getClientName());
|
||||
|
||||
for (size_t i = 0; i < playerCount; i++) {
|
||||
// Add all it players to list
|
||||
for(int i = 0; i < playerCount; i++){
|
||||
PuppetInfo* curPuppet = Client::getPuppetInfo(i);
|
||||
if (curPuppet && curPuppet->isConnected && curPuppet->isIt) {
|
||||
playerList.appendWithFormat("%s\n", curPuppet->puppetName);
|
||||
if (curPuppet && curPuppet->isConnected && curPuppet->isIt)
|
||||
playerList.appendWithFormat("%s %s\n", curPuppet->isIt ? "@" : "©", curPuppet->puppetName);
|
||||
}
|
||||
|
||||
// Add not it players to list
|
||||
for(int i = 0; i < playerCount; i++){
|
||||
PuppetInfo* curPuppet = Client::getPuppetInfo(i);
|
||||
if (curPuppet && curPuppet->isConnected && !curPuppet->isIt)
|
||||
playerList.appendWithFormat("%s %s\n", curPuppet->isIt ? "@" : "©", curPuppet->puppetName);
|
||||
}
|
||||
|
||||
al::setPaneStringFormat(this, "TxtPlayerList", playerList.cstr());
|
||||
|
|
Loading…
Reference in a new issue