1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-13 01:20:34 +02:00

Creatures altar & Artifacts altar

This commit is contained in:
SoundSSGood
2023-11-05 02:01:23 +02:00
parent 9f9317a8a0
commit 75ebd954af
10 changed files with 777 additions and 563 deletions

View File

@ -31,6 +31,11 @@ CTradeBase::CTradeableItem::CTradeableItem(Point pos, EType Type, int ID, bool L
downSelection = false;
hlp = nullptr;
setType(Type);
if(image)
{
this->pos.w = image->pos.w;
this->pos.h = image->pos.h;
}
}
void CTradeBase::CTradeableItem::setType(EType newType)
@ -124,14 +129,14 @@ void CTradeBase::CTradeableItem::showAll(Canvas & to)
break;
case CREATURE_PLACEHOLDER:
case CREATURE:
posToSubCenter = Point(29, 76);
posToSubCenter = Point(29, 77);
break;
case PLAYER:
posToSubCenter = Point(31, 76);
break;
case ARTIFACT_PLACEHOLDER:
case ARTIFACT_INSTANCE:
posToSubCenter = Point(19, 55);
posToSubCenter = Point(19, 54);
if (downSelection)
posToSubCenter.y += 8;
break;