mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-29 23:07:48 +02:00
Gui cleanup4 (#446)
* use smart pointers for almost all widget fields * use SDL2 texture for cursor * a lot af small tweaks and formatting * removed CompImage class, it is actually useless as long as regular SDLImage support margins * CGuiHandler: use smart pointers for [push|pop]Int
This commit is contained in:
committed by
ArseniyShestakov
parent
7c8b74a806
commit
75f8c8b29a
@@ -457,7 +457,7 @@ CCreaturePic::CCreaturePic(int x, int y, const CCreature * cre, bool Big, bool A
|
||||
bg = std::make_shared<CPicture>(CGI->townh->factions[faction]->creatureBg130);
|
||||
else
|
||||
bg = std::make_shared<CPicture>(CGI->townh->factions[faction]->creatureBg120);
|
||||
anim = std::make_shared<CCreatureAnim>(0, 0, cre->animDefName, Rect());
|
||||
anim = std::make_shared<CCreatureAnim>(0, 0, cre->animDefName);
|
||||
anim->clipRect(cre->isDoubleWide()?170:150, 155, bg->pos.w, bg->pos.h);
|
||||
anim->startPreview(cre->hasBonusOfType(Bonus::SIEGE_WEAPON));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user