Commit 77ac145a authored by Tianchenglipu's avatar Tianchenglipu

Update game.cpp

parent 90e405d7
...@@ -924,18 +924,22 @@ void Game::ShowCardInfo(int code) { ...@@ -924,18 +924,22 @@ void Game::ShowCardInfo(int code) {
else myswprintf(formatBuffer, L"%ls[%08d]", dataManager.GetName(code), code); else myswprintf(formatBuffer, L"%ls[%08d]", dataManager.GetName(code), code);
stName->setText(formatBuffer); stName->setText(formatBuffer);
int offset = 0; int offset = 0;
unsigned long long sc = cd.setcode; if(!mainGame->chkHideSetname->isChecked())) {
if(cd.alias) { unsigned long long sc = cd.setcode;
auto aptr = dataManager._datas.find(cd.alias); if(cd.alias) {
if(aptr != dataManager._datas.end()) auto aptr = dataManager._datas.find(cd.alias);
sc = aptr->second.setcode; if(aptr != dataManager._datas.end())
} sc = aptr->second.setcode;
if(sc) { }
offset = 23; if(sc) {
myswprintf(formatBuffer, L"%ls%ls", dataManager.GetSysString(1329), dataManager.FormatSetName(sc)); offset = 23;
stSetName->setText(formatBuffer); myswprintf(formatBuffer, L"%ls%ls", dataManager.GetSysString(1329), dataManager.FormatSetName(sc));
} else stSetName->setText(formatBuffer);
} else
stSetName->setText(L"");
} else {
stSetName->setText(L""); stSetName->setText(L"");
}
if(cd.type & TYPE_MONSTER) { if(cd.type & TYPE_MONSTER) {
myswprintf(formatBuffer, L"[%ls] %ls/%ls", dataManager.FormatType(cd.type), dataManager.FormatRace(cd.race), dataManager.FormatAttribute(cd.attribute)); myswprintf(formatBuffer, L"[%ls] %ls/%ls", dataManager.FormatType(cd.type), dataManager.FormatRace(cd.race), dataManager.FormatAttribute(cd.attribute));
stInfo->setText(formatBuffer); stInfo->setText(formatBuffer);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment