Changeset 273 for trunk/Forms
- Timestamp:
- Jan 30, 2019, 8:08:44 AM (6 years ago)
- Location:
- trunk/Forms
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormClient.pas
r269 r273 347 347 FClient.OnNextPlayer := DoNextPlayer; 348 348 FClient.View.DestRect := TRect.CreateBounds(TPoint.Create(0, 0), TPoint.Create(PaintBox1.Width, PaintBox1.Height)); 349 FClient.ShowCellGrid := Core.ShowCellGrid; 349 FClient.CellGridVisible := Core.CellGridVisible; 350 FClient.UnitShapeVisible := Core.UnitShapeVisible; 350 351 end; 351 352 Redraw; -
trunk/Forms/UFormMain.lfm
r268 r273 149 149 Action = AMapGridVisible 150 150 end 151 object MenuItem34: TMenuItem 152 Action = AUnitShapeVisible 153 end 154 object MenuItem35: TMenuItem 155 Caption = '-' 156 end 151 157 object MenuItem21: TMenuItem 152 158 Action = AToolBarVisible … … 225 231 OnExecute = AMapGridVisibleExecute 226 232 end 233 object AUnitShapeVisible: TAction 234 Caption = 'Unit shape visible' 235 OnExecute = AUnitShapeVisibleExecute 236 end 227 237 end 228 238 object PopupMenuToolbar: TPopupMenu -
trunk/Forms/UFormMain.pas
r268 r273 18 18 19 19 TFormMain = class(TForm) 20 AUnitShapeVisible: TAction; 20 21 AMapGridVisible: TAction; 21 22 AStatusBarVisible: TAction; … … 49 50 MenuItem32: TMenuItem; 50 51 MenuItem33: TMenuItem; 52 MenuItem34: TMenuItem; 53 MenuItem35: TMenuItem; 51 54 MenuItemDebug: TMenuItem; 52 55 MenuItem31: TMenuItem; … … 76 79 procedure AToolBarBigIconsExecute(Sender: TObject); 77 80 procedure AToolBarVisibleExecute(Sender: TObject); 81 procedure AUnitShapeVisibleExecute(Sender: TObject); 78 82 procedure FormActivate(Sender: TObject); 79 83 procedure FormKeyUp(Sender: TObject; var Key: Word; Shift: TShiftState); … … 201 205 end; 202 206 207 procedure TFormMain.AUnitShapeVisibleExecute(Sender: TObject); 208 begin 209 AUnitShapeVisible.Checked := not AUnitShapeVisible.Checked; 210 UpdateClientForms; 211 end; 212 203 213 procedure TFormMain.FormActivate(Sender: TObject); 204 214 begin … … 220 230 Core.PersistentForm.Save(Self); 221 231 SaveConfig(Core.XMLConfig1, 'FormMain'); 222 Core.ShowCellGrid := AMapGridVisible.Checked; 232 Core.CellGridVisible := AMapGridVisible.Checked; 233 Core.UnitShapeVisible := AUnitShapeVisible.Checked; 223 234 Core.Done; 224 235 end; … … 244 255 FormClient.AStatusBarVisible.Checked := AStatusBarVisible.Checked; 245 256 FormClient.AStatusBarVisible.Update; 246 Core.ShowCellGrid := AMapGridVisible.Checked; 247 if Assigned(FormClient.Client) then 248 FormClient.Client.ShowCellGrid := Core.ShowCellGrid; 257 Core.CellGridVisible := AMapGridVisible.Checked; 258 Core.UnitShapeVisible := AUnitShapeVisible.Checked; 259 if Assigned(FormClient.Client) then begin 260 FormClient.Client.CellGridVisible := Core.CellGridVisible; 261 FormClient.Client.UnitShapeVisible := Core.UnitShapeVisible; 262 end; 249 263 FormClient.Redraw; 250 264 for I := 0 to Core.FormClients.Count - 1 do begin … … 255 269 Core.FormClients[I].AStatusBarVisible.Checked := AStatusBarVisible.Checked; 256 270 Core.FormClients[I].AStatusBarVisible.Update; 257 if Assigned(Core.FormClients[I].Client) then 258 Core.FormClients[I].Client.ShowCellGrid := Core.ShowCellGrid; 271 if Assigned(Core.FormClients[I].Client) then begin 272 Core.FormClients[I].Client.CellGridVisible := Core.CellGridVisible; 273 Core.FormClients[I].Client.UnitShapeVisible := Core.UnitShapeVisible; 274 end; 259 275 Core.FormClients[I].Redraw; 260 276 end; … … 265 281 if not FormShown then begin 266 282 Core.LoadConfig; 267 AMapGridVisible.Checked := Core.ShowCellGrid; 283 AMapGridVisible.Checked := Core.CellGridVisible; 284 AUnitShapeVisible.Checked := Core.UnitShapeVisible; 268 285 Core.ScaleDPI; 269 286 Core.PersistentForm.Load(Self, True); -
trunk/Forms/UFormNew.lfm
r270 r273 21 21 Top = 4 22 22 Width = 806 23 ActivePage = TabSheet Map23 ActivePage = TabSheetRules 24 24 Align = alClient 25 25 BorderSpacing.Around = 4 26 TabIndex = 226 TabIndex = 3 27 27 TabOrder = 0 28 28 OnChange = PageControl1Change … … 326 326 object ComboBoxGridType: TComboBox 327 327 Left = 146 328 Height = 38328 Height = 42 329 329 Top = 104 330 330 Width = 208 … … 343 343 object ComboBoxMapShape: TComboBox 344 344 Left = 146 345 Height = 38345 Height = 42 346 346 Top = 144 347 347 Width = 208 … … 546 546 object Panel4: TPanel 547 547 Left = 0 548 Height = 65 5548 Height = 652 549 549 Top = 0 550 Width = 7 39550 Width = 796 551 551 Align = alClient 552 552 BevelOuter = bvNone 553 ClientHeight = 65 5554 ClientWidth = 7 39553 ClientHeight = 652 554 ClientWidth = 796 555 555 TabOrder = 0 556 556 object RadioGroupGrowCells: TRadioGroup … … 587 587 object ComboBoxWinObjective: TComboBox 588 588 Left = 224 589 Height = 38589 Height = 42 590 590 Top = 244 591 591 Width = 328 … … 635 635 Height = 78 636 636 Top = 290 637 Width = 7 16637 Width = 773 638 638 ActivePage = TabSheetCaptureEntireMap 639 639 Anchors = [akTop, akLeft, akRight] … … 647 647 object TabSheetCaptureCells: TTabSheet 648 648 ClientHeight = 74 649 ClientWidth = 7 12649 ClientWidth = 763 650 650 object Label14: TLabel 651 651 Left = 8 … … 669 669 object TabSheetStayAliveTurns: TTabSheet 670 670 ClientHeight = 74 671 ClientWidth = 7 12671 ClientWidth = 763 672 672 object Label13: TLabel 673 673 Left = 8 -
trunk/Forms/UFormNew.pas
r271 r273 417 417 Client.View.ZoomAll; 418 418 //Client.ControlPlayer := GamePreview.Players.First; 419 Client. ShowCellGrid:= True;419 Client.CellGridVisible := True; 420 420 Bitmap.Canvas.Brush.Color := MapBackgroundColor; //clBackground; //PaintBox1.GetColorResolvingParent; 421 421 Bitmap.Canvas.FillRect(0, 0, Bitmap.Width, Bitmap.Height);
Note:
See TracChangeset
for help on using the changeset viewer.