make map size customizable in star dialog

This commit is contained in:
Geoffray Levasseur committed 2026-11-09 12:18:42 +01:00
1 parent 8606bf8bcc
commit a564d06798
3 files changed
+17 -5

No files matched your search

+10
View File
@@ -245,6 +245,16 @@ void StartDlg::offscreenPaint()
}
} else if (m_page == Page::StartRandom || m_page == Page::StartMap) {
underlinedTitleValue(canvas, startControl(10), Term::turnToString(m_maxTurn), 344, y0Mini + 61, 170);
if (m_page == Page::StartRandom) {
// c-evo-evo extension: world size is adjustable here too, not
// just in the map editor (see Start.cpp's Up1Btn/Down1Btn tags).
const QPoint world = WorldSizes[m_worldSize];
underlinedTitleValue(
canvas, startControl(5),
QString::number((world.x() * world.y() * 20 + DefaultWorldTiles / 2) / DefaultWorldTiles * 5) +
QLatin1Char('%'),
344, y0Mini - 77, 170);
}
QString s = startControl(7);
loweredTextOut(canvas, -2, *MainTexture, x0Brain + 32 - canvas.textWidth(s) / 2, y0Brain + dyBrain + 69, s);