mirror of
https://github.com/diasurgical/DevilutionX.git
synced 2026-10-12 02:13:06 +00:00
+1
-1
@@ -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';
|
||||
|
||||
@@ -12,10 +12,9 @@ enum class PanelDrawComponent {
|
||||
Mana,
|
||||
ControlButtons,
|
||||
Belt,
|
||||
ChatInput,
|
||||
|
||||
FIRST = Health,
|
||||
LAST = ChatInput
|
||||
LAST = Belt
|
||||
};
|
||||
|
||||
struct DrawnCursor {
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user