Commit 6c27a581 authored by nanahira's avatar nanahira Committed by Momobako

fix

parent abb20982
......@@ -1473,9 +1473,6 @@ void Game::ShowCardInfo(int code) {
myswprintf(adBuffer, L"%d/- ", cd.attack);
wcscat(formatBuffer, adBuffer);
wcscat(formatBuffer, dataManager.FormatLinkMarker(cd.link_marker));
//modded
if(cd.level >= 8)
offset = offset + 23;
}
if(cd.type & TYPE_PENDULUM) {
wchar_t scaleBuffer[16];
......@@ -1483,9 +1480,16 @@ void Game::ShowCardInfo(int code) {
wcscat(formatBuffer, scaleBuffer);
}
stDataInfo->setText(formatBuffer);
//modded
if ((cd.type & TYPE_LINK) && (cd.level == 8)) {
stSetName->setRelativePosition(rect<s32>(15, 106, 296, 106));
stText->setRelativePosition(rect<s32>(15, 106 + offset, 287, 324));
scrCardText->setRelativePosition(rect<s32>(267, 106 + offset, 287, 324));
} else {
stSetName->setRelativePosition(rect<s32>(15, 83, 296, 106));
stText->setRelativePosition(rect<s32>(15, 83 + offset, 287, 324));
scrCardText->setRelativePosition(rect<s32>(267, 83 + offset, 287, 324));
}
} else {
myswprintf(formatBuffer, L"[%ls]", dataManager.FormatType(cd.type));
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