Maintenance: [forced, user-approved] Family G14: remove the chat bundle family (ChatSuggestions, ChatInputLayout, ChatHeaderLayout, C

Batch #10220 by ragnarok-clanker: forced by an admin (5 lower score(s), 30 changed function(s)); checked with 24 compiled unit(s), including every includer of Source/UI/Chat/UINewChatWnd.h, Source/UI/Chat/UISubChatHisWnd.h, Source/UI/Chat/ChatSuggestions.h.
Deletes: Source/UI/Chat/ChatSuggestions.h
This commit is contained in:
ragnarok-clanker 2026-11-03 00:33:54 +00:00
commit be04fec77e
23 changed files with 227 additions and 321 deletions

View file

@ -2,7 +2,7 @@
#include "Client/Input/Mouse.h"
#include "Client/Replay.h"
#include "Contents/Messenger/MessengerMember.h"
#include "UI/Chat/ChatSuggestions.h"
#include "UI/Chat/UINewChatWnd.h"
#include "UI/Edit/UIEditCtrl.h"
#include "UI/Window/InputFocus.h"
#include "UI/Lists/UIDropDownBox.h"
@ -324,22 +324,22 @@ int UIWindowMgr::ProcessMouse() {
this->unknown_4F248.clear();
if (g_mouse.buttons[0] == 1 && this->window_01C8) {
ChatSuggestions* suggestions = reinterpret_cast<ChatSuggestions*>(this->window_01C8);
if (suggestions->Visible() == 1) {
UINewChatWnd* suggestions = static_cast<UINewChatWnd*>(this->window_01C8);
if (suggestions->SuggestionsVisible() == 1) {
int left;
int top;
int right;
int bottom;
WindowScreenBounds(suggestions->unknown_013C, left, top, right, bottom);
WindowScreenBounds(suggestions->m_suggestions, left, top, right, bottom);
const bool outside = left > x || right < x || top > y || bottom < y;
WindowScreenBounds(this->unknown_0384, left, top, right, bottom);
const bool outsideCompanion = left > x || right < x || top > y || bottom < y;
if (outside && outsideCompanion) {
suggestions->Show(0);
if (suggestions->unknown_00BC) {
static_cast<UIEditCtrl*>(suggestions->unknown_00BC)->SetText("");
suggestions->ShowSuggestions(0);
if (suggestions->m_chatEdit) {
static_cast<UIEditCtrl*>(suggestions->m_chatEdit)->SetText("");
}
reinterpret_cast<ChatInputFocus*>(suggestions)->Toggle();
suggestions->ToggleInput();
}
}
}