Changeset 202 for trunk/Forms
- Timestamp:
- May 17, 2018, 5:41:47 PM (7 years ago)
- Location:
- trunk/Forms
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormClient.lfm
r180 r202 13 13 OnKeyUp = FormKeyUp 14 14 OnShow = FormShow 15 LCLVersion = '1.8. 0.6'15 LCLVersion = '1.8.2.0' 16 16 WindowState = wsMaximized 17 17 object StatusBar1: TStatusBar … … 48 48 Left = 1 49 49 Top = 2 50 Action = Core.AGameEndTurn50 Action = AGameEndTurn 51 51 end 52 52 object ToolButton6: TToolButton … … 128 128 OnExecute = AStatusBarVisibleExecute 129 129 end 130 object AGameEndTurn: TAction 131 Caption = 'End turn' 132 ImageIndex = 0 133 OnExecute = AGameEndTurnExecute 134 end 130 135 end 131 136 object PopupMenuToolbar: TPopupMenu -
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.