Changeset 468 for trunk/LocalPlayer/TechTree.pas
- Timestamp:
- Dec 3, 2023, 11:28:08 AM (5 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LocalPlayer/TechTree.pas
r460 r468 5 5 6 6 uses 7 ScreenTools, LCLIntf, LCLType, SysUtils, Classes, Graphics, 8 Controls, Forms, ButtonB, DrawDlg; 7 ScreenTools, LCLIntf, LCLType, SysUtils, Classes, ButtonB, DrawDlg, 8 {$IFDEF DPI}Dpi.Graphics, Dpi.Controls, Dpi.Forms{$ELSE} 9 Graphics, Controls, Forms{$ENDIF}; 9 10 10 11 type … … 132 133 if Image = nil then begin 133 134 Image := TBitmap.Create; 134 Image.PixelFormat := pf24bit;135 Image.PixelFormat := TPixelFormat.pf24bit; 135 136 LoadGraphicFile(Image, HomeDir + 'Help' + DirectorySeparator + 'AdvTree.png', 136 137 [gfNoGamma]); … … 140 141 Font.Assign(UniFont[ftSmall]); 141 142 Font.Color := clBlack; 142 Brush.Style := bsClear;143 Brush.Style := TBrushStyle.bsClear; 143 144 for X := 0 to (Image.Width - xStart) div xPitch do 144 145 for Y := 0 to (Image.Height - yStart) div yPitch do … … 186 187 Shift: TShiftState; X, Y: Integer); 187 188 begin 188 if Button = mbLeft then189 if Button = TMouseButton.mbLeft then 189 190 begin 190 191 Dragging := True;
Note:
See TracChangeset
for help on using the changeset viewer.