[debug menu] change: simplify player page

- Show `Yes` and `No` instead of `True` and `False`
- Remove `Is in Capture`
- Always show `Capture`
- Combine `Animation Index` and `Packet Animation` into one `Animation` line
- Rename `Puppet0` to `Empty Slot 1`
- Don't mention puppets
This commit is contained in:
Robin C. Ladiges 2024-05-15 22:19:44 +02:00
parent ec41ee067e
commit c0bb939a92
No known key found for this signature in database
GPG key ID: B494D3DF92661B99
2 changed files with 10 additions and 18 deletions

View file

@ -184,24 +184,16 @@ void drawMainHook(HakoniwaSequence *curSequence, sead::Viewport *viewport, sead:
PuppetInfo* curPupInfo = curPuppet->getInfo(); PuppetInfo* curPupInfo = curPuppet->getInfo();
if (curModel && curPupInfo) { if (curModel && curPupInfo) {
gTextWriter->printf("Player Name: %s\n", curPupInfo->puppetName); gTextWriter->printf("Player Name: %s\n", curPupInfo->puppetName);
gTextWriter->printf("Connection Status: %s\n", curPupInfo->isConnected ? "Online" : "Offline"); gTextWriter->printf("Connection Status: %s\n", curPupInfo->isConnected ? "Online" : "Offline");
gTextWriter->printf("Is in Same Stage: %s\n", curPupInfo->isInSameStage ? "True" : "False"); gTextWriter->printf("Is in same Stage: %s\n", curPupInfo->isInSameStage ? "Yes" : "No");
gTextWriter->printf("Is in Capture: %s\n", curPupInfo->isCaptured ? "True" : "False"); gTextWriter->printf("Stage: %s\n", curPupInfo->stageName);
gTextWriter->printf("Puppet Stage: %s\n", curPupInfo->stageName); gTextWriter->printf("Scenario: %u\n", curPupInfo->scenarioNo);
gTextWriter->printf("Puppet Scenario: %u\n", curPupInfo->scenarioNo); gTextWriter->printf("Costume: H: %s B: %s\n", curPupInfo->costumeHead, curPupInfo->costumeBody);
gTextWriter->printf("Puppet Costume: H: %s B: %s\n", curPupInfo->costumeHead, curPupInfo->costumeBody); gTextWriter->printf("Capture: %s\n", curPupInfo->isCaptured ? curPupInfo->curHack : "");
gTextWriter->printf("Animation: %d %s\n", curPupInfo->curAnim, curPupInfo->curAnimStr);
if(curPupInfo->isCaptured) { if (!curPupInfo->isCaptured) {
gTextWriter->printf("Current Capture: %s\n", curPupInfo->curHack); gTextWriter->printf("Model Animation: %s\n", al::getActionName(curModel));
gTextWriter->printf("Current Packet Animation: %s\n", curPupInfo->curAnimStr);
gTextWriter->printf("Animation Index: %d\n", curPupInfo->curAnim);
}else {
gTextWriter->printf("Current Packet Animation: %s\n", curPupInfo->curAnimStr);
gTextWriter->printf("Animation Index: %d\n", curPupInfo->curAnim);
if (curModel) {
gTextWriter->printf("Current Animation: %s\n", al::getActionName(curModel));
}
} }
} }
} }

View file

@ -35,7 +35,7 @@ Client::Client() {
{ {
mPuppetInfoArr[i] = new PuppetInfo(); mPuppetInfoArr[i] = new PuppetInfo();
sprintf(mPuppetInfoArr[i]->puppetName, "Puppet%zu", i); sprintf(mPuppetInfoArr[i]->puppetName, "Empty Slot %zu", i + 1);
} }
strcpy(mDebugPuppetInfo.puppetName, "PuppetDebug"); strcpy(mDebugPuppetInfo.puppetName, "PuppetDebug");