- Timestamp:
- Apr 27, 2021, 6:42:29 PM (4 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GameServer.pas
r384 r385 1222 1222 begin 1223 1223 GenerateStat(pTurn); 1224 StatRequest := false 1224 StatRequest := false; 1225 1225 end; 1226 1226 // complete all internal commands following an sTurn before generating statistics -
trunk/Integrated.lpi
r368 r385 95 95 </Item2> 96 96 </RequiredPackages> 97 <Units Count="4 7">97 <Units Count="48"> 98 98 <Unit0> 99 99 <Filename Value="Integrated.lpr"/> … … 356 356 <IsPartOfProject Value="True"/> 357 357 </Unit46> 358 <Unit47> 359 <Filename Value="ULanguages.pas"/> 360 <IsPartOfProject Value="True"/> 361 </Unit47> 358 362 </Units> 359 363 </ProjectOptions> -
trunk/Language.txt
r364 r385 341 341 #BTN_NO No 342 342 #BTN_INFO Info 343 #BTN_RESET Reset 343 344 344 345 'Button Tooltips … … 952 953 Gamma 953 954 Restart is needed to apply changes 955 Primary 956 Secondary 957 Languages 958 Key bindings -
trunk/LocalPlayer/Term.pas
r364 r385 3440 3440 NoMapPanel := TIsoMap.Create; 3441 3441 3442 KeyBindings.LoadFromRegistry(HKEY_CURRENT_USER, AppRegistryKey + '\KeyBindings');3443 3442 UpdateKeyShortcuts; 3444 3443 … … 3539 3538 I: Integer; 3540 3539 begin 3541 KeyBindings.SaveToRegistry(HKEY_CURRENT_USER, AppRegistryKey + '\KeyBindings');3542 3540 MainFormKeyDown := nil; 3543 3541 FreeAndNil(sb); -
trunk/LocalPlayer/UKeyBindings.pas
r293 r385 17 17 ShortCut: TShortCut; 18 18 ShortCut2: TShortCut; 19 DefaultShortCut: TShortCut; 20 DefaultShortCut2: TShortCut; 19 21 function Test(AShortCut: TShortCut): Boolean; 22 procedure Assign(Source: TKeyBinding); 23 procedure SetDefault; 20 24 end; 21 25 … … 23 27 24 28 TKeyBindings = class(TFPGObjectList<TKeyBinding>) 29 private 25 30 public 26 31 function AddItem(const ShortName, FullName: string; ShortCut: TShortCut; ShortCut2: TShortCut = 0): TKeyBinding; overload; … … 29 34 procedure LoadFromRegistry(RootKey: HKEY; Key: string); 30 35 procedure SaveToRegistry(RootKey: HKEY; Key: string); 36 procedure LoadToStrings(Strings: TStrings); 37 procedure Assign(Source: TKeyBindings); 38 procedure ResetToDefault; 31 39 end; 32 40 … … 123 131 end; 124 132 133 procedure TKeyBinding.Assign(Source: TKeyBinding); 134 begin 135 ShortName := Source.ShortName; 136 FullName := Source.FullName; 137 ShortCut := Source.ShortCut; 138 ShortCut2 := Source.ShortCut2; 139 DefaultShortCut := Source.DefaultShortCut; 140 DefaultShortCut2 := Source.DefaultShortCut2; 141 end; 142 143 procedure TKeyBinding.SetDefault; 144 begin 145 ShortCut := DefaultShortCut; 146 ShortCut2 := DefaultShortCut2; 147 end; 148 125 149 { TKeyBindings } 126 150 … … 133 157 Result.ShortCut := ShortCut; 134 158 Result.ShortCut2 := ShortCut2; 159 Result.DefaultShortCut := ShortCut; 160 Result.DefaultShortCut2 := ShortCut2; 135 161 Add(Result); 136 162 end; … … 205 231 Free; 206 232 end; 233 end; 234 235 procedure TKeyBindings.LoadToStrings(Strings: TStrings); 236 var 237 I: Integer; 238 Text: string; 239 begin 240 Strings.Clear; 241 for I := 0 to Count - 1 do begin 242 Text:= ''; 243 if Items[I].ShortCut <> 0 then 244 Text:= Text + ShortCutToText(Items[I].ShortCut); 245 if Items[I].ShortCut2 <> 0 then begin 246 if Text <> '' then Text := Text + ', '; 247 Text:= Text + ShortCutToText(Items[I].ShortCut2); 248 end; 249 if Text <> '' then Text := Items[I].FullName + ' (' + Text + ')' 250 else Text := Items[I].FullName; 251 Strings.Add(Text); 252 end; 253 end; 254 255 procedure TKeyBindings.Assign(Source: TKeyBindings); 256 var 257 I: Integer; 258 begin 259 while Count < Source.Count do 260 Add(TKeyBinding.Create); 261 while Count > Source.Count do 262 Delete(Count - 1); 263 for I := 0 to Count - 1 do 264 Items[I].Assign(Source.Items[I]); 265 end; 266 267 procedure TKeyBindings.ResetToDefault; 268 var 269 I: Integer; 270 begin 271 for I := 0 to Count - 1 do 272 Items[I].SetDefault; 207 273 end; 208 274 -
trunk/Localization/cs/Language.txt
r364 r385 341 341 #BTN_NO Ne 342 342 #BTN_INFO Info 343 #BTN_RESET Výchozí 343 344 344 345 'Button Tooltips … … 952 953 Gamma 953 954 Pro projevení změn je potřeba restart 955 Hlavní 956 Vedlejší 957 Jazyky 958 Klávesové zkratky -
trunk/Localization/de/Language.txt
r364 r385 344 344 #BTN_NO Nein 345 345 #BTN_INFO Info 346 #BTN_RESET Reset 346 347 347 348 'Button Tooltips … … 970 971 Gamma 971 972 Restart is needed to apply changes 973 Primary 974 Secondary 975 Languages 976 Key bindings -
trunk/Localization/it/Language.txt
r364 r385 331 331 #BTN_NO No 332 332 #BTN_INFO Dati 333 #BTN_RESET Reset 333 334 334 335 'Button Tooltips … … 942 943 Gamma 943 944 Restart is needed to apply changes 945 Primary 946 Secondary 947 Languages 948 Key bindings -
trunk/Localization/ru/Language.txt
r364 r385 351 351 #BTN_NO Нет 352 352 #BTN_INFO Информация 353 #BTN_RESET Reset 353 354 354 355 'Названия кнопок-инструментов … … 977 978 Gamma 978 979 Restart is needed to apply changes 980 Primary 981 Secondary 982 Languages 983 Key bindings -
trunk/Localization/zh-Hans/language.txt
r364 r385 344 344 #BTN_NO ·ñ 345 345 #BTN_INFO °ïÖú 346 #BTN_RESET Reset 346 347 347 348 'Button Tooltips … … 969 970 Gamma 970 971 Restart is needed to apply changes 972 Primary 973 Secondary 974 Languages 975 Key bindings -
trunk/Localization/zh-Hant/language.txt
r364 r385 344 344 #BTN_NO §_ 345 345 #BTN_INFO À°§U 346 #BTN_RESET Reset 346 347 347 348 'Button Tooltips … … 969 970 Gamma 970 971 Restart is needed to apply changes 972 Primary 973 Secondary 974 Languages 975 Key bindings -
trunk/Settings.lfm
r317 r385 10 10 DesignTimePPI = 144 11 11 FormStyle = fsStayOnTop 12 OnClose = FormClose 12 13 OnCreate = FormCreate 13 14 OnDestroy = FormDestroy … … 17 18 LCLVersion = '2.0.12.0' 18 19 Scaled = False 19 object List : TListBox20 object ListLanguages: TListBox 20 21 Tag = 15360 21 Left = 24 22 Height = 304 23 Top = 16 24 Width = 424 25 Anchors = [akTop, akLeft, akRight, akBottom] 22 Left = 16 23 Height = 267 24 Top = 32 25 Width = 144 26 26 BorderStyle = bsNone 27 27 Color = clBlack … … 34 34 ItemHeight = 0 35 35 ParentFont = False 36 ScrollWidth = 42437 TabOrder = 036 ScrollWidth = 144 37 TabOrder = 1 38 38 TabStop = False 39 39 TopIndex = -1 40 40 end 41 object OKBtn: TButtonA42 Left = 27241 object ButtonOk: TButtonA 42 Left = 364 43 43 Height = 25 44 44 Top = 400 … … 46 46 Down = False 47 47 Permanent = False 48 OnClick = OKBtnClick48 OnClick = ButtonOkClick 49 49 end 50 object CancelBtn: TButtonA51 Left = 9650 object ButtonCancel: TButtonA 51 Left = 244 52 52 Height = 25 53 53 Top = 400 … … 55 55 Down = False 56 56 Permanent = False 57 OnClick = CancelBtnClick57 OnClick = ButtonCancelClick 58 58 end 59 59 object ButtonFullscreen: TButtonC … … 89 89 ButtonIndex = 0 90 90 end 91 object ListKeyBindings: TListBox 92 Tag = 15360 93 Left = 176 94 Height = 192 95 Top = 32 96 Width = 288 97 BorderStyle = bsNone 98 Color = clBlack 99 ExtendedSelect = False 100 Font.Color = 4176863 101 Font.Height = -15 102 Font.Name = 'Times New Roman' 103 Font.Style = [fsBold] 104 IntegralHeight = True 105 ItemHeight = 0 106 OnSelectionChange = ListKeyBindingsSelectionChange 107 ParentFont = False 108 ScrollWidth = 288 109 TabOrder = 0 110 TabStop = False 111 TopIndex = -1 112 end 113 object EditShortCutPrimary: TEdit 114 Left = 176 115 Height = 42 116 Top = 256 117 Width = 136 118 Enabled = False 119 OnKeyUp = EditShortCutPrimaryKeyUp 120 TabOrder = 2 121 end 122 object EditShortCutSecondary: TEdit 123 Left = 328 124 Height = 42 125 Top = 257 126 Width = 136 127 Enabled = False 128 OnKeyUp = EditShortCutSecondaryKeyUp 129 TabOrder = 3 130 end 131 object ButtonReset: TButtonA 132 Left = 16 133 Height = 25 134 Top = 400 135 Width = 100 136 Down = False 137 Permanent = False 138 OnClick = ButtonResetClick 139 end 91 140 end -
trunk/Settings.pas
r352 r385 7 7 uses 8 8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls, 9 ScreenTools, Messg, ButtonA, Registry, fgl, Directories, DrawDlg, ButtonC; 9 LCLProc, ScreenTools, Messg, ButtonA, Registry, fgl, Directories, DrawDlg, 10 ButtonC, UKeyBindings, ULanguages; 10 11 11 12 type 12 TLanguage = class13 ShortName: string;14 FullName: string;15 Author: string;16 end;17 18 { TLanguages }19 20 TLanguages = class(TFPGObjectList<TLanguage>)21 procedure AddItem(const ShortName, FullName: string);22 procedure LoadToStrings(Strings: TStrings);23 function Search(ShortName: string): Integer;24 end;25 26 13 { TSettingsDlg } 27 14 … … 29 16 ButtonFullscreen: TButtonC; 30 17 Down2Btn: TButtonC; 31 List: TListBox; 32 OKBtn: TButtonA; 33 CancelBtn: TButtonA; 18 EditShortCutPrimary: TEdit; 19 EditShortCutSecondary: TEdit; 20 ListLanguages: TListBox; 21 ListKeyBindings: TListBox; 22 ButtonOk: TButtonA; 23 ButtonCancel: TButtonA; 24 ButtonReset: TButtonA; 34 25 Up2Btn: TButtonC; 35 26 procedure ButtonFullscreenClick(Sender: TObject); 36 procedure CancelBtnClick(Sender: TObject); 27 procedure ButtonCancelClick(Sender: TObject); 28 procedure ButtonResetClick(Sender: TObject); 37 29 procedure Down2BtnClick(Sender: TObject); 30 procedure EditShortCutPrimaryKeyUp(Sender: TObject; var Key: Word; 31 Shift: TShiftState); 32 procedure EditShortCutSecondaryKeyUp(Sender: TObject; var Key: Word; 33 Shift: TShiftState); 34 procedure FormClose(Sender: TObject; var CloseAction: TCloseAction); 38 35 procedure FormCreate(Sender: TObject); 39 36 procedure FormDestroy(Sender: TObject); 40 37 procedure FormPaint(Sender: TObject); 41 38 procedure FormShow(Sender: TObject); 42 procedure OKBtnClick(Sender: TObject); 39 procedure ListKeyBindingsSelectionChange(Sender: TObject; User: boolean); 40 procedure ButtonOkClick(Sender: TObject); 43 41 procedure Up2BtnClick(Sender: TObject); 44 42 private 45 43 LocalGamma: Integer; 44 LocalKeyBindings: TKeyBindings; 45 CurrentKeyBinding: TKeyBinding; 46 procedure UpdateShortCutItem; 46 47 public 47 Languages: TLanguages;48 48 procedure LoadData; 49 49 procedure SaveData; … … 53 53 SettingsDlg: TSettingsDlg; 54 54 55 55 56 implementation 56 57 57 58 {$R *.lfm} 58 59 59 { TLanguages }60 61 procedure TLanguages.AddItem(const ShortName, FullName: string);62 60 var 63 Language: TLanguage; 64 begin 65 Language := TLanguage.Create; 66 Language.ShortName := ShortName; 67 Language.FullName := FullName; 68 Add(Language); 69 end; 70 71 procedure TLanguages.LoadToStrings(Strings: TStrings); 72 var 73 I: Integer; 74 begin 75 Strings.Clear; 76 for I := 0 to Count - 1 do 77 Strings.Add(Items[I].FullName); 78 end; 79 80 function TLanguages.Search(ShortName: string): Integer; 81 var 82 I: Integer; 83 begin 84 I := 0; 85 while (I < Count) and (Items[I].ShortName <> ShortName) do Inc(I); 86 if I < Count then Result := I 87 else Result := -1; 61 SFullScreen, SGamma, SRestartMsg, SShortCutPrimary, SShortCutSecondary, 62 SLanguages, SKeyBindings: string; 63 64 procedure ReloadLanguages; 65 begin 66 SFullScreen := Phrases.Lookup('SETTINGS', 0); 67 SGamma := Phrases.Lookup('SETTINGS', 1); 68 SRestartMsg := Phrases.Lookup('SETTINGS', 2); 69 SShortCutPrimary := Phrases.Lookup('SETTINGS', 3); 70 SShortCutSecondary := Phrases.Lookup('SETTINGS', 4); 71 SLanguages := Phrases.Lookup('SETTINGS', 5); 72 SKeyBindings := Phrases.Lookup('SETTINGS', 6); 88 73 end; 89 74 … … 92 77 procedure TSettingsDlg.FormCreate(Sender: TObject); 93 78 begin 79 LocalKeyBindings := TKeyBindings.Create; 80 94 81 Canvas.Font.Assign(UniFont[ftNormal]); 95 82 Canvas.Brush.Style := bsClear; 96 83 97 Languages := TLanguages.Create; 98 Languages.AddItem('', 'System'); 99 Languages.AddItem('cs', 'Czech'); 100 Languages.AddItem('de', 'German'); 101 Languages.AddItem('en', 'English'); 102 Languages.AddItem('it', 'Italian'); 103 Languages.AddItem('ru', 'Russian'); 104 Languages.AddItem('zh-Hant', 'Traditional Chinese'); 105 Languages.AddItem('zh-Hans', 'Simplified Chinese'); 106 107 OKBtn.Caption := Phrases.Lookup('BTN_OK'); 108 CancelBtn.Caption := Phrases.Lookup('BTN_CANCEL'); 84 ButtonOk.Caption := Phrases.Lookup('BTN_OK'); 85 ButtonCancel.Caption := Phrases.Lookup('BTN_CANCEL'); 86 ButtonReset.Caption := Phrases.Lookup('BTN_RESET'); 109 87 InitButtons; 110 88 end; 111 89 112 procedure TSettingsDlg. CancelBtnClick(Sender: TObject);90 procedure TSettingsDlg.ButtonCancelClick(Sender: TObject); 113 91 begin 114 92 ModalResult := mrCancel; 93 end; 94 95 procedure TSettingsDlg.ButtonResetClick(Sender: TObject); 96 begin 97 ListLanguages.ItemIndex := 0; 98 ButtonFullscreen.ButtonIndex := 3; 99 LocalGamma := 100; 100 ListKeyBindings.ItemIndex := -1; 101 ListKeyBindingsSelectionChange(nil, False); 102 LocalKeyBindings.ResetToDefault; 103 LocalKeyBindings.LoadToStrings(ListKeyBindings.Items); 104 Repaint; 115 105 end; 116 106 … … 124 114 end; 125 115 116 procedure TSettingsDlg.EditShortCutPrimaryKeyUp(Sender: TObject; var Key: Word; 117 Shift: TShiftState); 118 begin 119 if (Sender is TEdit) and Assigned(CurrentKeyBinding) and not (Key in [16..18]) then begin 120 CurrentKeyBinding.ShortCut := Key or 121 (scShift * Integer(ssShift in Shift)) or 122 (scCtrl * Integer(ssCtrl in Shift)) or 123 (scAlt * Integer(ssAlt in Shift)); 124 EditShortCutPrimary.Text := ShortCutToText(CurrentKeyBinding.ShortCut); 125 Key := 0; 126 UpdateShortCutItem; 127 end; 128 end; 129 130 procedure TSettingsDlg.EditShortCutSecondaryKeyUp(Sender: TObject; 131 var Key: Word; Shift: TShiftState); 132 begin 133 if (Sender is TEdit) and Assigned(CurrentKeyBinding) and not (Key in [16..18]) then begin 134 CurrentKeyBinding.ShortCut2 := Key or 135 (scShift * Integer(ssShift in Shift)) or 136 (scCtrl * Integer(ssCtrl in Shift)) or 137 (scAlt * Integer(ssAlt in Shift)); 138 EditShortCutSecondary.Text := ShortCutToText(CurrentKeyBinding.ShortCut2); 139 Key := 0; 140 UpdateShortCutItem; 141 end; 142 end; 143 144 procedure TSettingsDlg.FormClose(Sender: TObject; var CloseAction: TCloseAction 145 ); 146 begin 147 ListKeyBindings.ItemIndex := -1; 148 end; 149 126 150 procedure TSettingsDlg.ButtonFullscreenClick(Sender: TObject); 127 151 begin … … 131 155 procedure TSettingsDlg.FormDestroy(Sender: TObject); 132 156 begin 133 FreeAndNil(L anguages);157 FreeAndNil(LocalKeyBindings); 134 158 end; 135 159 136 160 procedure TSettingsDlg.FormPaint(Sender: TObject); 137 var138 S: string;139 161 begin 140 162 PaintBackground(self, 3, 3, ClientWidth - 6, ClientHeight - 6); … … 144 166 Frame(Canvas, 2, 2, ClientWidth - 3, ClientHeight - 3, 145 167 MainTexture.ColorBevelLight, MainTexture.ColorBevelShade); 146 EditFrame(Canvas, List .BoundsRect, MainTexture);147 BtnFrame(Canvas, OKBtn.BoundsRect, MainTexture);148 BtnFrame(Canvas, CancelBtn.BoundsRect, MainTexture);168 EditFrame(Canvas, ListLanguages.BoundsRect, MainTexture); 169 BtnFrame(Canvas, ButtonOk.BoundsRect, MainTexture); 170 BtnFrame(Canvas, ButtonCancel.BoundsRect, MainTexture); 149 171 150 172 RFrame(Canvas, ButtonFullscreen.Left - 1, ButtonFullscreen.Top - 1, … … 152 174 MainTexture.ColorBevelLight); 153 175 154 S := Phrases.Lookup('SETTINGS', 0); 176 LoweredTextOut(Canvas, -2, MainTexture, ListLanguages.Left, 177 ListLanguages.Top - 26, SLanguages); 178 LoweredTextOut(Canvas, -2, MainTexture, ListKeyBindings.Left, 179 ListKeyBindings.Top - 26, SKeyBindings); 155 180 LoweredTextOut(Canvas, -2, MainTexture, ButtonFullscreen.Left + 32, 156 ButtonFullscreen.Top - 4, S); 157 158 // Gamma 159 UnderlinedTitleValue(Canvas, Phrases.Lookup('SETTINGS', 1), IntToStr(LocalGamma) + '%', 181 ButtonFullscreen.Top - 4, SFullScreen); 182 UnderlinedTitleValue(Canvas, SGamma, IntToStr(LocalGamma) + '%', 160 183 Up2Btn.Left - 150 - 4, Up2Btn.Top + 2, 150); 184 LoweredTextOut(Canvas, -2, MainTexture, EditShortCutPrimary.Left, 185 EditShortCutPrimary.Top - 26, SShortCutPrimary); 186 LoweredTextOut(Canvas, -2, MainTexture, EditShortCutSecondary.Left, 187 EditShortCutSecondary.Top - 26, SShortCutSecondary); 161 188 end; 162 189 163 190 procedure TSettingsDlg.FormShow(Sender: TObject); 164 191 begin 165 Languages.LoadToStrings(List.Items); 166 List.Font.Color := MainTexture.ColorMark; 192 ReloadLanguages; 193 Languages.LoadToStrings(ListLanguages.Items); 194 ListLanguages.Font.Color := MainTexture.ColorMark; 195 ListKeyBindings.Font.Color := MainTexture.ColorMark; 167 196 LoadData; 168 end; 169 170 procedure TSettingsDlg.OKBtnClick(Sender: TObject); 197 LocalKeyBindings.LoadToStrings(ListKeyBindings.Items); 198 end; 199 200 procedure TSettingsDlg.ListKeyBindingsSelectionChange(Sender: TObject; 201 User: boolean); 202 begin 203 if Assigned(CurrentKeyBinding) then begin 204 CurrentKeyBinding.ShortCut := TextToShortCut(EditShortCutPrimary.Text); 205 CurrentKeyBinding.ShortCut2 := TextToShortCut(EditShortCutSecondary.Text); 206 end; 207 208 if ListKeyBindings.ItemIndex >= 0 then 209 CurrentKeyBinding := LocalKeyBindings[ListKeyBindings.ItemIndex] 210 else CurrentKeyBinding := nil; 211 212 if Assigned(CurrentKeyBinding) then begin 213 if CurrentKeyBinding.ShortCut <> 0 then 214 EditShortCutPrimary.Text := ShortCutToText(CurrentKeyBinding.ShortCut) 215 else EditShortCutPrimary.Text := ''; 216 EditShortCutPrimary.Enabled := True; 217 if CurrentKeyBinding.ShortCut2 <> 0 then 218 EditShortCutSecondary.Text := ShortCutToText(CurrentKeyBinding.ShortCut2) 219 else EditShortCutSecondary.Text := ''; 220 EditShortCutSecondary.Enabled := True; 221 end else begin 222 EditShortCutPrimary.Text := ''; 223 EditShortCutPrimary.Enabled := False; 224 EditShortCutSecondary.Text := ''; 225 EditShortCutSecondary.Enabled := False; 226 end; 227 end; 228 229 procedure TSettingsDlg.ButtonOkClick(Sender: TObject); 171 230 begin 172 231 SaveData; … … 182 241 end; 183 242 243 procedure TSettingsDlg.UpdateShortCutItem; 244 begin 245 if Assigned(CurrentKeyBinding) then begin 246 CurrentKeyBinding.ShortCut := TextToShortCut(EditShortCutPrimary.Text); 247 CurrentKeyBinding.ShortCut2 := TextToShortCut(EditShortCutSecondary.Text); 248 LocalKeyBindings.LoadToStrings(ListKeyBindings.Items); 249 end; 250 end; 251 184 252 procedure TSettingsDlg.LoadData; 185 253 begin 186 List .ItemIndex := Languages.Search(LocaleCode);187 if (List .ItemIndex = -1) and (Languages.Count > 0) then188 List .ItemIndex := 0;254 ListLanguages.ItemIndex := Languages.Search(LocaleCode); 255 if (ListLanguages.ItemIndex = -1) and (Languages.Count > 0) then 256 ListLanguages.ItemIndex := 0; 189 257 if FullScreen then ButtonFullscreen.ButtonIndex := 3 190 258 else ButtonFullscreen.ButtonIndex := 2; 191 259 LocalGamma := Gamma; 260 LocalKeyBindings.Assign(KeyBindings); 192 261 end; 193 262 … … 197 266 begin 198 267 NeedRestart := Gamma <> LocalGamma; 199 LocaleCode := Languages[List .ItemIndex].ShortName;268 LocaleCode := Languages[ListLanguages.ItemIndex].ShortName; 200 269 FullScreen := (ButtonFullscreen.ButtonIndex and 1) = 1; 201 270 Gamma := LocalGamma; 202 if NeedRestart then SimpleMessage(Phrases.Lookup('SETTINGS', 2)); 271 if NeedRestart then SimpleMessage(SRestartMsg); 272 KeyBindings.Assign(LocalKeyBindings); 203 273 end; 204 274 -
trunk/Start.pas
r381 r385 428 428 Free; 429 429 end; 430 431 KeyBindings.LoadFromRegistry(HKEY_CURRENT_USER, AppRegistryKey + '\KeyBindings'); 430 432 end; 431 433 … … 450 452 Free; 451 453 end; 454 455 KeyBindings.SaveToRegistry(HKEY_CURRENT_USER, AppRegistryKey + '\KeyBindings'); 452 456 end; 453 457
Note:
See TracChangeset
for help on using the changeset viewer.