mirror of
https://github.com/vcmi/vcmi.git
synced 2025-03-21 21:17:49 +02:00
fix
This commit is contained in:
parent
93e2826e3e
commit
ac5f552219
@ -458,6 +458,7 @@ CGStatusBar::CGStatusBar(int x, int y)
|
|||||||
: CLabel(x, y, FONT_SMALL, ETextAlignment::CENTER)
|
: CLabel(x, y, FONT_SMALL, ETextAlignment::CENTER)
|
||||||
, enteringText(false)
|
, enteringText(false)
|
||||||
{
|
{
|
||||||
|
// without background
|
||||||
addUsedEvents(LCLICK);
|
addUsedEvents(LCLICK);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -469,8 +470,6 @@ CGStatusBar::CGStatusBar(int x, int y, const ImagePath & name, int maxw)
|
|||||||
|
|
||||||
OBJECT_CONSTRUCTION_CAPTURING(255 - DISPOSE);
|
OBJECT_CONSTRUCTION_CAPTURING(255 - DISPOSE);
|
||||||
|
|
||||||
if(name.empty()) // without background
|
|
||||||
return;
|
|
||||||
auto backgroundImage = std::make_shared<CPicture>(name);
|
auto backgroundImage = std::make_shared<CPicture>(name);
|
||||||
background = backgroundImage;
|
background = backgroundImage;
|
||||||
pos = background->pos;
|
pos = background->pos;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user