Decompile fn_14462 (CUIEditCtrlEx::SetText)
Batch #9687 by ragnarok-clanker: 0 byte-identical, 1 confirmed by peer review. - fn_14462 CUIEditCtrlEx::SetText: logic confirmed by peer review Peer-reviewed-by: secret, Montyla Reviewed-by: ragnarok-clanker
This commit is contained in:
parent
fc090aa010
commit
e672d42e4d
2 changed files with 20 additions and 0 deletions
|
|
@ -502,6 +502,25 @@ void CUIEditBoxEx::SetText(const std::string& text) {
|
|||
this->edit->SetText(text.c_str());
|
||||
}
|
||||
|
||||
// OFFSET: 0x009E6500
|
||||
// FUNCTION: fn_14462
|
||||
void CUIEditCtrlEx::SetText(const char* value) {
|
||||
this->text.assign(value);
|
||||
|
||||
if (this == g_windowMgr.GetHoverWindow()) {
|
||||
CLanguage& input = this->m_edit->input;
|
||||
input.ResetInput();
|
||||
input.Insert(this->text.c_str());
|
||||
input.Select(0, static_cast<int>(input.text.size()));
|
||||
}
|
||||
|
||||
if (this->text.find("<ITEML>") != std::string::npos || this->text.find("</ITEML>") != std::string::npos) {
|
||||
this->sub_869810(this->text.c_str());
|
||||
}
|
||||
|
||||
this->selectedAll = 1;
|
||||
}
|
||||
|
||||
#include <chrono>
|
||||
|
||||
// OFFSET: 0x009E4410
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@ public:
|
|||
void Paint() override;
|
||||
void Invalidate() override;
|
||||
void SelectAll() override;
|
||||
void SetText(const char* value) override;
|
||||
void UpdateScrollBar() override;
|
||||
int SendMsg(UIWindow* sender, int message, std::intptr_t a, std::intptr_t b, std::intptr_t c, std::intptr_t d) override;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue