Example #1
0
 public void updateMessage(String message, GuiChat chat) {
   chat.message = message;
   updateCursor(chat.cursorPosition, chat);
 }
Example #2
0
 public void updateCursor(int position, GuiChat chat) {
   chat.cursorPosition = checkCursor(chat.message, position);
 }