Files
@ dd8780bb11c5
Branch filter:
Location: ATITD-Tools/Desert-Paint-Codex/Views/MessageBoxView.axaml - annotation
dd8780bb11c5
1.9 KiB
text/plain
Correct an error when computing the clipped value on white shifts. It was incorrectly detecting a white shift on single-color clips, resulting in a bad reaction computation. Also don't display the wrong 'observed' color after clearing a reaction.
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>
|