1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-03-19 21:10:12 +02:00
This commit is contained in:
Laserlicht 2023-09-26 15:56:39 +02:00 committed by GitHub
parent 93e2826e3e
commit ac5f552219
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -458,6 +458,7 @@ CGStatusBar::CGStatusBar(int x, int y)
: CLabel(x, y, FONT_SMALL, ETextAlignment::CENTER)
, enteringText(false)
{
// without background
addUsedEvents(LCLICK);
}
@ -469,8 +470,6 @@ CGStatusBar::CGStatusBar(int x, int y, const ImagePath & name, int maxw)
OBJECT_CONSTRUCTION_CAPTURING(255 - DISPOSE);
if(name.empty()) // without background
return;
auto backgroundImage = std::make_shared<CPicture>(name);
background = backgroundImage;
pos = background->pos;