Changeset 178 for trunk/UCore.pas
- Timestamp:
- Jan 30, 2018, 10:23:49 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UCore.pas
r176 r178 111 111 SRestartGameQuestion = 'Do you want to restart current game?'; 112 112 SPlayersNotInitialized = 'Not all players were initialized with start cell. Needed %d, initialized %d. Change map parameters to have more terrain cells.'; 113 SFileDialogFilter = 'xTactics games (.xtg)|*.xtg|All files|*.*'; 113 114 114 115 … … 307 308 procedure TCore.AGameLoadExecute(Sender: TObject); 308 309 begin 309 if (Game.FileName = '') and (LastOpenedList1.Items.Count > 0) then310 OpenDialog1.FileName := LastOpenedList1.Items[0]311 else OpenDialog1.FileName := Game.FileName;310 OpenDialog1.Filter := SFileDialogFilter; 311 OpenDialog1.InitialDir := ExtractFileDir(Game.FileName); 312 OpenDialog1.FileName := ExtractFileName(Game.FileName); 312 313 if OpenDialog1.Execute then begin 313 314 LoadGame(OpenDialog1.FileName); … … 333 334 procedure TCore.AGameSaveExecute(Sender: TObject); 334 335 begin 335 if (Game.FileName = '') and (LastOpenedList1.Items.Count > 0) then336 SaveDialog1.FileName := ExtractFileDir(LastOpenedList1.Items[0])337 else SaveDialog1.FileName := Game.FileName;336 SaveDialog1.Filter := SFileDialogFilter; 337 SaveDialog1.InitialDir := ExtractFileDir(Game.FileName); 338 SaveDialog1.FileName := ExtractFileName(Game.FileName); 338 339 if SaveDialog1.Execute then begin 339 340 Game.SaveToFile(SaveDialog1.FileName);
Note:
See TracChangeset
for help on using the changeset viewer.