Doesn't skip if answered wrong
This commit is contained in:
parent
46664fac59
commit
8fec07b3d5
1 changed files with 17 additions and 2 deletions
|
@ -62,7 +62,7 @@
|
||||||
@for (int i = 0; i < Answers.Length; i++)
|
@for (int i = 0; i < Answers.Length; i++)
|
||||||
{
|
{
|
||||||
int buttonIndex = i;
|
int buttonIndex = i;
|
||||||
<MudButton Class="PinyinButtons ma-3"
|
<MudButton Class="PinyinButtons ma-3"
|
||||||
Variant="Variant.Outlined"
|
Variant="Variant.Outlined"
|
||||||
@onclick="() => SelectButton(buttonIndex)"
|
@onclick="() => SelectButton(buttonIndex)"
|
||||||
Color="@(Answers[buttonIndex].isSelected ? Color.Primary : Color.Default)">
|
Color="@(Answers[buttonIndex].isSelected ? Color.Primary : Color.Default)">
|
||||||
|
@ -91,6 +91,10 @@
|
||||||
{
|
{
|
||||||
<MudText Typo="Typo.caption">• Easy mode enabled</MudText>
|
<MudText Typo="Typo.caption">• Easy mode enabled</MudText>
|
||||||
}
|
}
|
||||||
|
@if (useChagingFonts)
|
||||||
|
{
|
||||||
|
<MudText Typo="Typo.caption">• Changing fonts enabled</MudText>
|
||||||
|
}
|
||||||
</MudStack>
|
</MudStack>
|
||||||
</MudContainer>
|
</MudContainer>
|
||||||
</MudStack>
|
</MudStack>
|
||||||
|
@ -313,7 +317,18 @@
|
||||||
|
|
||||||
await SaveContinueData();
|
await SaveContinueData();
|
||||||
|
|
||||||
GenerateQuestion();
|
if (isCorrect)
|
||||||
|
{
|
||||||
|
GenerateQuestion();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
foreach (var anwser in Answers)
|
||||||
|
{
|
||||||
|
anwser.isSelected = false;
|
||||||
|
}
|
||||||
|
StateHasChanged();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async Task SaveContinueData()
|
async Task SaveContinueData()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue