mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 00:02:45 +03:00
chore(ui): rename RunOnTextChangedScript parameter changed to userInput
This commit is contained in:
parent
c2e1bd19b8
commit
700bf202d2
@ -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);
|
||||
}
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user