filter by test / notest
This commit is contained in:
parent
b971a729cb
commit
864c697f8e
@ -241,7 +241,7 @@ namespace EduNetworkBuilder
|
|||||||
if(!oursettings.ScoreList.Contains(str))
|
if(!oursettings.ScoreList.Contains(str))
|
||||||
{
|
{
|
||||||
PI = NB.GetPuzzleInfoFromName(str);
|
PI = NB.GetPuzzleInfoFromName(str);
|
||||||
first = "Level_" + PI.Level;
|
first = PI.strLevel;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -413,7 +413,12 @@ namespace EduNetworkBuilder
|
|||||||
{
|
{
|
||||||
wasfinished = true;
|
wasfinished = true;
|
||||||
}
|
}
|
||||||
foreach (string tag in pi.PuzzleTags)
|
List<string> tags = new List<string>(pi.PuzzleTags);
|
||||||
|
if(oursettings.HasReplay(puzzle_name)) tags.Add(TestString);
|
||||||
|
else tags.Add(NoTestString);
|
||||||
|
//tags.Add(PassedString);
|
||||||
|
//tags.Add(FailedString);
|
||||||
|
foreach (string tag in tags)
|
||||||
{
|
{
|
||||||
if (isChecked(tag))
|
if (isChecked(tag))
|
||||||
{
|
{
|
||||||
@ -421,7 +426,7 @@ namespace EduNetworkBuilder
|
|||||||
MPE.PuzzleName = puzzle_name;
|
MPE.PuzzleName = puzzle_name;
|
||||||
MPE.Title = shown_name;
|
MPE.Title = shown_name;
|
||||||
MPE.isdone = wasfinished;
|
MPE.isdone = wasfinished;
|
||||||
MPE.level = tag;
|
MPE.level = pi.strLevel;
|
||||||
MPE.InRegressionMode = true;
|
MPE.InRegressionMode = true;
|
||||||
MPE.HasTest = oursettings.HasReplay(puzzle_name);
|
MPE.HasTest = oursettings.HasReplay(puzzle_name);
|
||||||
if (selected == "" && !wasfinished) selected = shown_name; //Select the first unfinished puzzle
|
if (selected == "" && !wasfinished) selected = shown_name; //Select the first unfinished puzzle
|
||||||
|
@ -236,6 +236,7 @@ namespace EduNetworkBuilder
|
|||||||
public string PuzzleDescription;
|
public string PuzzleDescription;
|
||||||
public List<string> PuzzleTags = new List<string>();
|
public List<string> PuzzleTags = new List<string>();
|
||||||
public int Level=0;
|
public int Level=0;
|
||||||
|
public string strLevel { get { return "Level_" + Level; } }
|
||||||
public double SortOrder=0;
|
public double SortOrder=0;
|
||||||
public LanguageStrings NetMessage;
|
public LanguageStrings NetMessage;
|
||||||
public LanguageStrings NetTitle;
|
public LanguageStrings NetTitle;
|
||||||
|
Loading…
Reference in New Issue
Block a user