Commit 12a11304 authored by edo9300's avatar edo9300

More spacing

parent 33996615
......@@ -2068,7 +2068,7 @@ bool ClientField::OnCommonEvent(const irr::SEvent& event) {
case SCROLL_CARDTEXT: {
u32 pos = mainGame->scrCardText->getPos();
const auto& tsize = mainGame->scrCardText->getRelativePosition();
mainGame->SetStaticText(mainGame->stText, mainGame->stText->getRelativePosition().getWidth() - tsize.getWidth(), mainGame->textFont, mainGame->showingtext, pos);
mainGame->SetStaticText(mainGame->stText, mainGame->stText->getRelativePosition().getWidth() - tsize.getWidth() - 10, mainGame->textFont, mainGame->showingtext, pos);
return true;
break;
}
......
......@@ -807,7 +807,7 @@ void Game::InitStaticText(irr::gui::IGUIStaticText* pControl, u32 cWidth, u32 cH
return;
}
const auto& tsize = scrCardText->getRelativePosition();
SetStaticText(pControl, cWidth - tsize.getWidth(), font, text);
SetStaticText(pControl, cWidth - tsize.getWidth() - 10, font, text);
u32 fontheight = font->getDimension(L"A").Height + font->getKerningHeight();
u32 step = (font->getDimension(dataManager.strBuffer).Height - cHeight) / fontheight + 1;
scrCardText->setVisible(true);
......
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