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