mirror of
https://github.com/vcmi/vcmi.git
synced 2025-03-17 20:58:07 +02:00
gen sprites
This commit is contained in:
parent
4c7e3644bb
commit
bda4efa8b5
@ -310,6 +310,8 @@ void CMainMenu::playIntroVideos()
|
||||
cb(true);
|
||||
};
|
||||
|
||||
AssetGenerator::generateAll();
|
||||
|
||||
playVideo("3DOLOGO.SMK", false, 1.25, [playVideo, this](bool skipped){
|
||||
if(!skipped)
|
||||
playVideo("NWCLOGO.SMK", false, 2, [playVideo, this](bool skipped){
|
||||
|
@ -125,7 +125,7 @@ std::shared_ptr<IImage> MapTileStorage::find(size_t fileIndex, size_t rotationIn
|
||||
{
|
||||
const auto & animation = animations[fileIndex][rotationIndex];
|
||||
if (animation)
|
||||
return animation->getImage(imageIndex);
|
||||
return animation->getImage(imageIndex); // ask for group
|
||||
else
|
||||
return nullptr;
|
||||
}
|
||||
@ -156,8 +156,8 @@ void MapRendererTerrain::renderTile(IMapRendererContext & context, Canvas & targ
|
||||
return;
|
||||
}
|
||||
|
||||
for( auto const & element : mapTile.getTerrain()->paletteAnimation)
|
||||
image->shiftPalette(element.start, element.length, context.terrainImageIndex(element.length));
|
||||
// for( auto const & element : mapTile.getTerrain()->paletteAnimation)
|
||||
// image->shiftPalette(element.start, element.length, context.terrainImageIndex(element.length));
|
||||
|
||||
target.draw(image, Point(0, 0));
|
||||
}
|
||||
@ -193,8 +193,8 @@ void MapRendererRiver::renderTile(IMapRendererContext & context, Canvas & target
|
||||
|
||||
const auto & image = storage.find(terrainIndex, rotationIndex, imageIndex);
|
||||
|
||||
for( auto const & element : mapTile.getRiver()->paletteAnimation)
|
||||
image->shiftPalette(element.start, element.length, context.terrainImageIndex(element.length));
|
||||
//for( auto const & element : mapTile.getRiver()->paletteAnimation)
|
||||
// image->shiftPalette(element.start, element.length, context.terrainImageIndex(element.length));
|
||||
|
||||
target.draw(image, Point(0, 0));
|
||||
}
|
||||
|
@ -23,4 +23,5 @@ public:
|
||||
static void createCombatUnitNumberWindow();
|
||||
static void createCampaignBackground();
|
||||
static void createChroniclesCampaignImages();
|
||||
static void createPaletteShiftedSprites();
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user