chore(ui): improve name of CSimpleEditBox::RunOnTextChangedScript param (#136)

This commit is contained in:
Tristan 'Natrist' Cormier 2025-11-30 13:16:23 -05:00 committed by GitHub
parent bbb58c978f
commit bb259850fa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -1049,10 +1049,10 @@ void CSimpleEditBox::RunOnTabPressedScript() {
}
}
void CSimpleEditBox::RunOnTextChangedScript(int32_t changed) {
void CSimpleEditBox::RunOnTextChangedScript(int32_t userInput) {
if (this->m_onTextChanged.luaRef) {
auto L = FrameScript_GetContext();
lua_pushboolean(L, changed);
lua_pushboolean(L, userInput);
this->RunScript(this->m_onTextChanged, 1, nullptr);
}

View File

@ -119,7 +119,7 @@ class CSimpleEditBox : public CSimpleFrame, CSimpleFontedFrame {
void RunOnEnterPressedScript();
void RunOnEscapePressedScript();
void RunOnTabPressedScript();
void RunOnTextChangedScript(int32_t changed);
void RunOnTextChangedScript(int32_t userInput);
void RunOnTextSetScript(const char* a2);
void SetCursorPosition(int32_t position);
void SetHistoryLines(int32_t a2);