-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathMainWindow.xaml
210 lines (173 loc) · 14.8 KB
/
MainWindow.xaml
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
206
207
208
209
210
<Window x:Class="BotwTrainer.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
mc:Ignorable="d"
Title="BOTW Trainer (PAL 1.1)" Height="700" Width="1020" ResizeMode="CanMinimize">
<Grid Margin="10" Width="980">
<Grid.RowDefinitions>
<RowDefinition Height="50" />
<RowDefinition Height="*"/>
<RowDefinition Height="40"/>
<RowDefinition Height="15"/>
</Grid.RowDefinitions>
<Canvas Grid.Row="0" Margin="0">
<TextBox x:Name="IpAddress" HorizontalAlignment="Left" Height="21" TextWrapping="Wrap" Text="" VerticalAlignment="Top" Width="100" Canvas.Left="14" Canvas.Top="13" Visibility="Visible"/>
<Button x:Name="Connect" Content="Connect" HorizontalAlignment="Left" VerticalAlignment="Top" Width="75" Click="ConnectClick" Canvas.Left="140" Canvas.Top="13" />
<Button x:Name="Disconnect" Content="Disconnect" HorizontalAlignment="Left" VerticalAlignment="Top" Width="90" Click="DisconnectClick" IsEnabled="False" Canvas.Left="140" Canvas.Top="13" Visibility="Hidden"/>
<Button x:Name="Load" Content="Load Data" HorizontalAlignment="Left" Margin="0,0,0,0" VerticalAlignment="Top" Width="75" Click="LoadClick" Canvas.Left="250" Canvas.Top="13" IsEnabled="False" />
<Label x:Name="Info" Content="As items move around it is best to refresh to get the latest data before you try to save anything." Canvas.Right="10" Canvas.Top="14" HorizontalContentAlignment="Right"/>
</Canvas>
<TabControl x:Name="TabControl" HorizontalAlignment="Left" Height="530" VerticalAlignment="Top" IsEnabled="False" Grid.Row="1" SelectedIndex="0" Width="980" SelectionChanged="TabControlSelectionChanged">
<TabItem Header="Weapons" x:Name="Weapons" Margin="0,0,0,0" Background="CadetBlue"/>
<TabItem Header="Bows" x:Name="Bows" Margin="0,0,0,0" Background="CadetBlue"/>
<TabItem Header="Shields" x:Name="Shields" Margin="0,0,0,0" Background="CadetBlue"/>
<TabItem Header="Armour" x:Name="Armour" Margin="0,0,0,0" Background="CadetBlue"/>
<TabItem Header="Arrows" x:Name="Arrows" Margin="0,0,0,0" Background="PaleVioletRed"/>
<TabItem Header="Materials" x:Name="Materials" Margin="0,0,0,0" Background="PaleVioletRed"/>
<TabItem Header="Food" x:Name="Food" Margin="0,0,0,0" Background="PaleVioletRed"/>
<TabItem Header="Key Items" x:Name="KeyItems" Margin="0,0,0,0" Background="PaleVioletRed"/>
<TabItem Header="Codes" x:Name="Codes" Margin="0,0,0,0" Background="PaleVioletRed">
<Canvas>
<Label Content="To enable these codes check the box and click save." Height="30" Margin="0" Canvas.Left="50" Canvas.Top="24" FontSize="14" Width="642"/>
<Label Content="Current address/values printed to the right. These are for EUR so may not work on US." Height="30" Margin="0" Canvas.Left="50" Canvas.Top="54"/>
<Label Content="Stamina" Height="26" Margin="0" Canvas.Left="50" Canvas.Top="94"/>
<CheckBox x:Name="Stamina" Margin="0" Canvas.Left="160" Canvas.Top="100"/>
<TextBox x:Name="CurrentStamina" Height="25" Width="90" Margin="0" Canvas.Left="200" Canvas.Top="94" CharacterCasing="Upper" MaxLength="8"></TextBox>
<Label x:Name="StaminaData" Content="StaminaData" Height="25" Margin="0" Canvas.Left="315" Canvas.Top="94"/>
<Label Content="Health (Max 78)" Height="26" Margin="0" Canvas.Left="50" Canvas.Top="124"/>
<CheckBox x:Name="Health" Margin="0" Canvas.Left="160" Canvas.Top="130" />
<TextBox x:Name="CurrentHealth" Height="25" Width="30" Margin="0" Canvas.Left="200" Canvas.Top="124" PreviewTextInput="NumberValidationTextBox"></TextBox>
<Label x:Name="HealthData" Content="HealthData" Height="25" Margin="0" Canvas.Left="315" Canvas.Top="124"/>
<Label Content="Rupees" Height="26" Margin="0" Canvas.Left="50" Canvas.Top="154"></Label>
<CheckBox x:Name="Rupees" Margin="0" Canvas.Left="160" Canvas.Top="160" />
<TextBox x:Name="CurrentRupees" Height="25" Width="90" Margin="0" Canvas.Left="200" Canvas.Top="155" PreviewTextInput="NumberValidationTextBox"></TextBox>
<Label x:Name="RupeeData" Content="RupeeData" Height="25" Margin="0" Canvas.Left="315" Canvas.Top="155"/>
<Label Content="Always Run" Height="26" Margin="0" Canvas.Left="50" Canvas.Top="184"></Label>
<CheckBox x:Name="Run" Margin="0" Canvas.Left="160" Canvas.Top="190" />
<Label x:Name="RunData" Content="RunData" Height="25" Margin="0" Canvas.Left="280" Canvas.Top="144" Visibility="Hidden"/>
<Label Content="Speed" Height="26" Margin="0" Canvas.Left="50" Canvas.Top="214"/>
<CheckBox x:Name="Speed" Margin="0" Canvas.Left="160" Canvas.Top="220"/>
<TextBox x:Name="CurrentSpeed" Height="25" Width="90" Margin="0" Canvas.Left="200" Canvas.Top="214" CharacterCasing="Upper" MaxLength="8"/>
<Label x:Name="SpeedData" Content="SpeedData" Height="25" Margin="0" Canvas.Left="315" Canvas.Top="214"/>
<Label Content="Moon Jump" Height="26" Canvas.Left="50" Canvas.Top="244"></Label>
<CheckBox x:Name="MoonJump" Margin="0" Canvas.Left="160" Canvas.Top="250" />
<ComboBox x:Name="Controller" Canvas.Left="200" Canvas.Top="246" Width="90" SelectedIndex="0">
<ComboBoxItem Name="Pro" Content="Pro"></ComboBoxItem>
<ComboBoxItem Name="Gamepad" Content="Gamepad"></ComboBoxItem>
</ComboBox>
<Label Content="Weapon Slots" Height="26" Margin="0" Canvas.Left="50" Canvas.Top="274"></Label>
<CheckBox x:Name="WeaponSlots" Margin="0" Canvas.Left="160" Canvas.Top="280" />
<TextBox x:Name="CurrentWeaponSlots" Height="25" Width="30" Margin="0" Canvas.Left="200" Canvas.Top="275" PreviewTextInput="NumberValidationTextBox"/>
<Label x:Name="WeaponSlotsData" Content="WeaponSlotsData" Height="25" Margin="0" Canvas.Left="315" Canvas.Top="275"/>
<Label Content="Bow Slots" Height="26" Margin="0" Canvas.Left="50" Canvas.Top="304"/>
<CheckBox x:Name="BowSlots" Margin="0" Canvas.Left="160" Canvas.Top="310" />
<TextBox x:Name="CurrentBowSlots" Height="25" Width="30" Margin="0" Canvas.Left="200" Canvas.Top="305" PreviewTextInput="NumberValidationTextBox"/>
<Label x:Name="BowSlotsData" Content="BowSlotsData" Height="25" Margin="0" Canvas.Left="315" Canvas.Top="305"/>
<Label Content="Shield Slots" Height="26" Margin="0" Canvas.Left="50" Canvas.Top="334"/>
<CheckBox x:Name="ShieldSlots" Margin="0" Canvas.Left="160" Canvas.Top="340" />
<TextBox x:Name="CurrentShieldSlots" Height="25" Width="30" Margin="0" Canvas.Left="200" Canvas.Top="335" PreviewTextInput="NumberValidationTextBox"/>
<Label x:Name="ShieldSlotsData" Content="ShieldSlotsData" Height="25" Margin="0" Canvas.Left="315" Canvas.Top="335"/>
</Canvas>
</TabItem>
<TabItem Header="Debug" x:Name="Debug" Margin="0,0,0,0" Background="SeaGreen">
<WrapPanel Margin="0">
<Button x:Name="Export" Content="Export" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" Width="75" Click="ExportClick" />
<DataGrid x:Name="DebugGrid" AutoGenerateColumns="False" Margin="10,10,0,0" ClipboardCopyMode="IncludeHeader" Width="920" Height="450">
<DataGrid.Columns>
<DataGridTextColumn Header="Name" Width="180" Binding="{Binding Name}"/>
<DataGridTextColumn Header="Address" Width="80" Binding="{Binding BaseAddressHex, Mode=OneWay}"/>
<DataGridTextColumn Header="Type" Width="80" Binding="{Binding PageName, Mode=OneWay}"/>
<DataGridTextColumn Header="Value" Width="70" Binding="{Binding Value}"/>
<DataGridCheckBoxColumn Header="Equipped" Width="50" Binding="{Binding EquippedBool, Mode=OneWay}" IsReadOnly="True"/>
<DataGridTextColumn Header="?" Width="30" Binding="{Binding Unknown}"/>
<DataGridTextColumn Header="Modifier1" Width="75" Binding="{Binding Modifier1Value, Mode=OneWay}"/>
<DataGridTextColumn Header="Modifier2" Width="75" Binding="{Binding Modifier2Value, Mode=OneWay}"/>
<DataGridTextColumn Header="Modifier3" Width="75" Binding="{Binding Modifier3Value, Mode=OneWay}"/>
<DataGridTextColumn Header="Modifier4" Width="75" Binding="{Binding Modifier4Value, Mode=OneWay}"/>
<DataGridTextColumn Header="Modifier5" Width="75" Binding="{Binding Modifier5Value, Mode=OneWay}"/>
</DataGrid.Columns>
</DataGrid>
</WrapPanel>
</TabItem>
<TabItem Header="Help" x:Name="Help" Margin="0" Background="SeaGreen">
<WrapPanel>
<RichTextBox IsReadOnly="True" IsDocumentEnabled="False" Margin="10" BorderThickness="0">
<FlowDocument>
<Paragraph FontWeight="Bold" FontSize="14">
<Run Text="Help"/>
</Paragraph>
<Paragraph FontSize="13">
<Run Text="Just some basic info to help get the most from this trainer. To start with this trainer is a little raw, it was built using PAL so"/>
<Run Text=" "/>
<Run FontWeight="Bold" Text="US may have issues."/>
</Paragraph>
<Paragraph FontSize="13">
<Run FontWeight="Bold" Text="Tabs: "/>
<Run Text=" "/>
<Run Text="The tabs have a colour, this is to identify how the data can be manipulated."/>
<Run Text=" "/>
<Run Foreground="CadetBlue" Text="Blue Tabs"/>
<Run Text=" are things like Weapons that require you to Save/Load the game."/>
<Run Text=" "/>
<Run Text=" "/>
<Run Text=" "/>
<Run Foreground="PaleVioletRed" Text="Violet Tabs"/>
<Run Text=" "/>
<Run Text=" "/>
<Run Text=" "/>
<Run Text="are things like Mushrooms that you can modify immediately. Whatever changes you make"/>
<Run Text=" "/>
<Run Text=" the Save Button is linked to the current Tab"/>
<Run Text=" so"/>
<Run Text=" you"/>
<Run Text=" "/>
<Run FontWeight="Bold" Text="must click Save at the bottom."/>
<Run Text=" "/>
<Run Foreground="SeaGreen" Text="Green Tabs"/>
<Run Text=" are used for other functions like this Help Tab and Debug."/>
</Paragraph>
<Paragraph FontSize="13">
<Run Text="If you change a Shield Value and click Save there will be no immediate effect, you then have to Save/Load your game. If you Edit your Materials however and click Save you should see this reflected in your inventory by closing and opening it again."/>
</Paragraph>
<Paragraph FontSize="13">
<Run FontWeight="Bold" Text="Debug tab "/>
<Run Text="has no function other than a complete list of current items"/>
<Run Text="."/>
<Run Text=" You can export the data to csv."/>
</Paragraph>
<Paragraph FontSize="13">
<Run FontWeight="Bold" Text="Modifier"/>
<Run Text=" boxes aren't always used. For food see post: https://gbatemp.net/threads/post-your-wiiu-cheat-codes-here.395443/page-303#post-7156278"/>
</Paragraph>
</FlowDocument>
</RichTextBox>
</WrapPanel>
</TabItem>
<TabItem Header="Credits" x:Name="Credits" Margin="0" Background="SeaGreen">
<StackPanel>
<Label Content="Bully"></Label>
<Label Content="Cosmo"></Label>
<Label Content="5pmeternal"></Label>
<Label Content="AcedArmy"></Label>
<Label Content="DarkFlare69"></Label>
<Label Content="ItchyOwned"></Label>
<Label Content="Shinzuya"></Label>
<Label Content="PandaOnSmack"></Label>
<Label Content="Shadow LAG"></Label>
<Label Content="Missing Number"></Label>
</StackPanel>
</TabItem>
</TabControl>
<Canvas Grid.Row="2" Margin="0" Width="970">
<Button x:Name="Refresh" Content="Refresh" HorizontalAlignment="Left" Margin="0,0,0,0" VerticalAlignment="Top" Width="75" Click="LoadClick" Canvas.Left="4" Canvas.Top="8" IsEnabled="False" />
<Button x:Name="Save" Content="Save" HorizontalAlignment="Left" Margin="0,0,0,0" VerticalAlignment="Top" Width="75" Click="SaveClick" Canvas.Left="109" Canvas.Top="8" IsEnabled="False" />
<Label x:Name="Notification" Content="" Canvas.Right="10" Canvas.Top="7" Width="450" HorizontalContentAlignment="Right" Canvas.Left="510"/>
</Canvas>
<Grid Grid.Row="3">
<ProgressBar Height="15" x:Name="Progress" Foreground="#FF138127" />
<TextBlock x:Name="ProgressText" HorizontalAlignment="Center" VerticalAlignment="Center" Text="0/0"/>
</Grid>
</Grid>
</Window>