rule: Add 60 option to N-move rule

This commit is contained in:
Calcitem 2021-10-03 09:44:03 +08:00
parent 74f098043d
commit 02569ae563
No known key found for this signature in database
GPG Key ID: F2F7C29E054CFB80
3 changed files with 14 additions and 0 deletions

View File

@ -118,6 +118,11 @@
<source>50</source>
<translation>50</translation>
</message>
<message>
<location filename="src/ui/qt/gamewindow.cpp" line="520"/>
<source>60</source>
<translation>60</translation>
</message>
<message>
<location filename="src/ui/qt/gamewindow.cpp" line="521"/>
<source>100</source>

View File

@ -301,6 +301,14 @@ class _RuleSettingsPageState extends State<RuleSettingsPage> {
onChanged: callback,
),
ListItemDivider(),
RadioListTile(
activeColor: AppTheme.switchListTileActiveColor,
title: Text('60'),
groupValue: Config.nMoveRule,
value: 60,
onChanged: callback,
),
ListItemDivider(),
RadioListTile(
activeColor: AppTheme.switchListTileActiveColor,
title: Text('100'),

View File

@ -558,6 +558,7 @@ void MillGameWindow::on_actionLimited_T_triggered()
comboBox_step->addItem(tr("10 Moves"), 10);
comboBox_step->addItem(tr("30 Moves"), 30);
comboBox_step->addItem(tr("50 Moves"), 50);
comboBox_step->addItem(tr("60 Moves"), 60);
comboBox_step->addItem(tr("100 Moves"), 100);
comboBox_step->addItem(tr("200 Moves"), 200);
comboBox_step->setCurrentIndex(comboBox_step->findData(gStep));