feat(chat): distinguish between send and cancel in chat input

This commit is contained in:
2026-07-18 20:49:47 +08:00
parent 75f71a537f
commit c0c385b8d6
8 changed files with 49 additions and 30 deletions

View File

@@ -57,9 +57,9 @@ void WorldUIManager::render(Renderer& renderer) {
renderer.end_render_ui();
}
void WorldUIManager::set_chatting(bool chantting) {
Logger::info("WorldUIManager Chatting {}", chantting);
m_chat_box->set_typing(chantting);
void WorldUIManager::set_chatting(bool chantting, bool send) {
m_chat_box->set_typing(chantting, send);
}
void WorldUIManager::add_chat_message(ChatMessage& message) {