Changeset 276 for trunk/Forms/UFormGameSystems.pas
- Timestamp:
- Feb 3, 2019, 11:55:30 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormGameSystems.pas
r275 r276 67 67 SRemoveItems = 'Remove items'; 68 68 SRemoveItemsQuery = 'Do you want to remove selected items?'; 69 69 SNewGameSystem = 'New game system'; 70 70 71 71 { TFormGameSystems } … … 96 96 with TGameSystem(ListView1.Selected.Data) do begin 97 97 TempEntry := TGameSystem.Create; 98 TempEntry.Assign(TGameSystem(ListView1.Selected.Data)); 98 99 FormGameSystem := TFormGameSystem.Create(Self); 99 100 try … … 101 102 if FormGameSystem.ShowModal = mrOk then begin 102 103 FormGameSystem.SaveData(TempEntry); 104 TGameSystem(ListView1.Selected.Data).Assign(TempEntry); 103 105 UpdateList; 104 106 UpdateInterface; … … 118 120 FormGameSystem := TFormGameSystem.Create(Self); 119 121 try 122 TempEntry.FileName := SNewGameSystem + GameSystemExt; 120 123 FormGameSystem.LoadData(TempEntry); 121 124 if FormGameSystem.ShowModal = mrOk then begin 122 125 FormGameSystem.SaveData(TempEntry); 126 TGameSystem(ListView1.Selected.Data).Assign(TempEntry); 123 127 UpdateList; 124 128 UpdateInterface; … … 165 169 if Item.Index < ListView1.Items.Count then 166 170 with TGameSystem(GameSystems[Item.Index]) do begin 167 Item.Caption := Name;171 Item.Caption := GetName; 168 172 Item.Data := GameSystems[Item.Index]; 169 173 end;
Note:
See TracChangeset
for help on using the changeset viewer.