Graal Forums  

Go Back   Graal Forums > Development Forums > Future Improvements
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 02-09-2008, 07:01 AM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
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).
__________________
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 03:56 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.