Changeset 82 for trunk/Forms
- Timestamp:
- Nov 5, 2014, 9:51:30 AM (10 years ago)
- Location:
- trunk/Forms
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormMain.pas
r79 r82 128 128 begin 129 129 DrawStart := Now; 130 if Assigned(Core. Game.CurrentPlayer) then131 with Core. Game.CurrentPlayer do begin130 if Assigned(Core.Player) then 131 with Core.Player do begin 132 132 View.DestRect := Bounds(0, 0, PaintBox1.Width, PaintBox1.Height); 133 133 if csOpaque in PaintBox1.ControlStyle then begin … … 151 151 procedure TFormMain.PaintBox1Resize(Sender: TObject); 152 152 begin 153 if Assigned(Core. Game.CurrentPlayer) then154 with Core. Game.CurrentPlayer do153 if Assigned(Core.Player) then 154 with Core.Player do 155 155 View.DestRect := Bounds(0, 0, PaintBox1.Width, PaintBox1.Height); 156 156 Redraw; … … 240 240 MapRect: TRect; 241 241 begin 242 with Core .Game, CurrentPlayer, View do begin242 with Core, Game, Player, View do begin 243 243 MapRect := Map.GetPixelRect; 244 244 Factor := FloatPoint((DestRect.Right - DestRect.Left) / (MapRect.Right - MapRect.Left), … … 271 271 procedure TFormMain.AZoomInExecute(Sender: TObject); 272 272 begin 273 with Core. Game.CurrentPlayer do begin273 with Core.Player do begin 274 274 View.Zoom := View.Zoom * ZoomFactor; 275 275 end; … … 281 281 D: TPoint; 282 282 begin 283 with Core. Game.CurrentPlayer do begin283 with Core.Player do begin 284 284 //D := Point(Trunc(MousePos.X - View.Left / ViewZoom), 285 285 // Trunc(MousePos.Y - View.Top / ViewZoom)); -
trunk/Forms/UFormNew.lfm
r75 r82 45 45 Top = 5 46 46 Width = 745 47 ActivePage = TabSheet 147 ActivePage = TabSheet3 48 48 Align = alTop 49 49 Anchors = [akTop, akLeft, akRight, akBottom] 50 TabIndex = 050 TabIndex = 2 51 51 TabOrder = 3 52 52 object TabSheet1: TTabSheet … … 407 407 TabOrder = 2 408 408 end 409 object CheckBoxFogOfWar: TCheckBox 410 Left = 336 411 Height = 27 412 Top = 24 413 Width = 120 414 Caption = 'Fog of war' 415 TabOrder = 3 416 end 409 417 end 410 418 end -
trunk/Forms/UFormNew.lrt
r75 r82 25 25 TFORMNEW.LABEL6.CAPTION=Win objective: 26 26 TFORMNEW.RADIOGROUPGROWAMOUNT.CAPTION=Per turn grow amount 27 TFORMNEW.CHECKBOXFOGOFWAR.CAPTION=Fog of war 27 28 TFORMNEW.APLAYERMODIFY.CAPTION=Modify player 28 29 TFORMNEW.APLAYERADD.CAPTION=Add -
trunk/Forms/UFormNew.pas
r76 r82 24 24 ButtonPlayerModify: TButton; 25 25 ButtonPlayerRemove: TButton; 26 CheckBoxFogOfWar: TCheckBox; 26 27 CheckBoxCity: TCheckBox; 27 28 CheckBoxSymetricMap: TCheckBox; … … 351 352 ComboBoxMapShape.ItemIndex := Integer(Game.Map.Shape); 352 353 EditImageFile.Text := Game.MapImageFileName; 354 CheckBoxFogOfWar.Checked := Game.FogOfWar; 353 355 end; 354 356 … … 379 381 Game.Map.Shape := TMapShape(ComboBoxMapShape.ItemIndex); 380 382 Game.MapImageFileName := EditImageFile.Text; 383 Game.FogOfWar := CheckBoxFogOfWar.Checked; 381 384 end; 382 385
Note:
See TracChangeset
for help on using the changeset viewer.