Minimal mod card scale

it's a minimal graphics mod so it's easier to debug. It's a smaller card
scale of big render so we have more space to view in game.
This commit is contained in:
Anthony Calosa
2016-08-14 14:59:49 +08:00
parent b7307adc10
commit bccb740c45
4 changed files with 50 additions and 22 deletions

View File

@@ -263,11 +263,13 @@ void CardDisplay::Render()
{
mObjects[mCurr]->Render();
CardGui * cardg = ((CardGui *) mObjects[mCurr]);
Pos pos = Pos(CardGui::BigWidth / 2, CardGui::BigHeight / 2 - 10, 1.0, 0.0, 220);
//Pos pos = Pos(CardGui::BigWidth / 2, CardGui::BigHeight / 2 - 10, 1.0, 0.0, 220);
Pos pos = Pos((CardGui::BigWidth / 2), CardGui::BigHeight / 2 - 10, 0.80f, 0.0, 220);
int drawMode = DrawMode::kNormal;
if (observer)
{
pos.actY = 145;
//pos.actY = 145;
pos.actY = 142;//reduce y a little
if (x < (CardGui::BigWidth / 2)) pos.actX = SCREEN_WIDTH - 10 - CardGui::BigWidth / 2;
drawMode = observer->getCardSelector()->GetDrawMode();
}