Changeset 414 for trunk/Forms/FormMain.pas
- Timestamp:
- Jan 10, 2025, 4:24:19 PM (7 hours ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/FormMain.pas
r364 r414 67 67 PopupMenuToolbar: TPopupMenu; 68 68 Separator1: TMenuItem; 69 Timer1: TTimer;70 69 ToolBar1: TToolBar; 71 70 ToolButton1: TToolButton; … … 94 93 procedure FormDestroy(Sender: TObject); 95 94 procedure EraseBackground(DC: HDC); override; 96 procedure Timer1Timer(Sender: TObject);97 95 private 98 96 FormActivated: Boolean; … … 106 104 FormUnitMoves: TFormUnitMoves; 107 105 FormCharts: TFormCharts; 106 procedure UpdateInterface; 108 107 procedure LoadConfig(Config: TXmlConfig; Path: string); 109 108 procedure SaveConfig(Config: TXmlConfig; Path: string); … … 128 127 begin 129 128 // Do nothing, all background space covered by controls 130 end;131 132 procedure TFormMain.Timer1Timer(Sender: TObject);133 var134 NewCaption: string;135 begin136 NewCaption := 'xTactics';137 if Assigned(Core.Core.Game.CurrentPlayer) then138 NewCaption := Core.Core.Game.CurrentPlayer.Name + ' - ' + STurn + ' ' +139 IntToStr(Core.Core.Game.TurnCounter) + ' - ' + NewCaption;140 Caption := NewCaption;141 129 end; 142 130 … … 311 299 end; 312 300 301 procedure TFormMain.UpdateInterface; 302 var 303 NewCaption: string; 304 begin 305 NewCaption := 'xTactics'; 306 if Assigned(Core.Core.Game.CurrentPlayer) then 307 NewCaption := Core.Core.Game.CurrentPlayer.Name + ' - ' + STurn + ' ' + 308 IntToStr(Core.Core.Game.TurnCounter) + ' - ' + NewCaption; 309 Caption := NewCaption; 310 end; 311 313 312 procedure TFormMain.FormShow(Sender: TObject); 314 313 begin
Note:
See TracChangeset
for help on using the changeset viewer.