Maintenance: [forced, user-approved] CLanguage step 7 (follow-up to #10185): the remaining edit-input methods move onto the real obje
Batch #10186 by ragnarok-clanker: forced by an admin (9 lower score(s), 41 changed function(s)); checked with 110 compiled unit(s), including every includer of Source/Client/Input/Language.h, Source/UI/Edit/EditTextState.h, Source/UI/Edit/EditViewport.h, Source/UI/Edit/UIEditCtrl.h.
This commit is contained in:
parent
45b5ebd97e
commit
bcaf506c7d
15 changed files with 171 additions and 205 deletions
|
|
@ -1087,7 +1087,6 @@ void UIEditCtrl_Currency::Slot19() {
|
|||
return;
|
||||
}
|
||||
|
||||
CLanguage& input = this->m_edit->input;
|
||||
int anchor;
|
||||
int cursor;
|
||||
g_serverLanguage->Selection(anchor, cursor);
|
||||
|
|
@ -1118,7 +1117,7 @@ void UIEditCtrl_Currency::Slot19() {
|
|||
|
||||
g_serverLanguage->ResetInput();
|
||||
g_serverLanguage->ResetInput();
|
||||
input.Insert(this->text.c_str());
|
||||
g_serverLanguage->Insert(this->text.c_str());
|
||||
|
||||
const int length = static_cast<int>(this->text.size());
|
||||
anchor += length / 4 - (length - anchor) / 4 - separators;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue