added battle with requirements
This commit is contained in:
1 parent
1da33b4cf7
commit
65aeb03394
5 files changed
+441
No files matched your search
@@ -231,6 +231,9 @@ QString movementToString(int movement);
|
||||
// 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);
|
||||
// Vertical counterparts of lightGradient()/darkGradient().
|
||||
void vLightGradient(Dpi::Canvas &canvas, int x, int y, int height, QColor color);
|
||||
void vDarkGradient(Dpi::Canvas &canvas, int x, int y, int height, int kind);
|
||||
// ScreenTools.pas's NumberBar(): a labeled stat row (title + DLine divider
|
||||
// + right-aligned number), skipped entirely if val <= 0.
|
||||
void numberBar(Dpi::Canvas &canvas, int x, int y, const QString &cap, int val, const Texture &texture);
|
||||
|
||||
@@ -868,6 +868,19 @@ void darkGradient(Dpi::Canvas &canvas, int x, int y, int width, int kind)
|
||||
gradient(canvas, x, y, 0, 1, width, 0, color, brightness);
|
||||
}
|
||||
|
||||
void vLightGradient(Dpi::Canvas &canvas, int x, int y, int height, QColor color)
|
||||
{
|
||||
static constexpr int brightness[16] = { 16, 12, 8, 4, 0, -4, -8, -12, -16, -20, -24, -28, -32, -36, -40, -44 };
|
||||
gradient(canvas, x, y, 1, 0, 0, height, color, brightness);
|
||||
}
|
||||
|
||||
void vDarkGradient(Dpi::Canvas &canvas, int x, int y, int height, int kind)
|
||||
{
|
||||
static constexpr int brightness[16] = { 16, 12, 8, 4, 0, -4, -8, -36, 0, -20, -24, -28, -32, -36, -40, -44 };
|
||||
const QColor color = HGrSystem ? HGrSystem->data.image().pixelColor(187, 137 + kind) : QColor(Qt::black);
|
||||
gradient(canvas, x, y, 1, 0, 0, height, color, brightness);
|
||||
}
|
||||
|
||||
void numberBar(Dpi::Canvas &canvas, int x, int y, const QString &cap, int val, const Texture &texture)
|
||||
{
|
||||
if (val <= 0)
|
||||
|
||||
Reference in new issue
Block a user