mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Replaced CIntObject::type bitfield with bool's. Added input blocking.
This commit is contained in:
@@ -115,7 +115,7 @@ InfoCard::InfoCard()
|
||||
: showChat(true)
|
||||
{
|
||||
OBJ_CONSTRUCTION_CAPTURING_ALL_NO_DISPOSE;
|
||||
CIntObject::type |= REDRAW_PARENT;
|
||||
setRedrawParent(true);
|
||||
pos.x += 393;
|
||||
pos.y += 6;
|
||||
|
||||
@@ -311,7 +311,7 @@ CChatBox::CChatBox(const Rect & rect)
|
||||
OBJ_CONSTRUCTION;
|
||||
pos += rect.topLeft();
|
||||
captureAllKeys = true;
|
||||
type |= REDRAW_PARENT;
|
||||
setRedrawParent(true);
|
||||
|
||||
const int height = static_cast<int>(graphics->fonts[FONT_SMALL]->getLineHeight());
|
||||
inputBox = std::make_shared<CTextInput>(Rect(0, rect.h - height, rect.w, height), EFonts::FONT_SMALL, 0);
|
||||
|
||||
Reference in New Issue
Block a user