Changeset 479 for trunk/Start.pas
- Timestamp:
- Dec 6, 2023, 5:28:20 PM (11 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Start.pas
r474 r479 160 160 const 161 161 // predefined world size 162 // attention: lx *ly+1 must be prime!163 { MaxWorldSize =8;164 lxpre: array[0..nWorldSize -1] of Integer =(30,40,50,60,70,90,110,130);165 lypre: array[0..nWorldSize -1] of Integer =(46,52,60,70,84,94,110,130);166 DefaultWorldTiles =4200; }162 // attention: lx * ly + 1 must be prime! 163 { MaxWorldSize = 8; 164 lxpre: array[0..nWorldSize - 1] of Integer = (30, 40, 50, 60, 70, 90, 110, 130); 165 lypre: array[0..nWorldSize - 1] of Integer = (46, 52, 60, 70, 84, 94, 110, 130); 166 DefaultWorldTiles = 4200; } 167 167 MaxWorldSize = 6; 168 168 WorldSizes: array [0 .. MaxWorldSize - 1] of TPoint = ((X: 30; Y: 46), … … 558 558 MainAction: TMainAction; 559 559 begin 560 PaintBackground( self, 3, 3, TabOffset + 4 * TabSize - 4, TabHeight - 3);561 PaintBackground( self, 3, TabHeight + 3, ClientWidth - 6,560 PaintBackground(Self, 3, 3, TabOffset + 4 * TabSize - 4, TabHeight - 3); 561 PaintBackground(Self, 3, TabHeight + 3, ClientWidth - 6, 562 562 ClientHeight - TabHeight - 6); 563 563 with Canvas do … … 570 570 if Page in [pgStartRandom, pgStartMap] then 571 571 begin 572 Frame(Canvas, 328, yMain + 112 - 15, ClientWidth, Up2Btn. top + 38,572 Frame(Canvas, 328, yMain + 112 - 15, ClientWidth, Up2Btn.Top + 38, 573 573 MainTexture.ColorBevelShade, MainTexture.ColorBevelLight); 574 574 if AutoDiff > 0 then 575 575 begin 576 Frame(Canvas, -1 { x0Brain -dxBrain } ,577 yMain + 112 - 15 { Up1Btn.Top -12 }{ y0Brain-dyBrain } ,578 x0Brain + dxBrain + 64, Up2Btn. top + 38 { y0Brain+dyBrain+64 } ,576 Frame(Canvas, -1 { x0Brain - dxBrain } , 577 yMain + 112 - 15 { Up1Btn.Top - 12 }{ y0Brain - dyBrain } , 578 x0Brain + dxBrain + 64, Up2Btn.Top + 38 { y0Brain + dyBrain + 64 } , 579 579 MainTexture.ColorBevelShade, MainTexture.ColorBevelLight); 580 580 end; 581 581 end 582 else if Page <> pgMain then 583 Frame(Canvas, 328, Up1Btn. top - 15, ClientWidth, Up2Btn.top + 38,582 else if Page <> pgMain then begin 583 Frame(Canvas, 328, Up1Btn.Top - 15, ClientWidth, Up2Btn.Top + 38, 584 584 MainTexture.ColorBevelShade, MainTexture.ColorBevelLight); 585 end; 585 586 Frame(Canvas, 0, 0, ClientWidth - 1, ClientHeight - 1, 0, 0); 586 587 … … 1091 1092 end; 1092 1093 pgLoad: begin 1093 1094 1095 // BookDate :=DateToStr(FileDateToDateTime(FileAge(FileName)));1096 if not TurnValid thenbegin1097 1098 1099 1100 1101 1102 1094 MiniMap.LoadFromLogFile(GetSavedDir + DirectorySeparator + 1095 List.Items[List.ItemIndex] + CevoExt, LastTurn, WorldSizes[DefaultWorldSize]); 1096 // BookDate := DateToStr(FileDateToDateTime(FileAge(FileName))); 1097 if not TurnValid then begin 1098 LoadTurn := LastTurn; 1099 SmartInvalidate(xTurnSlider - 2, y0Mini + 61, 1100 xTurnSlider + wTurnSlider + 2, yTurnSlider + 9); 1101 end; 1102 TurnValid := True; 1103 end; 1103 1104 pgEditRandom: begin 1104 1105 MapFileName := ''; … … 1390 1391 PlayerSlots[I].MultiBtn.Tag := 768; 1391 1392 PlayerSlots[I].MultiBtn.ButtonIndex := 2 + (MultiControl shr I) and 1; 1392 PlayerSlots[I].MultiBtn.Enabled := Page = pgStartRandom 1393 PlayerSlots[I].MultiBtn.Enabled := Page = pgStartRandom; 1393 1394 end 1394 1395 else
Note:
See TracChangeset
for help on using the changeset viewer.