-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMainWindow.xaml
More file actions
205 lines (190 loc) · 15 KB
/
MainWindow.xaml
File metadata and controls
205 lines (190 loc) · 15 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
<Window x:Class="RM2ExCoop.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:RM2ExCoop"
mc:Ignorable="d"
Title="RM2ExCoop 0.3"
Width="615"
MinWidth="615"
Height="700"
MinHeight="700"
WindowStartupLocation="CenterScreen" Icon="/icon.png">
<Border>
<Grid Margin="10">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="300" />
<ColumnDefinition Width="280" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="482" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<GroupBox Grid.ColumnSpan="2" Grid.Row="1" Header="Logs" Padding="10">
<RichTextBox x:Name="LogsBox" IsReadOnly="True" VerticalScrollBarVisibility="Visible" FontFamily="Consolas">
<RichTextBox.Resources>
<Style TargetType="{x:Type Paragraph}">
<Setter Property="Margin" Value="0" />
</Style>
</RichTextBox.Resources>
<FlowDocument x:Name="LogsDocument">
</FlowDocument>
</RichTextBox>
</GroupBox>
<GroupBox Grid.Column="0" Grid.Row="0" Header="RM2C" Padding="10">
<StackPanel Orientation="Vertical">
<StackPanel Orientation="Horizontal" Margin="0 0 0 10">
<Button x:Name="OpenRomBtn" Click="OpenRomBtn_Click" Content="Open ROM" Height="30" Padding="10 0" />
<TextBlock x:Name="RomPathText" Text="No ROM selected" VerticalAlignment="Center" Margin="10 0 0 0" />
</StackPanel>
<Grid Margin="0 0 0 10">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<RadioButton GroupName="EditorType" Content="ROM Manager" IsChecked="True" />
<RadioButton GroupName="EditorType" Grid.Column="1" x:Name="EditorCheck" Content="SM64 Editor" IsChecked="False" />
</Grid>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="103" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="20" />
<RowDefinition Height="20" />
<RowDefinition Height="20" />
<RowDefinition Height="20" />
</Grid.RowDefinitions>
<CheckBox Grid.Row="0" Grid.Column="0" x:Name="ExportTextCheck" Content="Export Text" IsChecked="True" />
<CheckBox Grid.Row="0" Grid.Column="1" x:Name="ExportMiscCheck" Content="Export Misc" IsChecked="True" />
<CheckBox Grid.Row="1" Grid.Column="0" x:Name="ExportActorsCheck" Content="Export Actors" IsChecked="False" />
<CheckBox Grid.Row="1" Grid.Column="1" x:Name="ExportSegment2Check" Content="Export Textures (Segment2)" IsChecked="True" />
<CheckBox Grid.Row="2" Grid.Column="0" x:Name="ExportObjectsCheck" Content="Export Objects" IsChecked="False" />
<CheckBox Grid.Row="2" Grid.Column="1" x:Name="ExportSkyboxesCheck" Content="Export Skyboxes" IsChecked="False" />
<CheckBox Grid.Row="3" Grid.Column="0" x:Name="ExportMusicsCheck" Content="Export Musics" IsChecked="True" />
<DockPanel Grid.Row="3" Grid.Column="1">
<TextBlock DockPanel.Dock="Left" Text="Music Extend :" Margin="0 0 10 0" />
<TextBox x:Name="MusicExtendInput" Text="0" />
</DockPanel>
</Grid>
<GroupBox Header="Levels" Padding="10">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="25" />
<RowDefinition Height="*" />
<RowDefinition Height="*" />
<RowDefinition Height="*" />
<RowDefinition Height="*" />
<RowDefinition Height="*" />
<RowDefinition Height="10" />
<RowDefinition Height="*" />
<RowDefinition Height="10" />
<RowDefinition Height="*" />
<RowDefinition Height="*" />
<RowDefinition Height="*" />
<RowDefinition Height="*" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<CheckBox x:Name="AllLevelsCheck" Content="All" IsChecked="True" Checked="AllLevelsCheck_Checked" Unchecked="AllLevelsCheck_Unchecked" VerticalAlignment="Center" />
<Button Grid.Column="1" x:Name="CheckAllLevelsBtn" IsEnabled="False" Click="CheckAllLevelsBtn_Click" Width="70" Height="20" Content="Select All" />
<Button Grid.Column="2" x:Name="UncheckAllLevelsBtn" IsEnabled="False" Click="UncheckAllLevelsBtn_Click" Width="70" Height="20" Content="Unselect All" />
<CheckBox Grid.Row="1" Grid.Column="0" x:Name="BobCheck" IsEnabled="False" Content="BOB" IsChecked="True" VerticalAlignment="Center" />
<CheckBox Grid.Row="1" Grid.Column="1" x:Name="WfCheck" IsEnabled="False" Content="WF" IsChecked="True" VerticalAlignment="Center" />
<CheckBox Grid.Row="1" Grid.Column="2" x:Name="JrbCheck" IsEnabled="False" Content="JRB" IsChecked="True" VerticalAlignment="Center" />
<CheckBox Grid.Row="2" Grid.Column="0" x:Name="CcmCheck" IsEnabled="False" Content="CCM" IsChecked="True" VerticalAlignment="Center" />
<CheckBox Grid.Row="2" Grid.Column="1" x:Name="BbhCheck" IsEnabled="False" Content="BBH" IsChecked="True" VerticalAlignment="Center" />
<CheckBox Grid.Row="2" Grid.Column="2" x:Name="HmcCheck" IsEnabled="False" Content="HMC" IsChecked="True" VerticalAlignment="Center" />
<CheckBox Grid.Row="3" Grid.Column="0" x:Name="LllCheck" IsEnabled="False" Content="LLL" IsChecked="True" VerticalAlignment="Center" />
<CheckBox Grid.Row="3" Grid.Column="1" x:Name="SslCheck" IsEnabled="False" Content="SSL" IsChecked="True" VerticalAlignment="Center" />
<CheckBox Grid.Row="3" Grid.Column="2" x:Name="DddCheck" IsEnabled="False" Content="DDD" IsChecked="True" VerticalAlignment="Center" />
<CheckBox Grid.Row="4" Grid.Column="0" x:Name="SlCheck" IsEnabled="False" Content="SL" IsChecked="True" VerticalAlignment="Center" />
<CheckBox Grid.Row="4" Grid.Column="1" x:Name="WdwCheck" IsEnabled="False" Content="WDW" IsChecked="True" VerticalAlignment="Center" />
<CheckBox Grid.Row="4" Grid.Column="2" x:Name="TtmCheck" IsEnabled="False" Content="TTM" IsChecked="True" VerticalAlignment="Center" />
<CheckBox Grid.Row="5" Grid.Column="0" x:Name="ThiCheck" IsEnabled="False" Content="THI" IsChecked="True" VerticalAlignment="Center" />
<CheckBox Grid.Row="5" Grid.Column="1" x:Name="TtcCheck" IsEnabled="False" Content="TTC" IsChecked="True" VerticalAlignment="Center" />
<CheckBox Grid.Row="5" Grid.Column="2" x:Name="RrCheck" IsEnabled="False" Content="RR" IsChecked="True" VerticalAlignment="Center" />
<CheckBox Grid.Row="7" Grid.Column="0" x:Name="CastGroundsCheck" IsEnabled="False" Content="C. Grounds" IsChecked="True" VerticalAlignment="Center" />
<CheckBox Grid.Row="7" Grid.Column="1" x:Name="CastInsideCheck" IsEnabled="False" Content="C. Inside" IsChecked="True" VerticalAlignment="Center" />
<CheckBox Grid.Row="7" Grid.Column="2" x:Name="CastCourtyardCheck" IsEnabled="False" Content="Courtyard" IsChecked="True" VerticalAlignment="Center" />
<CheckBox Grid.Row="10" Grid.Column="0" x:Name="TotwcCheck" IsEnabled="False" Content="TotWC" IsChecked="True" VerticalAlignment="Center" />
<CheckBox Grid.Row="10" Grid.Column="1" x:Name="VcutmCheck" IsEnabled="False" Content="VCutM" IsChecked="True" VerticalAlignment="Center" />
<CheckBox Grid.Row="10" Grid.Column="2" x:Name="CotmcCheck" IsEnabled="False" Content="CotMC" IsChecked="True" VerticalAlignment="Center" />
<CheckBox Grid.Row="11" Grid.Column="0" x:Name="PssCheck" IsEnabled="False" Content="PSS" IsChecked="True" VerticalAlignment="Center" />
<CheckBox Grid.Row="11" Grid.Column="1" x:Name="TsaCheck" IsEnabled="False" Content="TSA" IsChecked="True" VerticalAlignment="Center" />
<CheckBox Grid.Row="11" Grid.Column="2" x:Name="WmotrCheck" IsEnabled="False" Content="WMotR" IsChecked="True" VerticalAlignment="Center" />
<CheckBox Grid.Row="12" Grid.Column="0" x:Name="BitdwCheck" IsEnabled="False" Content="BitDW" IsChecked="True" VerticalAlignment="Center" />
<CheckBox Grid.Row="12" Grid.Column="1" x:Name="BitfsCheck" IsEnabled="False" Content="BitFS" IsChecked="True" VerticalAlignment="Center" />
<CheckBox Grid.Row="12" Grid.Column="2" x:Name="BitsCheck" IsEnabled="False" Content="BitS" IsChecked="True" VerticalAlignment="Center" />
<CheckBox Grid.Row="13" Grid.Column="0" x:Name="Bow1Check" IsEnabled="False" Content="Bowser 1" IsChecked="True" VerticalAlignment="Center" />
<CheckBox Grid.Row="13" Grid.Column="1" x:Name="Bow2Check" IsEnabled="False" Content="Bowser 2" IsChecked="True" VerticalAlignment="Center" />
<CheckBox Grid.Row="13" Grid.Column="2" x:Name="Bow3Check" IsEnabled="False" Content="Bowser 3" IsChecked="True" VerticalAlignment="Center" />
</Grid>
</GroupBox>
<Button x:Name="RM2CBtn" Content="Run RM2C" IsEnabled="False" Click="RM2CBtn_Click" Height="50" Margin="0 10 0 0" />
</StackPanel>
</GroupBox>
<GroupBox Grid.Column="1" Header="C2ExCoop" Padding="10">
<StackPanel>
<StackPanel Orientation="Vertical">
<TextBlock Text="Mod name:" Margin="0 0 0 5" />
<TextBox x:Name="ModNameInput" Margin="0 5" Padding="5" />
</StackPanel>
<StackPanel Orientation="Vertical">
<TextBlock Text="Mod description:" Margin="0 5" />
<TextBox x:Name="ModDescInput" Margin="0 5" Padding="5" />
</StackPanel>
<CheckBox x:Name="CommentSOMCheck" Content="Comment 'gsSPSetOtherMode' lines" IsChecked="True" Margin="0 5" />
<CheckBox x:Name="RemoveFlagsCheck" Content="Remove flags of Castle Grounds" IsChecked="True" Margin="0 5" />
<CheckBox x:Name="RemovePaintingCheck" Content="Remove files that use PaintingData" IsChecked="True" Margin="0 5" />
<CheckBox x:Name="RemoveTrajectoriesCheck" Content="Remove Trajectory files" IsChecked="True" Margin="0 5" />
<CheckBox x:Name="TryFixFogCheck" Content="Try to fix Fog" IsChecked="True" Margin="0 5" />
<CheckBox x:Name="DontUseCameraSpecificCheck" Content="Don't use course-specific camera" IsChecked="True" Margin="0 5" />
<StackPanel Orientation="Horizontal">
<TextBlock Text="Entry level:" VerticalAlignment="Center" Margin="0 0 10 0" />
<ComboBox x:Name="EntryLevelSelect">
<ComboBoxItem Content="BBH" />
<ComboBoxItem Content="CCM" />
<ComboBoxItem Content="CASTLE" />
<ComboBoxItem Content="HMC" />
<ComboBoxItem Content="SSL" />
<ComboBoxItem Content="BOB" />
<ComboBoxItem Content="SL" />
<ComboBoxItem Content="WDW" />
<ComboBoxItem Content="JRB" />
<ComboBoxItem Content="THI" />
<ComboBoxItem Content="TTC" />
<ComboBoxItem Content="RR" />
<ComboBoxItem Content="CASTLE_GROUNDS" Selector.IsSelected="True" />
<ComboBoxItem Content="BITDW" />
<ComboBoxItem Content="VCUTM" />
<ComboBoxItem Content="BITFS" />
<ComboBoxItem Content="SA" />
<ComboBoxItem Content="BITS" />
<ComboBoxItem Content="LLL" />
<ComboBoxItem Content="DDD" />
<ComboBoxItem Content="WF" />
<ComboBoxItem Content="ENDING" />
<ComboBoxItem Content="CASTLE_COURTYARD" />
<ComboBoxItem Content="PSS" />
<ComboBoxItem Content="COTMC" />
<ComboBoxItem Content="TOTWC" />
<ComboBoxItem Content="BOWSER_1" />
<ComboBoxItem Content="WMOTR" />
<ComboBoxItem Content="BOWSER_2" />
<ComboBoxItem Content="BOWSER_3" />
<ComboBoxItem Content="TTM" />
</ComboBox>
</StackPanel>
<Button x:Name="C2ExCoopBtn" Content="Run C2ExCoop" Click="C2ExCoopBtn_Click" Height="50" Margin="0 5 0 0" />
</StackPanel>
</GroupBox>
</Grid>
</Border>
</Window>