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
This code is not exactly production ready actually so it may require more experiments
I played around a bit and got something more or less
/* handle text input */int len = buf.Length;
int n = _min(bufsz - len - 1, this.input_text.Length);
if(n > 0)
{
String before_cur = buf.Substring(0, this.input_cursor);
String after_cur = buf.Substring(this.input_cursor, buf.Length - this.input_cursor);
before_cur = before_cur.Append(this.input_text.Truncate(n));
buf = before_cur;
buf = buf.Append(after_cur);
res.state = res.state | eImGi_Res_Change;
}
Still need to think more before doing this. I think Snarky has this working in AGS Script somewhere that I could take a look and see how he accomplished it.
This was done in mierenhoop/microui@fd120b6
May be interesting to replicate here and see if it works!
The text was updated successfully, but these errors were encountered: