mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
Use only when is enableUiEnhancements toogled
This commit is contained in:
@@ -316,13 +316,17 @@ CInfoBoxPopup::CInfoBoxPopup(Point position, const CGHeroInstance * hero)
|
|||||||
}
|
}
|
||||||
|
|
||||||
CInfoBoxPopup::CInfoBoxPopup(Point position, const CGGarrison * garr)
|
CInfoBoxPopup::CInfoBoxPopup(Point position, const CGGarrison * garr)
|
||||||
: AdventureMapPopup(RCLICK_POPUP | PLAYER_COLORED, ImagePath::builtin("GARRIPOP"), position)
|
: AdventureMapPopup(RCLICK_POPUP | PLAYER_COLORED, ImagePath::builtin(settings["general"]["enableUiEnhancements"].Bool() ? "GARRIPOP" : "TOWNQVBK"), position)
|
||||||
{
|
{
|
||||||
InfoAboutTown iah;
|
InfoAboutTown iah;
|
||||||
GAME->interface()->cb->getTownInfo(garr, iah);
|
GAME->interface()->cb->getTownInfo(garr, iah);
|
||||||
|
|
||||||
OBJECT_CONSTRUCTION;
|
OBJECT_CONSTRUCTION;
|
||||||
tooltip = std::make_shared<CGarrisonTooltip>(Point(9, 10), iah);
|
|
||||||
|
if(settings["general"]["enableUiEnhancements"].Bool())
|
||||||
|
tooltip = std::make_shared<CGarrisonTooltip>(Point(9, 10), iah);
|
||||||
|
else
|
||||||
|
tooltip = std::make_shared<CTownTooltip>(Point(9, 10), iah);
|
||||||
|
|
||||||
addUsedEvents(DRAG_POPUP);
|
addUsedEvents(DRAG_POPUP);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user