add gradient func

This commit is contained in:
Geoffray Levasseur committed 2026-11-03 14:17:15 +01:00
1 parent 60958fa28e
commit 6513c6f8ec
2 files changed
+58

No files matched your search

+8
View File
@@ -197,5 +197,13 @@ void imageOpCCC(Dpi::Bitmap &bmp, int x, int y, int width, int height, int color
// ScreenTools.pas's TurnToYear(): maps a game turn to a calendar year
// (negative = BC), using the same variable-length-era table as the original.
int turnToYear(int turn);
// ScreenTools.pas's MovementToString(): formats a x100-scaled movement
// points value as e.g. "1.5" / "12.75".
QString movementToString(int movement);
// ScreenTools.pas's LightGradient()/DarkGradient(): a 16-step horizontal
// brightness gradient starting at `color` (LightGradient) or the HGrSystem
// swatch at row 137+kind (DarkGradient), ending in a black L-shaped border.
void lightGradient(Dpi::Canvas &canvas, int x, int y, int width, QColor color);
void darkGradient(Dpi::Canvas &canvas, int x, int y, int width, int kind);
} // namespace Cevo