implement ignore fleet carrier faction into UI
This commit is contained in:
parent
12b15bb910
commit
c9e87958ae
@ -213,9 +213,9 @@
|
|||||||
<ColumnDefinition Width="*"/>
|
<ColumnDefinition Width="*"/>
|
||||||
<ColumnDefinition Width="Auto"/>
|
<ColumnDefinition Width="Auto"/>
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
<mah:ToggleSwitch x:Name="NoInfluenceSupport" Grid.Row="1" Grid.ColumnSpan="2" Content="Ignore secondary influence support given out by certain missions" Toggled="NoInfluenceSupport_Toggled"/>
|
<mah:ToggleSwitch x:Name="NoInfluenceSupport" Grid.Row="0" Grid.ColumnSpan="2" Content="Ignore secondary influence support given out by certain missions" Toggled="NoInfluenceSupport_Toggled"/>
|
||||||
<mah:ToggleSwitch x:Name="NoMarketBuy" Grid.Row="2" Grid.ColumnSpan="2" Content="Ignore commodities bought at stations" Toggled="NoMarketBuy_Toggled"/>
|
<mah:ToggleSwitch x:Name="NoMarketBuy" Grid.Row="1" Grid.ColumnSpan="2" Content="Ignore commodities bought at stations" Toggled="NoMarketBuy_Toggled"/>
|
||||||
|
<mah:ToggleSwitch x:Name="NoFleetCarrier" Grid.Row="2" Grid.ColumnSpan="2" Content="Ignore transactions done on a Fleet Carrier" Toggled="NoFleetCarrier_Toggled" />
|
||||||
</Grid>
|
</Grid>
|
||||||
</GroupBox>
|
</GroupBox>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
@ -60,6 +60,7 @@ public partial class MainWindow : MetroWindow {
|
|||||||
|
|
||||||
this.NoInfluenceSupport.IsOn = Config.Global.IgnoreInfluenceSupport;
|
this.NoInfluenceSupport.IsOn = Config.Global.IgnoreInfluenceSupport;
|
||||||
this.NoMarketBuy.IsOn = Config.Global.IgnoreMarketBuy;
|
this.NoMarketBuy.IsOn = Config.Global.IgnoreMarketBuy;
|
||||||
|
this.NoFleetCarrier.IsOn = Config.Global.IgnoreFleetCarrier;
|
||||||
|
|
||||||
// Apply theme
|
// Apply theme
|
||||||
try {
|
try {
|
||||||
@ -173,6 +174,7 @@ public partial class MainWindow : MetroWindow {
|
|||||||
|
|
||||||
options.IgnoreInfluenceSupport = Config.Global.IgnoreInfluenceSupport;
|
options.IgnoreInfluenceSupport = Config.Global.IgnoreInfluenceSupport;
|
||||||
options.IgnoreMarketBuy = Config.Global.IgnoreMarketBuy;
|
options.IgnoreMarketBuy = Config.Global.IgnoreMarketBuy;
|
||||||
|
options.IgnoreFleetCarrierFaction = Config.Global.IgnoreFleetCarrier;
|
||||||
|
|
||||||
List<Transaction> transactions = parser.Parse(entries, options);
|
List<Transaction> transactions = parser.Parse(entries, options);
|
||||||
|
|
||||||
@ -536,4 +538,8 @@ public partial class MainWindow : MetroWindow {
|
|||||||
private void NoMarketBuy_Toggled(object sender, RoutedEventArgs e) {
|
private void NoMarketBuy_Toggled(object sender, RoutedEventArgs e) {
|
||||||
Config.Global.IgnoreMarketBuy = this.NoMarketBuy.IsOn;
|
Config.Global.IgnoreMarketBuy = this.NoMarketBuy.IsOn;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void NoFleetCarrier_Toggled(object sender, RoutedEventArgs e) {
|
||||||
|
Config.Global.IgnoreFleetCarrier = this.NoFleetCarrier.IsOn;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -58,6 +58,11 @@ namespace EliteBGS.Util {
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public bool IgnoreMarketBuy { get; set; } = false;
|
public bool IgnoreMarketBuy { get; set; } = false;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Whether to ignore fleet carrier stuff when parsing.
|
||||||
|
/// </summary>
|
||||||
|
public bool IgnoreFleetCarrier { get; set; } = true;
|
||||||
|
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
public string FullTheme {
|
public string FullTheme {
|
||||||
get { return Theme + "." + Colour; }
|
get { return Theme + "." + Colour; }
|
||||||
|
Loading…
Reference in New Issue
Block a user