Closed NiiRoZz closed 4 years ago
Hello,
Currently writing UI with nuklear, and I want to know if it's possible to know if the current edit_string is active, because I want to know if he use a key, this will write into the input, just to block game input when writing into my chat.
Found how to do it, place this code if anyone wanted to know :
nk_flags event = nk_edit_string(ctx, NK_EDIT_FIELD, buffer, &len, 256, 0); if (event & NK_EDIT_ACTIVE) { ... }
Hello,
Currently writing UI with nuklear, and I want to know if it's possible to know if the current edit_string is active, because I want to know if he use a key, this will write into the input, just to block game input when writing into my chat.