Changeset 185 for trunk/Forms/UFormChat.pas
- Timestamp:
- Feb 12, 2018, 3:08:27 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormChat.pas
r184 r185 7 7 uses 8 8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls, 9 UGame, UGameClient ;9 UGame, UGameClient, SpecializedList; 10 10 11 11 type … … 41 41 42 42 procedure TFormChat.ButtonMessageSendClick(Sender: TObject); 43 var44 TextMessage: TCommandTextMessage;45 43 begin 46 44 if Assigned(Client) then 47 45 with Client do begin 48 TextMessage.Text := EditMessage.Text; 49 Client.Send(cmdTextMessage, @TextMessage, nil); 46 Protocol.SendMessage(EditMessage.Text); 50 47 MemoChat.Lines.Add(Client.Name + ': ' + EditMessage.Text); 51 48 EditMessage.Text := '';
Note:
See TracChangeset
for help on using the changeset viewer.