-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSpriteExportDialog.axaml
More file actions
75 lines (63 loc) · 4.58 KB
/
SpriteExportDialog.axaml
File metadata and controls
75 lines (63 loc) · 4.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<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:local="using:ZXBasicStudio.DocumentEditors.ZXGraphics"
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="501"
Width="800" Height="501"
Icon="/Assets/zxbs.ico"
x:Class="ZXBasicStudio.DocumentEditors.ZXGraphics.SpriteExportDialog"
Title="Graphics build/export options" CanResize="False"
WindowStartupLocation="CenterOwner">
<Grid Name="grdExport" ColumnDefinitions="240,8,*" Margin="10" >
<StackPanel Orientation="Vertical">
<local:SelectExportTypeControl Name="cmbSelectExportType"/>
</StackPanel>
<Grid Name="grdOptions" Grid.Column="2" RowDefinitions="Auto,*,Auto">
<TextBlock Name="lblTitle" FontSize="18" FontWeight="Bold">Options</TextBlock>
<Border BorderBrush="Gray" BorderThickness="1" Grid.Row="1">
<ScrollViewer HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Visible">
<StackPanel Orientation="Vertical" Spacing="4" Margin="10">
<Grid ColumnDefinitions="180,*,Auto" RowDefinitions="Auto, Auto,Auto,Auto,Auto,Auto,Auto,Auto">
<TextBlock Name="lblBuild" Classes="dialog" VerticalAlignment="Center" HorizontalAlignment="Right">Enable build:</TextBlock>
<CheckBox Classes="dialog" Name="chkAuto" Grid.Column="1"></CheckBox>
<TextBlock Name="lblDataType" Classes="dialog" Grid.Row="1" VerticalAlignment="Center" HorizontalAlignment="Right">Data type:</TextBlock>
<ComboBox Name="cmbDataType" Classes="dialog" Grid.Row="1" Grid.Column="1" HorizontalAlignment="Left">
<ComboBoxItem>DIM (data as array)</ComboBoxItem>
<ComboBoxItem>ASM (DEFB inside ASM Block)</ComboBoxItem>
<ComboBoxItem>.BIN file (INCBIN "file.bin")</ComboBoxItem>
<ComboBoxItem>.TAP file (LOAD "" CODE)</ComboBoxItem>
</ComboBox>
<TextBlock Name="lblOutputFile" Grid.Row="2" Classes="dialog" VerticalAlignment="Center" HorizontalAlignment="Right">File path:</TextBlock>
<TextBox Name="txtOutputFile" Grid.Row="2" Classes="dialog" Grid.Column="1" MaxWidth="Infinity"></TextBox>
<Button Name="btnOutputFile" Grid.Row="2" Classes="dialog" Grid.Column="2" VerticalAlignment="Center">...</Button>
<TextBlock Name="lblLabelName" Classes="dialog" Grid.Row="3" VerticalAlignment="Center" HorizontalAlignment="Right">Var prefix:</TextBlock>
<TextBox Name="txtLabelName" Classes="dialog" Grid.Row="3" Grid.Column="1" MaxLength="64" Width="100" HorizontalAlignment="Left"></TextBox>
<TextBlock Name="lblArrayBase" Classes="dialog" Grid.Row="4" VerticalAlignment="Center" HorizontalAlignment="Right">Array base:</TextBlock>
<ComboBox Name="cmbArrayBase" Classes="dialog" Grid.Row="4" Grid.Column="1" HorizontalAlignment="Left">
<ComboBoxItem>0 (default)</ComboBoxItem>
<ComboBoxItem>1</ComboBoxItem>
<ComboBoxItem>From project settings</ComboBoxItem>
</ComboBox>
<TextBlock Name="lblAttr" Grid.Row="5" Classes="dialog" VerticalAlignment="Center" HorizontalAlignment="Right">Export attributes</TextBlock>
<CheckBox Name="chkAttr" Grid.Row="5" Grid.Column="1" Classes="dialog"></CheckBox>
</Grid>
<TextBlock Name="txtError" FontSize="14" Foreground="Red" Margin="0,16,0,16" TextWrapping="Wrap" IsVisible="False">
You have not selected any sprite to export. Check the "Include in the export" box of the sprites you want to include in the export.
</TextBlock>
<TextBlock FontSize="14" Margin="0,16,0,0">
Example of usage
</TextBlock>
<TextBox Name="txtCode" AcceptsReturn="true" AcceptsTab="True" IsReadOnly="True" />
<Button Name="btnCopy" Classes="dialog" HorizontalAlignment="Right" Width="150">Copy sample to clipboard</Button>
</StackPanel>
</ScrollViewer>
</Border>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Grid.Row="2" Margin="8">
<Button Name="btnCancel" Classes="dialog">Close</Button>
<Button Name="btnExport" Classes="dialog">Export now</Button>
<Button Name="btnSave" Classes="dialog">Save options</Button>
</StackPanel>
</Grid>
</Grid>
</Window>