Changeset 185 for trunk/Forms
- Timestamp:
- Feb 12, 2018, 3:08:27 PM (7 years ago)
- Location:
- trunk/Forms
- Files:
-
- 2 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 := ''; -
trunk/Forms/UFormClient.pas
r184 r185 79 79 CountRepeat: Integer; Update: Boolean; var Confirm: Boolean); 80 80 public 81 property Client: TClient read FClient write SetClient;82 81 procedure LoadConfig(Config: TXmlConfig; Path: string); 83 82 procedure SaveConfig(Config: TXmlConfig; Path: string); 84 83 procedure ReloadView; 85 84 procedure Redraw; 85 property Client: TClient read FClient write SetClient; 86 86 end; 87 87
Note:
See TracChangeset
for help on using the changeset viewer.