Files
@ 6a6817b17a06
Branch filter:
Location: ATITD-Tools/Desert-Paint-Codex/Views/MessageBoxView.axaml - annotation
6a6817b17a06
1.9 KiB
text/plain
Simulator view updates: new warning when the recipe is below minimum concentration. Add the missing reactions to the warning about missing reactions. Show the current saved recipe for a color, and allow replacing/saving the current simulated recipe as the recipe for that color.
40eaee10ae56 40eaee10ae56 40eaee10ae56 40eaee10ae56 40eaee10ae56 99f3d61e20d7 40eaee10ae56 40eaee10ae56 40eaee10ae56 40eaee10ae56 40eaee10ae56 40eaee10ae56 40eaee10ae56 40eaee10ae56 40eaee10ae56 40eaee10ae56 40eaee10ae56 40eaee10ae56 40eaee10ae56 40eaee10ae56 40eaee10ae56 40eaee10ae56 40eaee10ae56 40eaee10ae56 40eaee10ae56 40eaee10ae56 40eaee10ae56 40eaee10ae56 40eaee10ae56 40eaee10ae56 40eaee10ae56 40eaee10ae56 40eaee10ae56 40eaee10ae56 40eaee10ae56 40eaee10ae56 40eaee10ae56 40eaee10ae56 40eaee10ae56 | <Window 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="clr-namespace:DesertPaintCodex.ViewModels"
Width="300" SizeToContent="Height" Topmost="True"
mc:Ignorable="d" d:DesignWidth="300" d:DesignHeight="200"
WindowStartupLocation="CenterOwner"
x:Class="DesertPaintCodex.Views.MessageBoxView">
<Design.DataContext>
<vm:MessageBoxViewModel />
</Design.DataContext>
<DockPanel Margin="20" HorizontalAlignment="Stretch">
<TextBlock DockPanel.Dock="Top" Classes="BlockHeader" TextWrapping="Wrap" Text="{Binding Title}" Margin="0, 0, 0, 15" />
<StackPanel DockPanel.Dock="Bottom" Orientation="Horizontal" HorizontalAlignment="Center" Spacing="15" Margin="0, 20, 0, 0">
<Button Command="{Binding PickOption}" CommandParameter="0"
IsVisible="{Binding OptionAText, Converter={x:Static StringConverters.IsNotNullOrEmpty}}"
Padding="20, 5">
<TextBlock Text="{Binding OptionAText}"/>
</Button>
<Button Command="{Binding PickOption}" CommandParameter="1"
IsVisible="{Binding OptionBText, Converter={x:Static StringConverters.IsNotNullOrEmpty}}"
Padding="20, 5">
<TextBlock Text="{Binding OptionBText}"/>
</Button>
<Button Command="{Binding PickOption}" CommandParameter="2"
IsVisible="{Binding OptionCText, Converter={x:Static StringConverters.IsNotNullOrEmpty}}"
Padding="20, 5">
<TextBlock Text="{Binding OptionCText}"/>
</Button>
</StackPanel>
<TextBlock TextWrapping="Wrap" Text="{Binding Message}" />
</DockPanel>
</Window>
|