Changeset 179 for trunk/UCore.pas
- Timestamp:
- Feb 6, 2018, 3:47:23 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UCore.pas
r178 r179 228 228 if (DesignDPI.X <> DPI.X) or (DesignDPI.Y <> DPI.Y) then begin 229 229 //ApplyToAll(DesignDPI); 230 FormNew.Show;231 FormNew.Hide;232 230 for I := 0 to Screen.FormCount - 1 do 233 231 if (Screen.Forms[I].WindowState = wsNormal) or … … 318 316 procedure TCore.AGameNewExecute(Sender: TObject); 319 317 begin 320 FormNew.Load(Game); 321 if FormNew.ShowModal = mrOk then begin 322 FormNew.Save(Game); 323 StartNewGame; 318 FormNew := TFormNew.Create(nil); 319 try 320 FormNew.Load(Server); 321 if FormNew.ShowModal = mrOk then begin 322 FormNew.Save(Server); 323 StartNewGame; 324 end; 325 finally 326 FormNew.Free; 324 327 end; 325 328 end; … … 361 364 FormSettings.Save; 362 365 Game.SaveConfig(XMLConfig1, 'Game'); 366 Server.SaveConfig(XMLConfig1, 'Server'); 363 367 end; 364 368 finally … … 380 384 begin 381 385 UGame.InitStrings; 382 FormNew.Translate;383 386 FormPlayer.Translate; 384 387 end; … … 404 407 FreeAndNil(StoredDimension); 405 408 Game.SaveConfig(XMLConfig1, 'Game'); 409 Server.SaveConfig(XMLConfig1, 'Server'); 406 410 SaveConfig; 407 411 FreeAndNil(Server); … … 478 482 LoadConfig; 479 483 Game.LoadConfig(XMLConfig1, 'Game'); 484 Server.LoadConfig(XMLConfig1, 'Server'); 480 485 481 486 CommandLineParams;
Note:
See TracChangeset
for help on using the changeset viewer.