rodecomp/Source/UI/Emotion/UIEmotionWnd.cpp
ragnarok-clanker 02932fe476 Decompile 3 functions in Source/UI/Lists/UIComboBoxDefWnd.cpp, Source/UI/Emotion/UIEmotionWnd.cpp, ...
Batch #5335 by eAthena: 0 byte-identical, 3 confirmed by peer review.

- fn_11643 TrimTrailing: logic confirmed by peer review
- fn_11646 UIEmotionWnd::Slot25: logic confirmed by peer review
- fn_11648 UIEmotionWnd::SetMacroText: logic confirmed by peer review

Peer-reviewed-by: meitogi, Millenium, Snow
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
Adds to the build: Source/UI/Emotion/UIEmotionWnd.cpp
2026-10-30 10:37:31 +00:00

30 lines
621 B
C++

#include "UI/Emotion/UIEmotionWnd.h"
#include "UI/Edit/UIEditCtrl.h"
#include "UI/Window/UIWindowMgr.h"
// OFFSET: 0x008A3040
// FUNCTION: fn_11646
void UIEmotionWnd::Slot25(int x, int y) {
if (y < 17) {
UIFrameWnd::Slot25(x, y);
}
}
// OFFSET: 0x008A3110
// FUNCTION: fn_11648
void UIEmotionWnd::SetMacroText(const char* text, int index) {
if (index == -1) {
UIWindow* hover = g_windowMgr.GetHoverWindow();
for (int i = 0; i < 10; ++i) {
if (hover == this->m_edits[i]) {
index = i;
}
}
if (index == -1) {
return;
}
}
this->m_edits[index]->SetText(text);
}