Диалог Ивана в первый день, и некоторые исправления чата.

This commit is contained in:
Евгений Титаренко 2024-08-25 09:34:11 +03:00
parent 8fb7c44343
commit ac3e2ffd62
5 changed files with 6 additions and 18 deletions

View file

@ -33,7 +33,6 @@ public partial class ChatLogContainer : VBoxContainer
}
private const float MaxChatLogContainerSize = 200;
private Vector2 _initialPosition;
// Called when the node enters the scene tree for the first time.

View file

@ -214,6 +214,7 @@ public partial class Player : CharacterBody2D
msg.Text = npc.Message;
msg.Author = npc.NPCName;
_chatLogContainer.AddChild(msg);
_chatLogContainer.CurrentState = ChatLogContainer.ChatState.Default;
if (npc.IsDialogEnded) CurrentState = State.ReadChat;
}