mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
correctly register them
This commit is contained in:
@@ -160,6 +160,7 @@ std::shared_ptr<CIntObject> AdventureMapWidget::buildMapButton(const JsonNode &
|
||||
auto assetGenerator = ENGINE->renderHandler().getAssetGenerator();
|
||||
auto layout = assetGenerator->createAdventureMapButton(ImagePath::fromJson(input["generateFromBaseImage"]), small);
|
||||
assetGenerator->addAnimationFile(AnimationPath::builtin("SPRITES/" + input["image"].String()), layout);
|
||||
ENGINE->renderHandler().updateGeneratedAssets();
|
||||
}
|
||||
|
||||
auto button = std::make_shared<CButton>(position.topLeft(), image, help, 0, EShortcut::NONE, playerColored);
|
||||
|
||||
Reference in New Issue
Block a user