Changeset 55 for trunk/UCore.pas
- Timestamp:
- Aug 18, 2014, 9:34:15 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UCore.pas
r43 r55 51 51 Game: TGame; 52 52 UseSingleView: Boolean; 53 DevelMode: Boolean; 53 54 LastMapFileName: string; 54 55 View: TView; 56 procedure UpdateActions; 55 57 procedure Init; 56 58 property Initialized: Boolean read FInitialized; … … 66 68 67 69 uses 68 UFormMove, UFormMain, UFormNew, UFormSettings, UFormAbout ;70 UFormMove, UFormMain, UFormNew, UFormSettings, UFormAbout, UFormPlayer; 69 71 70 72 resourcestring … … 98 100 end; 99 101 102 procedure TCore.UpdateActions; 103 begin 104 Core.AGameEndTurn.Enabled := Core.Game.Running; 105 Core.AGameEnd.Enabled := Core.Game.Running; 106 end; 107 100 108 procedure TCore.AExitExecute(Sender: TObject); 101 109 begin … … 113 121 Game.Running := False; 114 122 FormMain.Redraw; 123 UpdateActions; 115 124 end; 116 125 … … 127 136 Sleep(1); 128 137 end; 138 UpdateActions; 129 139 end; 130 140 … … 147 157 Game.Running := True; 148 158 FormMain.AZoomAll.Execute; 159 UpdateActions; 149 160 end; 150 161 end; … … 154 165 Game.New; 155 166 Game.Running := True; 167 FormMain.AZoomAll.Execute; 156 168 FormMain.Redraw; 169 UpdateActions; 157 170 end; 158 171 … … 178 191 begin 179 192 UGame.InitStrings; 193 FormNew.Translate; 194 FormPlayer.Translate; 180 195 end; 181 196 … … 192 207 XMLConfig1.SetValue('Language', CoolTranslator1.Language.Code); 193 208 XMLConfig1.SetValue('LastMapFileName', LastMapFileName); 209 XMLConfig1.SetValue('DevelMode', DevelMode); 194 210 FreeAndNil(Game); 195 211 end; … … 201 217 FInitialized := True; 202 218 LastMapFileName := XMLConfig1.GetValue('LastMapFileName', ''); 219 DevelMode := XMLConfig1.GetValue('DevelMode', false); 203 220 CoolTranslator1.Language := CoolTranslator1.Languages.SearchByCode(XMLConfig1.GetValue('Language', '')); 204 221 for I := 0 to Game.Players.Count - 1 do
Note:
See TracChangeset
for help on using the changeset viewer.