|
Functions to mimic chat input and to set cursor position in GuiMLTextEditCtrl
|
I've noticed in my creation of a custom chat system that things like showscriptstats don't work when setting player.chat and also the function of the text staying on what you said until you make a move doesn't work either.
I would like a function like chatinput(string) that would work the same way as if you were to type the text into the chat bar and hit enter. Basically if you did chatinput("showscriptstats") then that would display properly and if you did any other text it would stay that way until you move from your position. With this it would make the custom chat system easier to work with.
Also I'm using a GuiMLTextEditCtrl for the input in the chat system and would like a function to set the position of the cursor with in the text or simply a function to force it to the end of the line. This is because I implemented a chat input history by script and when switching the text with a previously entered text the cursor is set back at the beginning of the text. I did notice that pressing END moved the cursor to the end simply enough but it would be much simpler to have the function(s). |
|