Browse Source

Fix chat

Accidentally broken by #5453
pull/5464/head
Gleb Mazovetskiy 3 years ago
parent
commit
1da4be3839
  1. 2
      Source/control.cpp
  2. 3
      Source/engine/backbuffer_state.hpp
  3. 2
      Source/engine/render/scrollrt.cpp

2
Source/control.cpp

@ -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';

3
Source/engine/backbuffer_state.hpp

@ -12,10 +12,9 @@ enum class PanelDrawComponent {
Mana,
ControlButtons,
Belt,
ChatInput,
FIRST = Health,
LAST = ChatInput
LAST = Belt
};
struct DrawnCursor {

2
Source/engine/render/scrollrt.cpp

@ -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;

Loading…
Cancel
Save