thargoid combat zones are called "AX" combat zones ingame
This commit is contained in:
@@ -110,13 +110,14 @@
|
||||
<Button x:Name="Low" Content="Low" Click="Low_Click"/>
|
||||
<Button x:Name="Med" Content="Med" Click="Med_Click"/>
|
||||
<Button x:Name="High" Content="High" Click="High_Click"/>
|
||||
<Button x:Name="VeryHigh" Content="Very High" Click="VeryHigh_Click" />
|
||||
</StackPanel>
|
||||
</Expander>
|
||||
<Expander Header="Type">
|
||||
<StackPanel Orientation="Vertical">
|
||||
<Button Content="Ground" x:Name="Ground" Click="Ground_Click"/>
|
||||
<Button Content="Ship" x:Name="Ship" Click="Ship_Click"/>
|
||||
<Button Content="Thargoid" x:Name="Thargoid" Click="Thargoid_Click"/>
|
||||
<Button Content="AX" x:Name="Thargoid" Click="Thargoid_Click"/>
|
||||
</StackPanel>
|
||||
</Expander>
|
||||
</StackPanel>
|
||||
|
||||
@@ -309,6 +309,16 @@ public partial class MainWindow : Window {
|
||||
RefreshView();
|
||||
}
|
||||
|
||||
private void VeryHigh_Click(object sender, RoutedEventArgs e) {
|
||||
CombatZone transaction = GetTransaction<CombatZone>(sender);
|
||||
if (transaction == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
transaction.Grade = CombatZones.DifficultyVeryHigh;
|
||||
RefreshView();
|
||||
}
|
||||
|
||||
private void Ground_Click(object sender, RoutedEventArgs e) {
|
||||
CombatZone transaction = GetTransaction<CombatZone>(sender);
|
||||
if (transaction == null) {
|
||||
@@ -335,7 +345,7 @@ public partial class MainWindow : Window {
|
||||
return;
|
||||
}
|
||||
|
||||
transaction.Type = CombatZones.ThargoidCombatZone;
|
||||
transaction.Type = CombatZones.AXCombatZone;
|
||||
RefreshView();
|
||||
}
|
||||
|
||||
|
||||
@@ -56,14 +56,14 @@ public class UITransaction {
|
||||
}
|
||||
}
|
||||
|
||||
public Visibility IsThargoidCombatZone {
|
||||
public Visibility IsAXCombatZone {
|
||||
get {
|
||||
CombatZone combat = Transaction as CombatZone;
|
||||
if (combat == null) {
|
||||
return Visibility.Hidden;
|
||||
}
|
||||
|
||||
if (string.Compare(combat.Type, CombatZones.ThargoidCombatZone) == 0) {
|
||||
if (string.Compare(combat.Type, CombatZones.AXCombatZone) == 0) {
|
||||
return Visibility.Visible;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user