Changeset 340 for trunk/LocalPlayer/Enhance.pas
- Timestamp:
- Apr 2, 2021, 9:09:49 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LocalPlayer/Enhance.pas
r330 r340 48 48 EnhanceDlg: TEnhanceDlg; 49 49 50 50 51 implementation 51 52 52 53 uses 53 Help ;54 Help, UKeyBindings; 54 55 55 56 {$R *.lfm} … … 231 232 Sprite(offscreen, HGrTerrain, x, 64 - yyt, xxt * 2, yyt * 2, 232 233 1 + 2 * (xxt * 2 + 1), 1 + yyt + 12 * (yyt * 3 + 1)); 233 inc(x, xxt * 2 + 6) 234 inc(x, xxt * 2 + 6); 234 235 end; 235 236 end; … … 302 303 procedure TEnhanceDlg.CloseBtnClick(Sender: TObject); 303 304 begin 304 Close 305 Close; 305 306 end; 306 307 … … 317 318 begin 318 319 Page := TComponent(Sender).Tag; 319 SmartUpdateContent 320 SmartUpdateContent; 320 321 end; 321 322 … … 337 338 move(MyData.EnhancementJobs[Page, stage + 1], 338 339 MyData.EnhancementJobs[Page, stage], 4 - stage); 339 MyData.EnhancementJobs[Page, 4] := jNone 340 MyData.EnhancementJobs[Page, 4] := jNone; 340 341 end 341 342 else … … 364 365 begin 365 366 MyData.EnhancementJobs[Page, stage] := jRoad; 366 inc(stage) 367 inc(stage); 367 368 end; 368 369 if (NewJob = jFarm) and not(jIrr in Done) then 369 370 begin 370 371 MyData.EnhancementJobs[Page, stage] := jIrr; 371 inc(stage) 372 end; 373 MyData.EnhancementJobs[Page, stage] := NewJob 374 end; 375 SmartUpdateContent 372 inc(stage); 373 end; 374 MyData.EnhancementJobs[Page, stage] := NewJob; 375 end; 376 SmartUpdateContent; 376 377 end; 377 378 378 379 procedure TEnhanceDlg.FormKeyDown(Sender: TObject; var Key: Word; 379 380 Shift: TShiftState); 380 begin 381 if Key = VK_F1 then 381 var 382 ShortCut: TShortCut; 383 begin 384 ShortCut := KeyToShortCut(Key, Shift); 385 if BHelp.Test(ShortCut) then 382 386 HelpDlg.ShowNewContent(FWindowMode or wmPersistent, hkText, 383 387 HelpDlg.TextIndex('MACRO'))
Note:
See TracChangeset
for help on using the changeset viewer.