You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be useful to be able to receive information about when the text has been changed (eg to trigger a Lua script load to check for errors in realtime).
Naively, this could be done by the user comparing GetText() with the previous value, but it's a bit of a sledgehammer approach.
Better would be implemented with a "text changed" member bool that's set inside any text manipulation function that adjusts the undo index. The flag would be returned and cleared at the end of Render().
The text was updated successfully, but these errors were encountered:
Done. Added IsTextChanged() function. It will report the same value until the next Render() call, so you can call it from anywhere multiple times if you want to.
It would be useful to be able to receive information about when the text has been changed (eg to trigger a Lua script load to check for errors in realtime).
Naively, this could be done by the user comparing GetText() with the previous value, but it's a bit of a sledgehammer approach.
Better would be implemented with a "text changed" member bool that's set inside any text manipulation function that adjusts the undo index. The flag would be returned and cleared at the end of Render().
The text was updated successfully, but these errors were encountered: