mirror of
https://github.com/CraftyBoss/SuperMarioOdysseyOnline.git
synced 2025-01-05 07:01:15 +00:00
Merge pull request #68 from Istador/pr-new-players-list
New Hide & Seek Players List
This commit is contained in:
commit
56c5adc094
15 changed files with 18 additions and 7 deletions
Binary file not shown.
BIN
romfs/LocalizedData/CNzh/LayoutData/FontData.szs
Normal file
BIN
romfs/LocalizedData/CNzh/LayoutData/FontData.szs
Normal file
Binary file not shown.
BIN
romfs/LocalizedData/EUde/LayoutData/FontData.szs
Normal file
BIN
romfs/LocalizedData/EUde/LayoutData/FontData.szs
Normal file
Binary file not shown.
BIN
romfs/LocalizedData/EUen/LayoutData/FontData.szs
Normal file
BIN
romfs/LocalizedData/EUen/LayoutData/FontData.szs
Normal file
Binary file not shown.
BIN
romfs/LocalizedData/EUes/LayoutData/FontData.szs
Normal file
BIN
romfs/LocalizedData/EUes/LayoutData/FontData.szs
Normal file
Binary file not shown.
BIN
romfs/LocalizedData/EUfr/LayoutData/FontData.szs
Normal file
BIN
romfs/LocalizedData/EUfr/LayoutData/FontData.szs
Normal file
Binary file not shown.
BIN
romfs/LocalizedData/EUit/LayoutData/FontData.szs
Normal file
BIN
romfs/LocalizedData/EUit/LayoutData/FontData.szs
Normal file
Binary file not shown.
BIN
romfs/LocalizedData/EUnl/LayoutData/FontData.szs
Normal file
BIN
romfs/LocalizedData/EUnl/LayoutData/FontData.szs
Normal file
Binary file not shown.
BIN
romfs/LocalizedData/EUru/LayoutData/FontData.szs
Normal file
BIN
romfs/LocalizedData/EUru/LayoutData/FontData.szs
Normal file
Binary file not shown.
BIN
romfs/LocalizedData/JPja/LayoutData/FontData.szs
Normal file
BIN
romfs/LocalizedData/JPja/LayoutData/FontData.szs
Normal file
Binary file not shown.
BIN
romfs/LocalizedData/TWzh/LayoutData/FontData.szs
Normal file
BIN
romfs/LocalizedData/TWzh/LayoutData/FontData.szs
Normal file
Binary file not shown.
BIN
romfs/LocalizedData/USen/LayoutData/FontData.szs
Normal file
BIN
romfs/LocalizedData/USen/LayoutData/FontData.szs
Normal file
Binary file not shown.
BIN
romfs/LocalizedData/USes/LayoutData/FontData.szs
Normal file
BIN
romfs/LocalizedData/USes/LayoutData/FontData.szs
Normal file
Binary file not shown.
BIN
romfs/LocalizedData/USfr/LayoutData/FontData.szs
Normal file
BIN
romfs/LocalizedData/USfr/LayoutData/FontData.szs
Normal file
Binary file not shown.
|
@ -86,16 +86,27 @@ void HideAndSeekIcon::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);
|
||||
|
||||
for (size_t i = 0; i < playerCount; i++) {
|
||||
sead::BufferedSafeStringBase<char> playerList = sead::BufferedSafeStringBase<char>(playerNameBuf, 0x200);
|
||||
|
||||
// Add your own name to the list at the top
|
||||
playerList.appendWithFormat("%s %s\n", mInfo->mIsPlayerIt ? "\uE002" : "\uE001", Client::instance()->getClientName());
|
||||
|
||||
// Add all seekers to the list
|
||||
for (int i = 0; i < playerCount; i++) {
|
||||
PuppetInfo* curPuppet = Client::getPuppetInfo(i);
|
||||
if (curPuppet && curPuppet->isConnected && (curPuppet->isIt == mInfo->mIsPlayerIt)) {
|
||||
playerList.appendWithFormat("%s\n", curPuppet->puppetName);
|
||||
if (curPuppet && curPuppet->isConnected && curPuppet->isIt) {
|
||||
playerList.appendWithFormat("\uE002 %s\n", curPuppet->puppetName);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Add all hiders to the list
|
||||
for (int i = 0; i < playerCount; i++) {
|
||||
PuppetInfo* curPuppet = Client::getPuppetInfo(i);
|
||||
if (curPuppet && curPuppet->isConnected && !curPuppet->isIt) {
|
||||
playerList.appendWithFormat("\uE001 %s\n", curPuppet->puppetName);
|
||||
}
|
||||
}
|
||||
|
||||
al::setPaneStringFormat(this, "TxtPlayerList", playerList.cstr());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue