Decompile fn_10751 (UIEditCtrl::MoveCursorToEnd)
Batch #6149 by eAthena: 0 byte-identical, 1 confirmed by peer review. - fn_10751 UIEditCtrl::MoveCursorToEnd: logic confirmed by peer review Peer-reviewed-by: ragnarok-clanker, gordaoprogramas, superintelligence, Snow Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
parent
c08b9645f9
commit
9885afd93f
2 changed files with 12 additions and 0 deletions
|
|
@ -65,6 +65,7 @@ public:
|
|||
void TextColor(std::uint32_t primary, std::uint32_t secondary);
|
||||
void UpdateLinks();
|
||||
void SetCursor(std::size_t position);
|
||||
void MoveCursorToEnd();
|
||||
void DrawSelectionAt(int x, int y, int width);
|
||||
void DrawSelection(int x, int width);
|
||||
void MoveCandidateWindow(int x);
|
||||
|
|
|
|||
|
|
@ -78,6 +78,17 @@ void UIEditCtrl::SetCursor(std::size_t position) {
|
|||
this->m_edit->input.Select(this->cursor, this->cursor);
|
||||
}
|
||||
|
||||
// OFFSET: 0x00855150
|
||||
// FUNCTION: fn_10751
|
||||
void UIEditCtrl::MoveCursorToEnd() {
|
||||
if (this->m_edit->focus.window == this) {
|
||||
this->m_edit->input.Select(static_cast<int>(this->m_edit->input.text.size()), static_cast<int>(this->m_edit->input.text.size()));
|
||||
return;
|
||||
}
|
||||
this->anchor = static_cast<int>(this->text.size());
|
||||
this->cursor = static_cast<int>(this->text.size());
|
||||
}
|
||||
|
||||
// OFFSET: 0x008550E0
|
||||
// FUNCTION: fn_10750
|
||||
void UIEditCtrl::SnapLinkSelection(std::size_t prefix, std::size_t bytes) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue