sa/Stars Assistant/Views/BuColView.axaml

57 lines
3.0 KiB
XML

<UserControl xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:vm="using:StarsAssistant.ViewModels"
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="200"
x:Class="StarsAssistant.Views.BuColView"
x:DataType="vm:BuColViewModel">
<DataGrid x:Name="PlanetsGrid"
ItemsSource="{Binding PlayerPlanets}"
GridLinesVisibility="All"
FrozenColumnCount="1"
BorderThickness="1" BorderBrush="Gray">
<DataGrid.Columns>
<DataGridTextColumn Header="Planet" Binding="{Binding Name}" />
<!-- Class -->
<!-- Info -->
<DataGridTextColumn Header="Pop" Binding="{Binding Population}" />
<DataGridTextColumn Header="Pop to Ship" Binding="{Binding PopulationToShip}" />
<DataGridTextColumn Header="Growth" Binding="{Binding PopulationGrowth}" />
<DataGridTextColumn Header="Pop T1" Binding="{Binding PopulationEnRoute}" />
<DataGridTextColumn Header="Pop T%" Binding="{Binding PopulationTargetPercent}" IsReadOnly="false"/>
<DataGridTextColumn Header="Pop %" Binding="{Binding CapacityPercent}" />
<!-- Terra Delta assumed -->
<DataGridTextColumn Header="Value" Binding="{Binding Value}" />
<!-- Effective Value including Terra Delta -->
<DataGridTextColumn Header="Max Val" Binding="{Binding MaxTerraforming}" />
<!-- Cargo Cap T1 -->
<!-- Cargo Cap T0 -->
<!-- Iro MRE including Shipping -->
<DataGridTextColumn Header="Iro Avl" Binding="{Binding AvailableIronium}" />
<!-- Iro Shipping including MRE -->
<!-- Bor MRE including Shipping -->
<DataGridTextColumn Header="Bor Avl" Binding="{Binding AvailableBoranium}" />
<!-- Bor Shipping including MRE -->
<!-- Ger MRE including Shipping -->
<DataGridTextColumn Header="Ger Avl" Binding="{Binding AvailableGermanium}" />
<!-- Bor Shipping including MRE -->
<!-- Shipbuilding Columns -->
<DataGridTextColumn Header="Fact Rem" Binding="{Binding RemainingFactories}" />
<DataGridTextColumn Header="Fact Tgt" Binding="{Binding TargetFactories}" />
<DataGridTextColumn Header="Fact Ger Delta" Binding="{Binding FactoryGermaniumDelta}" />
<!-- Factory production per turn -->
<DataGridTextColumn Header="Mines Rem" Binding="{Binding RemainingMines}" />
<DataGridTextColumn Header="Mines" Binding="{Binding Mines}" />
<DataGridTextColumn Header="Fact" Binding="{Binding Factories}" />
<DataGridTextColumn Header="Res" Binding="{Binding Resources}" />
<!-- Overcrowding Rate -->
<DataGridTextColumn Header="Pop Tgt" Binding="{Binding PopulationTarget}" />
</DataGrid.Columns>
</DataGrid>
</UserControl>