Changeset 457 for trunk/LocalPlayer/TechTree.pas
- Timestamp:
- Nov 27, 2023, 12:10:57 AM (12 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LocalPlayer/TechTree.pas
r447 r457 140 140 141 141 with Image.Canvas do begin 142 // write advance names142 // Write advance names 143 143 Font.Assign(UniFont[ftSmall]); 144 144 Font.Color := clBlack; 145 145 Brush.Style := bsClear; 146 for X := 0 to (Image. width - xStart) div xPitch do147 for Y := 0 to (Image. height - yStart) div yPitch do146 for X := 0 to (Image.Width - xStart) div xPitch do 147 for Y := 0 to (Image.Height - yStart) div yPitch do 148 148 begin 149 149 ad := Pixels[xStart + X * xPitch + 10, yStart + Y * yPitch - 1]; … … 156 156 Pixels[xStart + X * xPitch + 10, yStart + Y * yPitch - 1] 157 157 := TransparentColor2; 158 end 158 end; 159 159 end; 160 160 161 // write legend161 // Write legend 162 162 TextOut(xLegend, yLegend, Phrases2.Lookup('ADVTREE_UP0')); 163 163 TextOut(xLegend, yLegend + yLegendPitch, Phrases2.Lookup('ADVTREE_UP1')); … … 173 173 end; 174 174 175 // fit window to image, center image in window, center window to screen175 // Fit window to image, center image in window, center window to screen 176 176 NewWidth := Min(Screen.Width - 40, Image.Width + LeftBorder + RightBorder + 2 * BlackBorder); 177 177 NewHeight := Min(Screen.Height - 40, Image.Height + TopBorder + BottomBorder + 2 * BlackBorder); … … 191 191 if Button = mbLeft then 192 192 begin 193 dragging := True;193 Dragging := True; 194 194 xDown := X; 195 195 yDown := Y; … … 200 200 Shift: TShiftState; X, Y: Integer); 201 201 begin 202 dragging := False;202 Dragging := False; 203 203 end; 204 204 … … 206 206 X, Y: Integer); 207 207 begin 208 if dragging then208 if Dragging then 209 209 begin 210 210 xOffset := xOffset + X - xDown;
Note:
See TracChangeset
for help on using the changeset viewer.