Accidentally broken by #5453
This commit is contained in:
Gleb Mazovetskiy
2022-11-02 11:19:00 +00:00
parent 8c3ced3cb6
commit 1da4be3839
3 changed files with 3 additions and 4 deletions
+1 -1
View File
@@ -1319,7 +1319,7 @@ void control_type_message()
if (!IsChatAvailable())
return;
RedrawComponent(PanelDrawComponent::ChatInput);
talkflag = true;
SDL_Rect rect = MakeSdlRect(GetMainPanel().position.x + 200, GetMainPanel().position.y + 22, 250, 39);
SDL_SetTextInputRect(&rect);
TalkMessage[0] = '\0';
+1 -2
View File
@@ -12,10 +12,9 @@ enum class PanelDrawComponent {
Mana,
ControlButtons,
Belt,
ChatInput,
FIRST = Health,
LAST = ChatInput
LAST = Belt
};
struct DrawnCursor {
+1 -1
View File
@@ -1529,7 +1529,7 @@ void DrawAndBlit()
bool drawMana = IsRedrawComponent(PanelDrawComponent::Mana);
bool drawControlButtons = IsRedrawComponent(PanelDrawComponent::ControlButtons);
bool drawBelt = IsRedrawComponent(PanelDrawComponent::Belt);
bool drawChatInput = IsRedrawComponent(PanelDrawComponent::ChatInput);
bool drawChatInput = talkflag;
bool drawInfoBox = false;
bool drawCtrlPan = false;