Ignore:
Timestamp:
Dec 8, 2023, 8:25:31 PM (11 months ago)
Author:
chronos
Message:
  • Modified: Code cleanup.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Packages/CevoComponents/ScreenTools.pas

    r477 r486  
    9292  T: TTexture);
    9393procedure 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;
    9595  T: TTexture);
    9696procedure PaintLogo(Canvas: TCanvas; X, Y, LightColor, ShadeColor: Integer);
     
    15341534    end;
    15351535    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));
    15371537    Brush.Style := TBrushStyle.bsClear;
    15381538  end;
     
    15411541// pos and growth are relative to max, set size independent
    15421542procedure 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;
    15441544  T: TTexture);
    15451545begin
    15461546  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)
    15491549  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);
    15521552  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);
    15541554end;
    15551555
Note: See TracChangeset for help on using the changeset viewer.