forked from Viniixd/Remastered-AssetsEditor
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainWindow.xaml
More file actions
68 lines (68 loc) · 4.87 KB
/
MainWindow.xaml
File metadata and controls
68 lines (68 loc) · 4.87 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
<Window x:Class="Assets_Editor.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
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="clr-namespace:Assets_Editor"
mc:Ignorable="d"
Title="Assets Editor" Height="350" Width="600"
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
Style="{StaticResource MaterialDesignWindow}">
<Window.CommandBindings>
<CommandBinding Command="{x:Static local:EditorCommands.CopyFlags}" CanExecute="EditorCommands_DisabledCanExecute" Executed="EditorCommands_DisabledExecuted"/>
<CommandBinding Command="{x:Static local:EditorCommands.PasteFlags}" CanExecute="EditorCommands_DisabledCanExecute" Executed="EditorCommands_DisabledExecuted"/>
<CommandBinding Command="{x:Static local:EditorCommands.SaveItem}" CanExecute="EditorCommands_DisabledCanExecute" Executed="EditorCommands_DisabledExecuted"/>
<CommandBinding Command="{x:Static local:EditorCommands.ClearFlags}" CanExecute="EditorCommands_DisabledCanExecute" Executed="EditorCommands_DisabledExecuted"/>
<CommandBinding Command="{x:Static local:EditorCommands.DuplicateItem}" CanExecute="EditorCommands_DisabledCanExecute" Executed="EditorCommands_DisabledExecuted"/>
</Window.CommandBindings>
<Window.InputBindings>
<KeyBinding Command="{x:Static local:EditorCommands.CopyFlags}" Modifiers="Control" Key="C"/>
<KeyBinding Command="{x:Static local:EditorCommands.PasteFlags}" Modifiers="Control" Key="V"/>
<KeyBinding Command="{x:Static local:EditorCommands.SaveItem}" Modifiers="Control" Key="S"/>
<KeyBinding Command="{x:Static local:EditorCommands.ClearFlags}" Modifiers="Control" Key="G"/>
<KeyBinding Command="{x:Static local:EditorCommands.DuplicateItem}" Modifiers="Control" Key="D"/>
</Window.InputBindings>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="70"/>
<RowDefinition Height="50"/>
<RowDefinition Height="150"/>
<RowDefinition Height="50"/>
</Grid.RowDefinitions>
<StackPanel Orientation="Horizontal" Grid.Row="0" VerticalAlignment="Center" HorizontalAlignment="Center">
<Label Content="Assets Folder:" VerticalAlignment="Center" Width="100"/>
<TextBox x:Name="AssetsPath" VerticalAlignment="Center" Width="330" IsEnabled="False"/>
<Button Style="{StaticResource MaterialDesignIconButton}" materialDesign:RippleAssist.IsDisabled="True" VerticalAlignment="Top" Height="55" Width="55" Click="SelectAssetsFolder">
<materialDesign:PackIcon Kind="CardSearch" Height="40" Width="40" />
</Button>
</StackPanel>
<StackPanel Orientation="Horizontal" Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Center">
<Label Content="Saved Setting:" Width="100"/>
<ComboBox x:Name="A_SavedVersion" Width="120" BorderThickness="1,1,1,1" SelectedIndex="0" Padding="6,1,5,3" IsReadOnly="True" VerticalAlignment="Top" SelectionChanged="A_SavedVersion_SelectionChanged"/>
</StackPanel>
<StackPanel Orientation="Horizontal" Grid.Row="2" HorizontalAlignment="Center">
<StackPanel HorizontalAlignment="Left" >
<Label Content="Objects:"/>
<Label Content="Outfits:"/>
<Label Content="Effects:"/>
<Label Content="Missiles:"/>
<CheckBox x:Name="SprTransparent" Content="Transparent" Visibility="Hidden" Checked="SprTransparent_Changed" Unchecked="SprTransparent_Changed"></CheckBox>
<ComboBox x:Name="A_ClientVersion" Width="80" BorderThickness="1,1,1,1" SelectedIndex="1" Padding="6,1,5,3" IsReadOnly="True" Visibility="Hidden" SelectionChanged="A_ClientVersion_SelectionChanged"/>
</StackPanel>
<StackPanel HorizontalAlignment="Left">
<Label x:Name="ObjectsCount"/>
<Label x:Name="OutfitsCount"/>
<Label x:Name="EffectsCount"/>
<Label x:Name="MissilesCount"/>
</StackPanel>
</StackPanel>
<Button Grid.Row="3" x:Name="LoadAssets" HorizontalAlignment="Center" VerticalAlignment="Top" IsEnabled="False" Click="LoadAssets_Click">
<Button.Content>
<StackPanel>
<TextBlock Text="Load Assets" HorizontalAlignment="Center"/>
<ProgressBar x:Name="LoadProgress" Minimum="0" Maximum="100" Value="0" Width="200" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="-10,0,-10,0" Height="8" />
</StackPanel>
</Button.Content>
</Button>
</Grid>
</Window>