1
0
mirror of https://github.com/vcmi/vcmi.git synced 2026-05-22 09:55:17 +02:00

[1.7.4] Stack artifact indication on creature icon (#7200)

* Refactor artifact handling methods in CPlayerInterface

* Add artifactImage shared pointer to CGarrisonInt

* Add artifact image handling in CGarrisonInt

* Update CGarrisonInt.cpp

* Make Stack Artifacts Indication toogable via mod

* Update gameConfig.json

* Update CGarrisonInt.cpp

* Update AssetGenerator.h

* Add small circle background generating for Stack Artifact Indicator

* Update CGarrisonInt.h

* Update CGarrisonInt.h

* Add generated background for Stack Artifact Indicator

* Update CGarrisonInt.cpp

* Fix Sonar warning

* Adjust generated circle color

* ReRun CI
This commit is contained in:
George King
2026-04-19 11:12:18 +02:00
committed by GitHub
parent 1d0a6198ff
commit 0baf7d2a4f
9 changed files with 71 additions and 0 deletions
+3
View File
@@ -1742,12 +1742,14 @@ void CPlayerInterface::artifactPut(const ArtifactLocation &al)
{
EVENT_HANDLER_CALLED_BY_CLIENT;
adventureInt->onHeroChanged(cb->getHero(al.artHolder));
garrisonsChanged(al.artHolder, ObjectInstanceID());
}
void CPlayerInterface::artifactRemoved(const ArtifactLocation &al)
{
EVENT_HANDLER_CALLED_BY_CLIENT;
adventureInt->onHeroChanged(cb->getHero(al.artHolder));
garrisonsChanged(al.artHolder, ObjectInstanceID());
artifactController->artifactRemoved();
}
@@ -1755,6 +1757,7 @@ void CPlayerInterface::artifactMoved(const ArtifactLocation &src, const Artifact
{
EVENT_HANDLER_CALLED_BY_CLIENT;
adventureInt->onHeroChanged(cb->getHero(dst.artHolder));
garrisonsChanged(src.artHolder, dst.artHolder);
artifactController->artifactMoved();
}