Changeset 185 for trunk/Forms


Ignore:
Timestamp:
Feb 12, 2018, 3:08:27 PM (7 years ago)
Author:
chronos
Message:
Location:
trunk/Forms
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormChat.pas

    r184 r185  
    77uses
    88  Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls,
    9   UGame, UGameClient;
     9  UGame, UGameClient, SpecializedList;
    1010
    1111type
     
    4141
    4242procedure TFormChat.ButtonMessageSendClick(Sender: TObject);
    43 var
    44   TextMessage: TCommandTextMessage;
    4543begin
    4644  if Assigned(Client) then
    4745  with Client do begin
    48     TextMessage.Text := EditMessage.Text;
    49     Client.Send(cmdTextMessage, @TextMessage, nil);
     46    Protocol.SendMessage(EditMessage.Text);
    5047    MemoChat.Lines.Add(Client.Name + ': ' + EditMessage.Text);
    5148    EditMessage.Text := '';
  • trunk/Forms/UFormClient.pas

    r184 r185  
    7979      CountRepeat: Integer; Update: Boolean; var Confirm: Boolean);
    8080  public
    81     property Client: TClient read FClient write SetClient;
    8281    procedure LoadConfig(Config: TXmlConfig; Path: string);
    8382    procedure SaveConfig(Config: TXmlConfig; Path: string);
    8483    procedure ReloadView;
    8584    procedure Redraw;
     85    property Client: TClient read FClient write SetClient;
    8686  end;
    8787
Note: See TracChangeset for help on using the changeset viewer.