Changeset 202 for trunk/Forms/UFormClient.pas
- Timestamp:
- May 17, 2018, 5:41:47 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormClient.pas
r185 r202 7 7 uses 8 8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, ExtCtrls, 9 UGame, LCLType, Menus, ActnList, ComCtrls, dateutils, XMLConf, DOM, 10 UGeometry, UGameClient ;9 UGame, LCLType, Menus, ActnList, ComCtrls, dateutils, XMLConf, DOM, UCommPin, 10 UGeometry, UGameClient, UGameProtocol; 11 11 12 12 const … … 19 19 20 20 TFormClient = class(TForm) 21 AGameEndTurn: TAction; 21 22 AStatusBarVisible: TAction; 22 23 AToolBarVisible: TAction; … … 37 38 ToolButton8: TToolButton; 38 39 ToolButton9: TToolButton; 40 procedure AGameEndTurnExecute(Sender: TObject); 39 41 procedure AStatusBarVisibleExecute(Sender: TObject); 40 42 procedure AToolBarBigIconsExecute(Sender: TObject); … … 196 198 Caption := NewCaption; 197 199 Drawing := False; 200 AGameEndTurn.Enabled := Core.Game.Running; 198 201 end; 199 202 end; … … 299 302 AStatusBarVisible.Checked := not AStatusBarVisible.Checked; 300 303 ReloadView; 304 end; 305 306 procedure TFormClient.AGameEndTurnExecute(Sender: TObject); 307 var 308 P: TGameProtocolClient; 309 P2: TCommPin; 310 begin 311 P := Client.Protocol; 312 P2 := P.Pin; 313 Client.Protocol.TurnEnd; 301 314 end; 302 315
Note:
See TracChangeset
for help on using the changeset viewer.