add checkboxes to enable/disable objectives
This commit is contained in:
@@ -197,6 +197,10 @@ namespace EliteBGS.BGS {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!objective.IsEnabled) {
|
||||
continue;
|
||||
}
|
||||
|
||||
log.AppendFormat("**Date:** {0}\n", FormatDate());
|
||||
log.AppendFormat("**Location:** {0}\n", objective.ToShortString());
|
||||
log.AppendFormat("**Faction:** {0}\n", objective.Faction);
|
||||
|
||||
@@ -32,5 +32,7 @@ namespace EliteBGS.BGS {
|
||||
public virtual int CompareTo(LogEntry other) {
|
||||
throw new NotImplementedException("not implemented");
|
||||
}
|
||||
|
||||
public string Name => this.ToString();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -196,6 +196,10 @@ namespace EliteBGS.BGS {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!objective.IsEnabled) {
|
||||
continue;
|
||||
}
|
||||
|
||||
log.AppendFormat(":globe_with_meridians: `Location:` {0}\n", objective.ToShortString());
|
||||
log.Append(":clipboard: `Conducted:`\n");
|
||||
log.Append("```\n");
|
||||
|
||||
@@ -11,11 +11,26 @@ namespace EliteBGS.BGS {
|
||||
|
||||
private List<LogEntry> entries = new List<LogEntry>();
|
||||
|
||||
[JsonIgnore]
|
||||
public bool IsEnabled { get; set; }
|
||||
|
||||
[JsonIgnore]
|
||||
public List<LogEntry> Children {
|
||||
get => entries;
|
||||
}
|
||||
|
||||
[JsonIgnore]
|
||||
public string Name => this.ToString();
|
||||
|
||||
[JsonIgnore]
|
||||
public bool IsExpanded { get; set; }
|
||||
|
||||
[JsonIgnore]
|
||||
public List<LogEntry> LogEntries {
|
||||
get => entries;
|
||||
set => entries = value;
|
||||
}
|
||||
|
||||
public void Clear() {
|
||||
if (entries == null) {
|
||||
return;
|
||||
@@ -23,6 +38,8 @@ namespace EliteBGS.BGS {
|
||||
entries.RemoveAll(x => !x.ManuallyAdded);
|
||||
}
|
||||
|
||||
public bool ManuallyAdded { get; set; }
|
||||
|
||||
public int Matches(LogEntry e) {
|
||||
int match_count = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user