Changeset 486 for trunk/Packages/CevoComponents
- Timestamp:
- Dec 8, 2023, 8:25:31 PM (11 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/CevoComponents/ScreenTools.pas
r477 r486 92 92 T: TTexture); 93 93 procedure PaintRelativeProgressBar(Canvas: TCanvas; 94 Kind, X, Y, size, Pos, Growth, Max: Integer; IndicateComplete: Boolean;94 Kind, X, Y, Size, Pos, Growth, Max: Integer; IndicateComplete: Boolean; 95 95 T: TTexture); 96 96 procedure PaintLogo(Canvas: TCanvas; X, Y, LightColor, ShadeColor: Integer); … … 1534 1534 end; 1535 1535 Brush.Color := $000000; 1536 FillRect(Rect(X + Pos + abs(Growth), Y, X + Max, Y + 7));1536 FillRect(Rect(X + Pos + Abs(Growth), Y, X + Max, Y + 7)); 1537 1537 Brush.Style := TBrushStyle.bsClear; 1538 1538 end; … … 1541 1541 // pos and growth are relative to max, set size independent 1542 1542 procedure PaintRelativeProgressBar(Canvas: TCanvas; 1543 Kind, X, Y, size, Pos, Growth, Max: Integer; IndicateComplete: Boolean;1543 Kind, X, Y, Size, Pos, Growth, Max: Integer; IndicateComplete: Boolean; 1544 1544 T: TTexture); 1545 1545 begin 1546 1546 if Growth > 0 then 1547 PaintProgressBar(Canvas, Kind, X, Y, Pos * size div Max,1548 (Growth * size + Max div 2) div Max, size, T)1547 PaintProgressBar(Canvas, Kind, X, Y, Pos * Size div Max, 1548 (Growth * Size + Max div 2) div Max, Size, T) 1549 1549 else 1550 PaintProgressBar(Canvas, Kind, X, Y, Pos * size div Max,1551 (Growth * size - Max div 2) div Max, size, T);1550 PaintProgressBar(Canvas, Kind, X, Y, Pos * Size div Max, 1551 (Growth * Size - Max div 2) div Max, Size, T); 1552 1552 if IndicateComplete and (Pos + Growth >= Max) then 1553 Sprite(Canvas, HGrSystem, X + size - 10, Y - 7, 23, 16, 1, 129);1553 Sprite(Canvas, HGrSystem, X + Size - 10, Y - 7, 23, 16, 1, 129); 1554 1554 end; 1555 1555
Note:
See TracChangeset
for help on using the changeset viewer.