2014-12-07 00:35:38 +00:00
|
|
|
|
using System;
|
2014-06-28 21:22:05 +00:00
|
|
|
|
using System.Drawing;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Windows.Forms;
|
|
|
|
|
|
|
|
|
|
namespace PKHeX
|
|
|
|
|
{
|
|
|
|
|
public partial class SAV_Trainer : Form
|
|
|
|
|
{
|
2016-01-17 21:27:24 +00:00
|
|
|
|
private readonly SAV6 SAV = new SAV6(Main.SAV.Data);
|
2015-09-21 03:34:09 +00:00
|
|
|
|
public SAV_Trainer()
|
2014-06-28 21:22:05 +00:00
|
|
|
|
{
|
|
|
|
|
InitializeComponent();
|
2015-09-21 03:34:09 +00:00
|
|
|
|
if (!Main.unicode)
|
2015-01-31 06:37:48 +00:00
|
|
|
|
try { TB_OTName.Font = PKX.getPKXFont(11); }
|
|
|
|
|
catch (Exception e) { Util.Alert("Font loading failed...", e.ToString()); }
|
|
|
|
|
|
2015-09-21 03:34:09 +00:00
|
|
|
|
Util.TranslateInterface(this, Main.curlanguage);
|
2015-11-21 06:02:15 +00:00
|
|
|
|
|
|
|
|
|
MaisonRecords = new[]
|
|
|
|
|
{
|
|
|
|
|
TB_MCSN,TB_MCSS,TB_MBSN,TB_MBSS,
|
|
|
|
|
TB_MCDN,TB_MCDS,TB_MBDN,TB_MBDS,
|
|
|
|
|
TB_MCTN,TB_MCTS,TB_MBTN,TB_MBTS,
|
|
|
|
|
TB_MCRN,TB_MCRS,TB_MBRN,TB_MBRS,
|
|
|
|
|
TB_MCMN,TB_MCMS,TB_MBMN,TB_MBMS,
|
|
|
|
|
};
|
2014-12-07 01:13:06 +00:00
|
|
|
|
|
2016-01-23 16:42:11 +00:00
|
|
|
|
L_MultiplayerSprite.Enabled = CB_MultiplayerSprite.Enabled = Main.SAV.ORAS;
|
|
|
|
|
L_Style.Visible = TB_Style.Visible = SAV.XY;
|
|
|
|
|
if (!SAV.XY)
|
|
|
|
|
TC_Editor.TabPages.Remove(Tab_Appearance);
|
|
|
|
|
if (SAV.ORASDEMO)
|
|
|
|
|
{
|
|
|
|
|
TC_Editor.TabPages.Remove(Tab_Maison);
|
|
|
|
|
TC_Editor.TabPages.Remove(Tab_Multiplayer);
|
|
|
|
|
}
|
2016-01-21 06:45:48 +00:00
|
|
|
|
|
2014-08-04 23:22:47 +00:00
|
|
|
|
editing = true;
|
2014-06-28 21:22:05 +00:00
|
|
|
|
getComboBoxes();
|
|
|
|
|
getTextBoxes();
|
2014-07-26 21:56:06 +00:00
|
|
|
|
getBadges();
|
2014-08-04 23:22:47 +00:00
|
|
|
|
|
2015-03-11 01:44:51 +00:00
|
|
|
|
statdata = new[] {
|
2014-08-04 23:22:47 +00:00
|
|
|
|
"0x000", "0x000", // Steps taken?
|
|
|
|
|
"0x004", "0x004", // Minutes Played / Pokemon Encountered?
|
|
|
|
|
"0x008", "0x008",
|
|
|
|
|
"0x00C", "0x00C",
|
|
|
|
|
"0x010", "0x010",
|
|
|
|
|
"0x014", "0x014",
|
|
|
|
|
"0x018", "0x018",
|
2015-02-07 02:30:35 +00:00
|
|
|
|
"0x01C", "Pok<6F>mon Captured",
|
2014-08-04 23:22:47 +00:00
|
|
|
|
"0x020", "0x020",
|
|
|
|
|
"0x024", "Eggs Hatched",
|
2015-02-07 02:30:35 +00:00
|
|
|
|
"0x028", "Pok<6F>mon Evolved",
|
2014-08-04 23:22:47 +00:00
|
|
|
|
"0x02C", "0x02C",
|
2015-02-07 02:30:35 +00:00
|
|
|
|
"0x030", "~People Passed", // I think the following ones are Passerby actions...
|
2014-08-04 23:22:47 +00:00
|
|
|
|
"0x034", "0x034",
|
|
|
|
|
"0x038", "0x038",
|
|
|
|
|
"0x03C", "0x03C",
|
2015-02-07 02:30:35 +00:00
|
|
|
|
"0x040", "Link Trades",
|
|
|
|
|
"0x044", "Link Battles",
|
|
|
|
|
"0x048", "Link Battle Wins",
|
2014-08-04 23:22:47 +00:00
|
|
|
|
"0x04C", "0x04C",
|
|
|
|
|
"0x050", "0x050",
|
|
|
|
|
"0x054", "0x054",
|
|
|
|
|
"0x058", "0x058",
|
|
|
|
|
"0x05C", "0x05C",
|
|
|
|
|
"0x060", "0x060",
|
|
|
|
|
"0x064", "0x064",
|
|
|
|
|
"0x068", "0x068",
|
|
|
|
|
"0x06C", "0x06C",
|
|
|
|
|
"0x070", "0x070",
|
|
|
|
|
"0x074", "0x074",
|
|
|
|
|
"0x078", "0x078",
|
|
|
|
|
"0x07C", "0x07C",
|
|
|
|
|
"0x080", "0x080",
|
|
|
|
|
"0x084", "0x084",
|
2015-02-07 02:30:35 +00:00
|
|
|
|
"0x088", "BP Earned",
|
2014-08-04 23:22:47 +00:00
|
|
|
|
"0x08C", "0x08C",
|
|
|
|
|
"0x090", "0x090",
|
|
|
|
|
"0x094", "0x094",
|
|
|
|
|
"0x098", "0x098",
|
|
|
|
|
"0x09C", "0x09C",
|
|
|
|
|
"0x0A0", "0x0A0",
|
|
|
|
|
"0x0A4", "0x0A4",
|
|
|
|
|
"0x0A8", "0x0A8",
|
|
|
|
|
"0x0AC", "0x0AC",
|
|
|
|
|
"0x0B0", "0x0B0",
|
|
|
|
|
"0x0B4", "0x0B4",
|
|
|
|
|
"0x0B8", "0x0B8",
|
|
|
|
|
"0x0BC", "0x0BC",
|
|
|
|
|
"0x0C0", "0x0C0",
|
|
|
|
|
"0x0C4", "0x0C4",
|
|
|
|
|
"0x0C8", "0x0C8",
|
|
|
|
|
"0x0CC", "0x0CC",
|
|
|
|
|
"0x0D0", "0x0D0",
|
|
|
|
|
"0x0D4", "0x0D4",
|
|
|
|
|
"0x0D8", "0x0D8",
|
|
|
|
|
"0x0DC", "0x0DC",
|
|
|
|
|
"0x0E0", "0x0E0",
|
|
|
|
|
"0x0E4", "0x0E4",
|
|
|
|
|
"0x0E8", "0x0E8",
|
2014-08-31 21:30:26 +00:00
|
|
|
|
"0x0EC", "Nice! Received",
|
2015-02-07 02:30:35 +00:00
|
|
|
|
"0x0F0", "Birthday Wishes",
|
2014-08-31 21:30:26 +00:00
|
|
|
|
"0x0F4", "Total People Met Online",
|
2014-08-04 23:22:47 +00:00
|
|
|
|
"0x0F8", "0x0F8",
|
2015-11-21 06:02:15 +00:00
|
|
|
|
//"0x0FC", "Current Pokemiles",
|
2014-08-04 23:22:47 +00:00
|
|
|
|
"0x100", "Obtained Pokemiles",
|
|
|
|
|
"0x104", "0x104",
|
|
|
|
|
"0x108", "0x108",
|
2014-12-18 00:31:44 +00:00
|
|
|
|
"0x10C", "Super Training Clears",
|
2015-02-07 02:30:35 +00:00
|
|
|
|
"0x110", "Judge Evaluations",
|
2014-08-04 23:22:47 +00:00
|
|
|
|
"0x114", "0x114",
|
|
|
|
|
"0x118", "0x118", // Link Trades?
|
|
|
|
|
"0x11C", "Link Battle", // Wins", // ?
|
|
|
|
|
"0x120", "0x120", // Link Battle Losses?
|
|
|
|
|
"0x124", "0x124",
|
|
|
|
|
"0x128", "0x128",
|
|
|
|
|
"0x12C", "0x12C",
|
|
|
|
|
"0x130", "0x130",
|
|
|
|
|
"0x134", "0x134",
|
|
|
|
|
"0x138", "0x138",
|
|
|
|
|
"0x13C", "0x13C",
|
2014-12-07 01:13:06 +00:00
|
|
|
|
"0x140", "Flags Captured",
|
2014-08-04 23:22:47 +00:00
|
|
|
|
"0x144", "0x144",
|
|
|
|
|
"0x148", "0x148",
|
|
|
|
|
"0x14C", "0x14C",
|
|
|
|
|
"0x150", "0x150",
|
|
|
|
|
"0x154", "0x154",
|
|
|
|
|
"0x158", "0x158",
|
|
|
|
|
"0x15C", "0x15C",
|
|
|
|
|
"0x160", "0x160",
|
|
|
|
|
"0x164", "0x164",
|
|
|
|
|
"0x168", "0x168",
|
|
|
|
|
"0x16C", "0x16C",
|
|
|
|
|
"0x170", "0x170",
|
|
|
|
|
"0x174", "0x174",
|
|
|
|
|
"0x178", "0x178",
|
|
|
|
|
"0x17C", "0x17C",
|
|
|
|
|
"0x180", "0x180",
|
|
|
|
|
"0x184", "0x184",
|
|
|
|
|
"0x188", "0x188",
|
|
|
|
|
"0x18C", "0x18C",
|
|
|
|
|
"0x190", "0x190",
|
|
|
|
|
"0x194", "0x194",
|
|
|
|
|
"0x198", "0x198",
|
|
|
|
|
"0x19C", "0x19C",
|
|
|
|
|
"0x1A0", "0x1A0",
|
|
|
|
|
"0x1A4", "0x1A4",
|
|
|
|
|
"0x1A8", "0x1A8",
|
|
|
|
|
"0x1AC", "0x1AC",
|
|
|
|
|
"0x1B0", "0x1B0",
|
|
|
|
|
"0x1B4", "0x1B4",
|
|
|
|
|
"0x1B8", "0x1B8",
|
2014-12-18 00:31:44 +00:00
|
|
|
|
"0x1BC", "Battle Tests",
|
2014-08-04 23:22:47 +00:00
|
|
|
|
"0x1C0", "0x1C0",
|
|
|
|
|
"0x1C4", "0x1C4",
|
|
|
|
|
"0x1C8", "0x1C8",
|
|
|
|
|
"0x1CC", "0x1CC",
|
|
|
|
|
"0x1D0", "0x1D0",
|
|
|
|
|
"0x1D4", "0x1D4",
|
|
|
|
|
"0x1D8", "0x1D8",
|
|
|
|
|
"0x1DC", "0x1DC",
|
|
|
|
|
"0x1E0", "0x1E0",
|
|
|
|
|
"0x1E4", "0x1E4",
|
|
|
|
|
"0x1E8", "0x1E8",
|
|
|
|
|
"0x1EC", "0x1EC",
|
|
|
|
|
"0x1F0", "0x1F0",
|
|
|
|
|
"0x1F4", "0x1F4",
|
|
|
|
|
"0x1F8", "0x1F8",
|
|
|
|
|
"0x1FC", "0x1FC",
|
|
|
|
|
"0x200", "0x200",
|
|
|
|
|
"0x204", "0x204",
|
|
|
|
|
"0x208", "0x208",
|
|
|
|
|
"0x20C", "0x20C",
|
|
|
|
|
"0x210", "0x210",
|
|
|
|
|
"0x214", "0x214",
|
|
|
|
|
"0x218", "0x218",
|
|
|
|
|
"0x21C", "0x21C",
|
|
|
|
|
"0x220", "0x220",
|
|
|
|
|
"0x224", "0x224",
|
|
|
|
|
"0x228", "0x228",
|
|
|
|
|
"0x22C", "0x22C",
|
|
|
|
|
"0x230", "0x230",
|
|
|
|
|
"0x234", "0x234",
|
|
|
|
|
"0x238", "0x238",
|
|
|
|
|
"0x23C", "0x23C",
|
|
|
|
|
"0x240", "0x240",
|
|
|
|
|
"0x244", "0x244",
|
|
|
|
|
"0x248", "0x248",
|
|
|
|
|
"0x24C", "0x24C",
|
|
|
|
|
"0x250", "0x250",
|
|
|
|
|
"0x254", "0x254",
|
|
|
|
|
"0x258", "0x258",
|
|
|
|
|
}; // Offset, Title. Horrible implementation, but works.
|
|
|
|
|
|
|
|
|
|
CB_Stats.Items.Clear();
|
|
|
|
|
for (int i = 0; i < statdata.Length / 2; i++)
|
|
|
|
|
CB_Stats.Items.Add(statdata[2 * i + 1]);
|
|
|
|
|
CB_Stats.SelectedIndex = 0;
|
2014-06-28 21:22:05 +00:00
|
|
|
|
}
|
2016-02-11 08:43:44 +00:00
|
|
|
|
private readonly string[] statdata;
|
2016-02-10 08:33:42 +00:00
|
|
|
|
private bool editing;
|
|
|
|
|
private readonly ToolTip Tip1 = new ToolTip(), Tip2 = new ToolTip();
|
2016-01-17 21:27:24 +00:00
|
|
|
|
private readonly MaskedTextBox[] MaisonRecords;
|
2015-01-31 06:37:48 +00:00
|
|
|
|
|
2014-06-28 21:22:05 +00:00
|
|
|
|
private void getComboBoxes()
|
|
|
|
|
{
|
|
|
|
|
var dsregion_list = new[] {
|
|
|
|
|
new { Text = "NA/SA", Value = 1 },
|
|
|
|
|
new { Text = "EUR", Value = 2 },
|
|
|
|
|
new { Text = "JPN", Value = 0 },
|
|
|
|
|
new { Text = "CN", Value = 4 },
|
|
|
|
|
new { Text = "KOR", Value = 5 },
|
|
|
|
|
new { Text = "TW", Value = 6 }
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
var language_list = new[] {
|
|
|
|
|
new { Text = "ENG", Value = 2 },
|
|
|
|
|
new { Text = "JPN", Value = 1 },
|
|
|
|
|
new { Text = "FRE", Value = 3 },
|
|
|
|
|
new { Text = "ITA", Value = 4 },
|
|
|
|
|
new { Text = "GER", Value = 5 },
|
|
|
|
|
new { Text = "SPA", Value = 7 },
|
|
|
|
|
new { Text = "KOR", Value = 8 }
|
|
|
|
|
};
|
2015-01-31 06:37:48 +00:00
|
|
|
|
|
2014-06-28 21:22:05 +00:00
|
|
|
|
CB_3DSReg.DisplayMember = "Text";
|
|
|
|
|
CB_3DSReg.ValueMember = "Value";
|
2015-01-31 23:59:23 +00:00
|
|
|
|
CB_3DSReg.DataSource = dsregion_list;
|
2014-06-28 21:22:05 +00:00
|
|
|
|
CB_Language.DisplayMember = "Text";
|
|
|
|
|
CB_Language.ValueMember = "Value";
|
2015-01-31 23:59:23 +00:00
|
|
|
|
CB_Language.DataSource = language_list;
|
2014-06-28 21:22:05 +00:00
|
|
|
|
|
2015-01-31 23:59:23 +00:00
|
|
|
|
CB_Country.DisplayMember = "Text";
|
|
|
|
|
CB_Country.ValueMember = "Value";
|
|
|
|
|
CB_Region.DisplayMember = "Text";
|
|
|
|
|
CB_Region.ValueMember = "Value";
|
2015-09-21 03:34:09 +00:00
|
|
|
|
Main.setCountrySubRegion(CB_Country, "countries");
|
2014-12-07 00:35:38 +00:00
|
|
|
|
|
|
|
|
|
var oras_sprite_list = new[] {
|
|
|
|
|
//new { Text = "Calem", Value = 00 },
|
|
|
|
|
//new { Text = "Serena", Value = 01 },
|
|
|
|
|
new { Text = "Sycamore", Value = 02 },
|
|
|
|
|
new { Text = "Diantha", Value = 03 },
|
|
|
|
|
new { Text = "Wikstrom", Value = 04 },
|
|
|
|
|
new { Text = "Malva", Value = 05 },
|
|
|
|
|
new { Text = "Drasna", Value = 06 },
|
|
|
|
|
new { Text = "Siebold", Value = 07 },
|
|
|
|
|
new { Text = "Viola", Value = 08 },
|
|
|
|
|
new { Text = "Grant", Value = 09 },
|
|
|
|
|
new { Text = "Korrina", Value = 10 },
|
|
|
|
|
new { Text = "Ramos", Value = 11 },
|
|
|
|
|
new { Text = "Clemont", Value = 12 },
|
|
|
|
|
new { Text = "Valerie", Value = 13 },
|
|
|
|
|
new { Text = "Olympia", Value = 14 },
|
|
|
|
|
new { Text = "Wulfric", Value = 15 },
|
|
|
|
|
new { Text = "Youngster (XY)", Value = 16 },
|
|
|
|
|
//new { Text = "(None)", Value = 17 },
|
|
|
|
|
new { Text = "Lass (XY)", Value = 18 },
|
|
|
|
|
new { Text = "Lady (XY)", Value = 19 },
|
|
|
|
|
new { Text = "Schoolgirl (XY)", Value = 20 },
|
|
|
|
|
new { Text = "Battle Girl (XY)", Value = 21 },
|
|
|
|
|
new { Text = "Schoolboy (XY)", Value = 22 },
|
|
|
|
|
new { Text = "Rich Boy (XY)", Value = 23 },
|
|
|
|
|
new { Text = "Female Ace Trainer (XY)", Value = 24 },
|
|
|
|
|
//new { Text = "(None)", Value = 25 },
|
|
|
|
|
new { Text = "Female Ranger (XY)", Value = 26 },
|
|
|
|
|
new { Text = "Male Ace Trainer (XY)", Value = 27 },
|
|
|
|
|
new { Text = "Male Ranger (XY)", Value = 28 },
|
|
|
|
|
new { Text = "Madame", Value = 29 },
|
|
|
|
|
new { Text = "Monsieur", Value = 30 },
|
|
|
|
|
new { Text = "Black Belt (XY)", Value = 31 },
|
|
|
|
|
new { Text = "Male Punk (XY)", Value = 32 },
|
|
|
|
|
new { Text = "Fairy Tale Girl (XY)", Value = 33 },
|
|
|
|
|
new { Text = "Shauna", Value = 34 },
|
|
|
|
|
new { Text = "Tierno", Value = 35 },
|
|
|
|
|
new { Text = "Trevor", Value = 36 },
|
|
|
|
|
new { Text = "Brendan", Value = 37 },
|
|
|
|
|
new { Text = "May", Value = 38 },
|
|
|
|
|
//new { Text = "(None)", Value = 39 },
|
|
|
|
|
new { Text = "Hiker", Value = 40 },
|
|
|
|
|
new { Text = "Aroma Lady", Value = 41 },
|
|
|
|
|
new { Text = "Male Schoolkid", Value = 42 },
|
|
|
|
|
new { Text = "Female Schoolkid", Value = 43 },
|
|
|
|
|
new { Text = "Black Belt (ORAS)", Value = 44 },
|
|
|
|
|
new { Text = "Battle Girl (ORAS)", Value = 45 },
|
|
|
|
|
new { Text = "Pokemaniac (ORAS)", Value = 46 },
|
|
|
|
|
new { Text = "Fairy Tale Girl (ORAS)", Value = 47 },
|
|
|
|
|
new { Text = "Victor Winstrate", Value = 48 },
|
|
|
|
|
new { Text = "Victoria Winstrate", Value = 49 },
|
|
|
|
|
new { Text = "Male Ranger (ORAS)", Value = 50 },
|
|
|
|
|
new { Text = "Female Ranger (ORAS)", Value = 51 },
|
|
|
|
|
new { Text = "Male Swimmer (ORAS)", Value = 52 },
|
|
|
|
|
new { Text = "Hex Maniac", Value = 53 },
|
|
|
|
|
new { Text = "Male Ace Trainer (ORAS)", Value = 54 },
|
|
|
|
|
new { Text = "Female Ace Trainer (ORAS)", Value = 55 },
|
|
|
|
|
new { Text = "Street Thug", Value = 56 },
|
|
|
|
|
new { Text = "Delinquent", Value = 57 },
|
|
|
|
|
new { Text = "Male Expert", Value = 58 },
|
|
|
|
|
new { Text = "Female Expert", Value = 59 },
|
|
|
|
|
new { Text = "Lady (ORAS)", Value = 60 },
|
|
|
|
|
new { Text = "Rich Boy (ORAS)", Value = 61 },
|
|
|
|
|
new { Text = "Ninja Boy", Value = 62 },
|
|
|
|
|
new { Text = "Beauty (ORAS)", Value = 63 },
|
|
|
|
|
new { Text = "Guitarist", Value = 64 },
|
|
|
|
|
new { Text = "Lass (ORAS)", Value = 65 },
|
|
|
|
|
new { Text = "Male Breeder (ORAS)", Value = 66 },
|
|
|
|
|
new { Text = "Female Breeder (ORAS)", Value = 67 },
|
|
|
|
|
new { Text = "Camper", Value = 68 },
|
|
|
|
|
new { Text = "Picnicker", Value = 69 },
|
|
|
|
|
new { Text = "Wally", Value = 70 },
|
|
|
|
|
new { Text = "Steven", Value = 71 },
|
|
|
|
|
new { Text = "Maxie", Value = 72 },
|
|
|
|
|
new { Text = "Archie", Value = 73 },
|
2015-11-18 05:02:23 +00:00
|
|
|
|
new { Text = "Pok<6F>center", Value = 0x80 },
|
|
|
|
|
new { Text = "Gift", Value = 0x81 },
|
2014-12-07 00:35:38 +00:00
|
|
|
|
};
|
|
|
|
|
|
2016-01-21 06:45:48 +00:00
|
|
|
|
CB_MultiplayerSprite.DisplayMember = "Text";
|
|
|
|
|
CB_MultiplayerSprite.ValueMember = "Value";
|
|
|
|
|
CB_MultiplayerSprite.DataSource = oras_sprite_list;
|
2014-12-16 02:13:29 +00:00
|
|
|
|
|
2015-09-21 03:34:09 +00:00
|
|
|
|
L_Vivillon.Text = Main.specieslist[666] + ":";
|
|
|
|
|
Main.setForms(666, CB_Vivillon);
|
2014-06-28 21:22:05 +00:00
|
|
|
|
}
|
|
|
|
|
private void getBadges()
|
|
|
|
|
{
|
|
|
|
|
// Fetch Badges
|
2016-01-23 18:15:12 +00:00
|
|
|
|
Bitmap[] bma = Main.SAV.ORAS ?
|
2015-09-21 03:34:09 +00:00
|
|
|
|
new[] {
|
2014-11-22 07:23:48 +00:00
|
|
|
|
Properties.Resources.badge_01, // ORAS Badges
|
|
|
|
|
Properties.Resources.badge_02,
|
|
|
|
|
Properties.Resources.badge_03,
|
|
|
|
|
Properties.Resources.badge_04,
|
|
|
|
|
Properties.Resources.badge_05,
|
|
|
|
|
Properties.Resources.badge_06,
|
|
|
|
|
Properties.Resources.badge_07,
|
|
|
|
|
Properties.Resources.badge_08,
|
2015-09-21 03:34:09 +00:00
|
|
|
|
} :
|
|
|
|
|
new [] {
|
|
|
|
|
Properties.Resources.badge_1, // XY Badges
|
|
|
|
|
Properties.Resources.badge_2,
|
|
|
|
|
Properties.Resources.badge_3,
|
|
|
|
|
Properties.Resources.badge_4,
|
|
|
|
|
Properties.Resources.badge_5,
|
|
|
|
|
Properties.Resources.badge_6,
|
|
|
|
|
Properties.Resources.badge_7,
|
|
|
|
|
Properties.Resources.badge_8,
|
|
|
|
|
};
|
2016-01-21 06:45:48 +00:00
|
|
|
|
CheckBox[] cba = { CHK_Badge1, CHK_Badge2, CHK_Badge3, CHK_Badge4, CHK_Badge5, CHK_Badge6, CHK_Badge7, CHK_Badge8, };
|
|
|
|
|
PictureBox[] pba = { PB_Badge1, PB_Badge2, PB_Badge3, PB_Badge4, PB_Badge5, PB_Badge6, PB_Badge7, PB_Badge8, };
|
2014-06-28 21:22:05 +00:00
|
|
|
|
|
|
|
|
|
for (int i = 0; i < 8; i++)
|
2015-03-11 01:44:51 +00:00
|
|
|
|
pba[i].Image = Util.ChangeOpacity(bma[i], !cba[i].Checked ? 0.1 : 1);
|
2014-06-28 21:22:05 +00:00
|
|
|
|
}
|
|
|
|
|
private void getTextBoxes()
|
|
|
|
|
{
|
2015-11-21 06:02:15 +00:00
|
|
|
|
int badgeval = SAV.Badges;
|
2016-01-21 06:45:48 +00:00
|
|
|
|
CheckBox[] cba = { CHK_Badge1, CHK_Badge2, CHK_Badge3, CHK_Badge4, CHK_Badge5, CHK_Badge6, CHK_Badge7, CHK_Badge8, };
|
2014-07-26 21:56:06 +00:00
|
|
|
|
for (int i = 0; i < 8; i++)
|
2016-01-06 02:16:58 +00:00
|
|
|
|
cba[i].Checked = (badgeval & 1 << i) != 0;
|
2014-06-28 21:22:05 +00:00
|
|
|
|
|
|
|
|
|
// Get Data
|
2015-11-21 06:02:15 +00:00
|
|
|
|
string OT_NAME = SAV.OT;
|
2014-06-28 21:22:05 +00:00
|
|
|
|
|
2015-11-21 06:02:15 +00:00
|
|
|
|
CB_Game.SelectedIndex = SAV.Game - 0x18;
|
|
|
|
|
CB_Gender.SelectedIndex = SAV.Gender;
|
|
|
|
|
|
2014-06-28 21:22:05 +00:00
|
|
|
|
// Display Data
|
|
|
|
|
TB_OTName.Text = OT_NAME;
|
|
|
|
|
|
2015-11-21 06:02:15 +00:00
|
|
|
|
MT_TID.Text = SAV.TID.ToString("00000");
|
|
|
|
|
MT_SID.Text = SAV.SID.ToString("00000");
|
|
|
|
|
MT_Money.Text = SAV.Money.ToString();
|
2014-06-28 21:22:05 +00:00
|
|
|
|
|
2015-11-21 06:02:15 +00:00
|
|
|
|
TB_Saying1.Text = SAV.Saying1;
|
|
|
|
|
TB_Saying2.Text = SAV.Saying2;
|
|
|
|
|
TB_Saying3.Text = SAV.Saying3;
|
|
|
|
|
TB_Saying4.Text = SAV.Saying4;
|
|
|
|
|
TB_Saying5.Text = SAV.Saying5;
|
2014-06-28 21:22:05 +00:00
|
|
|
|
|
2015-11-21 06:02:15 +00:00
|
|
|
|
CB_Country.SelectedValue = SAV.Country;
|
|
|
|
|
CB_Region.SelectedValue = SAV.SubRegion;
|
|
|
|
|
CB_3DSReg.SelectedValue = SAV.ConsoleRegion;
|
|
|
|
|
CB_Language.SelectedValue = SAV.Language;
|
2014-06-28 21:22:05 +00:00
|
|
|
|
|
2014-11-26 00:17:41 +00:00
|
|
|
|
// Maison Data
|
2015-11-21 06:02:15 +00:00
|
|
|
|
for (int i = 0; i < MaisonRecords.Length; i++)
|
2015-11-22 01:23:00 +00:00
|
|
|
|
MaisonRecords[i].Text = SAV.getMaisonStat(i).ToString();
|
2014-06-28 21:22:05 +00:00
|
|
|
|
|
2015-11-21 06:02:15 +00:00
|
|
|
|
NUD_M.Value = SAV.M;
|
2016-01-21 05:08:33 +00:00
|
|
|
|
// Sanity Check Map Coordinates
|
|
|
|
|
if (!GB_Map.Enabled || SAV.X%0.5 != 0 || SAV.Z%0.5 != 0 || SAV.Y%0.5 != 0)
|
|
|
|
|
GB_Map.Enabled = false;
|
|
|
|
|
else try
|
|
|
|
|
{
|
|
|
|
|
NUD_X.Value = (decimal)SAV.X;
|
|
|
|
|
NUD_Z.Value = (decimal)SAV.Z;
|
|
|
|
|
NUD_Y.Value = (decimal)SAV.Y;
|
|
|
|
|
}
|
|
|
|
|
catch { GB_Map.Enabled = false; }
|
2014-07-26 21:56:06 +00:00
|
|
|
|
|
|
|
|
|
// Load BP and PokeMiles
|
2015-11-22 01:23:00 +00:00
|
|
|
|
TB_BP.Text = SAV.BP.ToString();
|
|
|
|
|
TB_PM.Text = SAV.getPSSStat(0xFC/4).ToString();
|
2015-01-31 06:37:48 +00:00
|
|
|
|
|
2015-11-21 06:02:15 +00:00
|
|
|
|
TB_Style.Text = SAV.Style.ToString();
|
2014-08-12 23:37:51 +00:00
|
|
|
|
|
|
|
|
|
// Load Play Time
|
2015-11-21 06:02:15 +00:00
|
|
|
|
MT_Hours.Text = Main.SAV.PlayedHours.ToString();
|
|
|
|
|
MT_Minutes.Text = Main.SAV.PlayedMinutes.ToString();
|
|
|
|
|
MT_Seconds.Text = Main.SAV.PlayedSeconds.ToString();
|
2014-08-31 20:32:04 +00:00
|
|
|
|
|
|
|
|
|
// Load PSS Sprite
|
2016-01-21 06:45:48 +00:00
|
|
|
|
CB_MultiplayerSprite.SelectedValue = SAV.Sprite;
|
2015-11-21 06:02:15 +00:00
|
|
|
|
PB_Sprite.Image = (Image)Properties.Resources.ResourceManager.GetObject("tr_" + SAV.Sprite.ToString("00"));
|
|
|
|
|
|
|
|
|
|
if (SAV.XY)
|
|
|
|
|
{
|
|
|
|
|
// Load Clothing Data
|
|
|
|
|
int hat = SAV.Data[SAV.TrainerCard + 0x31] >> 3;
|
|
|
|
|
int haircolor = SAV.Data[SAV.TrainerCard + 0x31] & 7;
|
|
|
|
|
MT_Hat.Text = hat.ToString();
|
|
|
|
|
MT_HairColor.Text = haircolor.ToString();
|
|
|
|
|
MT_14030.Text = SAV.Data[SAV.TrainerCard + 0x30].ToString();
|
|
|
|
|
MT_14031.Text = SAV.Data[SAV.TrainerCard + 0x31].ToString();
|
|
|
|
|
MT_14032.Text = SAV.Data[SAV.TrainerCard + 0x32].ToString();
|
|
|
|
|
MT_14033.Text = SAV.Data[SAV.TrainerCard + 0x33].ToString();
|
|
|
|
|
MT_14034.Text = SAV.Data[SAV.TrainerCard + 0x34].ToString();
|
|
|
|
|
MT_14035.Text = SAV.Data[SAV.TrainerCard + 0x35].ToString();
|
|
|
|
|
MT_14036.Text = SAV.Data[SAV.TrainerCard + 0x36].ToString();
|
|
|
|
|
MT_14037.Text = SAV.Data[SAV.TrainerCard + 0x37].ToString();
|
|
|
|
|
MT_14038.Text = SAV.Data[SAV.TrainerCard + 0x38].ToString();
|
|
|
|
|
MT_14039.Text = SAV.Data[SAV.TrainerCard + 0x39].ToString();
|
|
|
|
|
MT_1403A.Text = SAV.Data[SAV.TrainerCard + 0x3A].ToString();
|
|
|
|
|
MT_1403B.Text = SAV.Data[SAV.TrainerCard + 0x3B].ToString();
|
|
|
|
|
MT_1403C.Text = SAV.Data[SAV.TrainerCard + 0x3C].ToString();
|
|
|
|
|
MT_1403D.Text = SAV.Data[SAV.TrainerCard + 0x3D].ToString();
|
|
|
|
|
MT_1403E.Text = SAV.Data[SAV.TrainerCard + 0x3E].ToString();
|
|
|
|
|
MT_1403F.Text = SAV.Data[SAV.TrainerCard + 0x3F].ToString();
|
|
|
|
|
}
|
2014-12-16 02:13:29 +00:00
|
|
|
|
|
2015-11-21 06:02:15 +00:00
|
|
|
|
CB_Vivillon.SelectedIndex = SAV.Vivillon;
|
2016-01-23 03:39:03 +00:00
|
|
|
|
CAL_LastSavedDate.Value = new DateTime(SAV.LastSavedYear, SAV.LastSavedMonth, SAV.LastSavedDay);
|
|
|
|
|
CAL_LastSavedTime.Value = new DateTime(2000, 1, 1, SAV.LastSavedHour, SAV.LastSavedMinute, 0);
|
|
|
|
|
CAL_AdventureStartDate.Value = new DateTime(2000, 1, 1).AddSeconds(SAV.SecondsToStart);
|
2016-02-12 07:44:50 +00:00
|
|
|
|
CAL_AdventureStartTime.Value = new DateTime(2000, 1, 1).AddSeconds(SAV.SecondsToStart % 86400);
|
2014-06-28 21:22:05 +00:00
|
|
|
|
}
|
|
|
|
|
private void save()
|
|
|
|
|
{
|
2015-11-21 06:02:15 +00:00
|
|
|
|
SAV.Game = (byte)(CB_Game.SelectedIndex + 0x18);
|
|
|
|
|
SAV.Gender = (byte)CB_Gender.SelectedIndex;
|
|
|
|
|
|
|
|
|
|
SAV.TID = (ushort)Util.ToUInt32(MT_TID.Text);
|
|
|
|
|
SAV.SID = (ushort)Util.ToUInt32(MT_SID.Text);
|
|
|
|
|
SAV.Money = Util.ToUInt32(MT_Money.Text);
|
2016-01-21 06:45:48 +00:00
|
|
|
|
SAV.SubRegion = Util.getIndex(CB_Region);
|
|
|
|
|
SAV.Country = Util.getIndex(CB_Country);
|
|
|
|
|
SAV.ConsoleRegion = Util.getIndex(CB_3DSReg);
|
|
|
|
|
SAV.Language = Util.getIndex(CB_Language);
|
2015-11-21 06:02:15 +00:00
|
|
|
|
|
|
|
|
|
SAV.OT = TB_OTName.Text;
|
|
|
|
|
|
|
|
|
|
SAV.Saying1 = TB_Saying1.Text;
|
|
|
|
|
SAV.Saying2 = TB_Saying2.Text;
|
|
|
|
|
SAV.Saying3 = TB_Saying3.Text;
|
|
|
|
|
SAV.Saying4 = TB_Saying4.Text;
|
|
|
|
|
SAV.Saying5 = TB_Saying5.Text;
|
2014-07-26 21:56:06 +00:00
|
|
|
|
|
|
|
|
|
// Copy Maison Data in
|
2015-11-21 06:02:15 +00:00
|
|
|
|
for (int i = 0; i < MaisonRecords.Length; i++)
|
2016-01-21 06:45:48 +00:00
|
|
|
|
SAV.setMaisonStat(i, ushort.Parse(MaisonRecords[i].Text));
|
2014-07-26 21:56:06 +00:00
|
|
|
|
|
|
|
|
|
// Copy Position
|
2016-01-21 05:08:33 +00:00
|
|
|
|
if (GB_Map.Enabled)
|
|
|
|
|
{
|
|
|
|
|
SAV.M = (int)NUD_M.Value;
|
|
|
|
|
SAV.X = (float)NUD_X.Value;
|
|
|
|
|
SAV.Z = (float)NUD_Z.Value;
|
|
|
|
|
SAV.Y = (float)NUD_Y.Value;
|
|
|
|
|
}
|
2015-11-21 06:02:15 +00:00
|
|
|
|
|
2016-01-21 06:45:48 +00:00
|
|
|
|
SAV.BP = ushort.Parse(TB_BP.Text);
|
2015-11-22 01:23:00 +00:00
|
|
|
|
// Set Current Pok<6F>Miles
|
|
|
|
|
SAV.setPSSStat(0xFC / 4, Util.ToUInt32(TB_PM.Text));
|
|
|
|
|
// Set Max Obtained Pok<6F>miles
|
|
|
|
|
SAV.setPSSStat(0x100 / 4, Util.ToUInt32(TB_PM.Text));
|
2016-01-21 06:45:48 +00:00
|
|
|
|
SAV.Style = byte.Parse(TB_Style.Text);
|
2014-07-26 21:56:06 +00:00
|
|
|
|
|
|
|
|
|
// Copy Badges
|
2015-11-21 06:02:15 +00:00
|
|
|
|
int badgeval = 0;
|
2016-01-21 06:45:48 +00:00
|
|
|
|
CheckBox[] cba = { CHK_Badge1, CHK_Badge2, CHK_Badge3, CHK_Badge4, CHK_Badge5, CHK_Badge6, CHK_Badge7, CHK_Badge8, };
|
2014-07-26 21:56:06 +00:00
|
|
|
|
for (int i = 0; i < 8; i++)
|
2015-11-21 06:02:15 +00:00
|
|
|
|
badgeval |= (cba[i].Checked ? 1 : 0) << i;
|
|
|
|
|
SAV.Badges = badgeval;
|
2014-08-12 23:37:51 +00:00
|
|
|
|
|
|
|
|
|
// Save PlayTime
|
2016-01-21 06:45:48 +00:00
|
|
|
|
SAV.PlayedHours = ushort.Parse(MT_Hours.Text);
|
|
|
|
|
SAV.PlayedMinutes = ushort.Parse(MT_Minutes.Text)%60;
|
|
|
|
|
SAV.PlayedSeconds = ushort.Parse(MT_Seconds.Text)%60;
|
2014-08-31 20:32:04 +00:00
|
|
|
|
|
|
|
|
|
// Sprite
|
2016-01-21 06:45:48 +00:00
|
|
|
|
SAV.Sprite = Convert.ToByte(CB_MultiplayerSprite.SelectedValue);
|
2015-09-21 03:34:09 +00:00
|
|
|
|
|
|
|
|
|
// Appearance
|
2015-11-21 06:02:15 +00:00
|
|
|
|
if (SAV.XY)
|
|
|
|
|
{
|
2016-01-21 06:45:48 +00:00
|
|
|
|
SAV.Data[SAV.TrainerCard + 0x30] = byte.Parse(MT_14030.Text);
|
|
|
|
|
SAV.Data[SAV.TrainerCard + 0x31] = (byte)(byte.Parse(MT_HairColor.Text) | (byte.Parse(MT_Hat.Text) << 3));
|
|
|
|
|
SAV.Data[SAV.TrainerCard + 0x32] = byte.Parse(MT_14032.Text);
|
|
|
|
|
SAV.Data[SAV.TrainerCard + 0x33] = byte.Parse(MT_14033.Text);
|
|
|
|
|
SAV.Data[SAV.TrainerCard + 0x34] = byte.Parse(MT_14034.Text);
|
|
|
|
|
SAV.Data[SAV.TrainerCard + 0x35] = byte.Parse(MT_14035.Text);
|
|
|
|
|
SAV.Data[SAV.TrainerCard + 0x36] = byte.Parse(MT_14036.Text);
|
|
|
|
|
SAV.Data[SAV.TrainerCard + 0x37] = byte.Parse(MT_14037.Text);
|
|
|
|
|
SAV.Data[SAV.TrainerCard + 0x38] = byte.Parse(MT_14038.Text);
|
|
|
|
|
SAV.Data[SAV.TrainerCard + 0x39] = byte.Parse(MT_14039.Text);
|
|
|
|
|
SAV.Data[SAV.TrainerCard + 0x3A] = byte.Parse(MT_1403A.Text);
|
|
|
|
|
SAV.Data[SAV.TrainerCard + 0x3B] = byte.Parse(MT_1403B.Text);
|
|
|
|
|
SAV.Data[SAV.TrainerCard + 0x3C] = byte.Parse(MT_1403C.Text);
|
|
|
|
|
SAV.Data[SAV.TrainerCard + 0x3D] = byte.Parse(MT_1403D.Text);
|
|
|
|
|
SAV.Data[SAV.TrainerCard + 0x3E] = byte.Parse(MT_1403E.Text);
|
|
|
|
|
SAV.Data[SAV.TrainerCard + 0x3F] = byte.Parse(MT_1403F.Text);
|
2015-11-21 06:02:15 +00:00
|
|
|
|
}
|
2014-12-16 02:13:29 +00:00
|
|
|
|
|
|
|
|
|
// Vivillon
|
2015-11-21 06:02:15 +00:00
|
|
|
|
SAV.Vivillon = CB_Vivillon.SelectedIndex;
|
2016-01-23 03:39:03 +00:00
|
|
|
|
|
2016-02-12 07:44:50 +00:00
|
|
|
|
int seconds = (int)(CAL_AdventureStartDate.Value - new DateTime(2000, 1, 1)).TotalSeconds;
|
|
|
|
|
seconds -= seconds%86400;
|
|
|
|
|
seconds += (int)(CAL_AdventureStartTime.Value - new DateTime(2000, 1, 1)).TotalSeconds;
|
|
|
|
|
SAV.SecondsToStart = seconds;
|
2016-01-23 03:39:03 +00:00
|
|
|
|
|
|
|
|
|
SAV.LastSavedYear = CAL_LastSavedDate.Value.Year;
|
|
|
|
|
SAV.LastSavedMonth = CAL_LastSavedDate.Value.Month;
|
|
|
|
|
SAV.LastSavedDay = CAL_LastSavedDate.Value.Day;
|
|
|
|
|
SAV.LastSavedHour = CAL_LastSavedTime.Value.Hour;
|
|
|
|
|
SAV.LastSavedMinute = CAL_LastSavedTime.Value.Minute;
|
2014-06-28 21:22:05 +00:00
|
|
|
|
}
|
|
|
|
|
|
2015-01-31 06:37:48 +00:00
|
|
|
|
private void clickOT(object sender, MouseEventArgs e)
|
|
|
|
|
{
|
2016-01-06 02:16:58 +00:00
|
|
|
|
TextBox tb = !(sender is TextBox) ? TB_OTName : sender as TextBox;
|
2015-01-31 06:37:48 +00:00
|
|
|
|
// Special Character Form
|
2016-01-31 07:03:43 +00:00
|
|
|
|
if (ModifierKeys != Keys.Control)
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
if (Application.OpenForms.Cast<Form>().Any(form => form.Name == typeof(f2_Text).Name))
|
|
|
|
|
{ Util.Alert("Window is already open."); return; }
|
|
|
|
|
new f2_Text(tb).Show();
|
2015-01-31 06:37:48 +00:00
|
|
|
|
}
|
2014-06-28 21:22:05 +00:00
|
|
|
|
private void showTSV(object sender, EventArgs e)
|
|
|
|
|
{
|
2014-11-26 00:17:41 +00:00
|
|
|
|
uint TID = Util.ToUInt32(MT_TID.Text);
|
|
|
|
|
uint SID = Util.ToUInt32(MT_SID.Text);
|
2015-09-21 03:34:09 +00:00
|
|
|
|
uint tsv = PKX.getTSV(TID, SID);
|
2015-03-11 01:44:51 +00:00
|
|
|
|
Tip1.SetToolTip(MT_TID, "TSV: " + tsv.ToString("0000"));
|
|
|
|
|
Tip2.SetToolTip(MT_SID, "TSV: " + tsv.ToString("0000"));
|
2014-06-28 21:22:05 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void B_Cancel_Click(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
Close();
|
|
|
|
|
}
|
|
|
|
|
private void B_Save_Click(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
save();
|
2015-11-21 06:02:15 +00:00
|
|
|
|
Main.SAV.Data = SAV.Data;
|
2015-10-24 23:33:44 +00:00
|
|
|
|
Main.SAV.Edited = true;
|
2014-06-28 21:22:05 +00:00
|
|
|
|
Close();
|
|
|
|
|
}
|
|
|
|
|
private void B_MaxCash_Click(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
MT_Money.Text = "9,999,999";
|
|
|
|
|
}
|
2014-07-26 21:56:06 +00:00
|
|
|
|
private void changeBadge(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
getBadges();
|
|
|
|
|
}
|
2015-09-20 19:05:03 +00:00
|
|
|
|
private void changeSpecial(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
MaskedTextBox box = sender as MaskedTextBox;
|
|
|
|
|
int val = Util.ToInt32(box.Text);
|
|
|
|
|
|
|
|
|
|
if (box == MT_HairColor)
|
|
|
|
|
box.Text = (val > 7 ? 7 : val).ToString();
|
|
|
|
|
if (box == MT_Hat)
|
|
|
|
|
box.Text = (val > 31 ? 31 : val).ToString();
|
|
|
|
|
}
|
2014-08-31 20:32:04 +00:00
|
|
|
|
private void change255(object sender, EventArgs e)
|
2014-07-27 07:49:36 +00:00
|
|
|
|
{
|
2014-08-31 20:32:04 +00:00
|
|
|
|
MaskedTextBox box = sender as MaskedTextBox;
|
|
|
|
|
if (box.Text == "") box.Text = "0";
|
2015-02-08 08:38:11 +00:00
|
|
|
|
if (Util.ToInt32(box.Text) > 255) box.Text = "255";
|
2014-07-27 07:49:36 +00:00
|
|
|
|
}
|
2015-02-27 06:50:27 +00:00
|
|
|
|
private void changeFFFF(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
MaskedTextBox box = sender as MaskedTextBox;
|
|
|
|
|
if (box.Text == "") box.Text = "0";
|
|
|
|
|
if (Util.ToInt32(box.Text) > 65535) box.Text = "65535";
|
|
|
|
|
}
|
2014-08-04 23:22:47 +00:00
|
|
|
|
private void changeStat(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
editing = true;
|
2015-12-23 15:57:41 +00:00
|
|
|
|
int offset = Convert.ToInt32(statdata[CB_Stats.SelectedIndex * 2].Substring(2), 16);
|
2015-11-22 01:23:00 +00:00
|
|
|
|
MT_Stat.Text = SAV.getPSSStat(offset/4).ToString();
|
2015-11-21 06:02:15 +00:00
|
|
|
|
L_Offset.Text = "0x" + offset.ToString("X3");
|
2014-08-04 23:22:47 +00:00
|
|
|
|
editing = false;
|
|
|
|
|
}
|
|
|
|
|
private void changeStatVal(object sender, EventArgs e)
|
|
|
|
|
{
|
2015-03-12 04:44:12 +00:00
|
|
|
|
if (editing) return;
|
2015-12-28 21:23:35 +00:00
|
|
|
|
int offset = Convert.ToInt32(statdata[CB_Stats.SelectedIndex * 2].Substring(2), 16);
|
2016-01-21 06:45:48 +00:00
|
|
|
|
SAV.setPSSStat(offset/4, uint.Parse(MT_Stat.Text));
|
2014-08-04 23:22:47 +00:00
|
|
|
|
}
|
2014-08-31 20:32:04 +00:00
|
|
|
|
private void giveAllAccessories(object sender, EventArgs e)
|
|
|
|
|
{
|
2015-11-21 06:13:15 +00:00
|
|
|
|
new byte[]
|
2015-03-11 01:44:51 +00:00
|
|
|
|
{
|
2014-08-31 20:32:04 +00:00
|
|
|
|
0xFE,0xFF,0xFF,0x7E,0xFF,0xFD,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
|
|
|
|
|
0xFF,0xEF,0xFF,0xFF,0xFF,0xF9,0xFF,0xFB,0xFF,0xF7,0xFF,0xFF,0x0F,0x00,0x00,0x00,
|
|
|
|
|
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFE,0xFF,
|
|
|
|
|
0xFF,0x7E,0xFF,0xFD,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xEF,
|
|
|
|
|
0xFF,0xFF,0xFF,0xF9,0xFF,0xFB,0xFF,0xF7,0xFF,0xFF,0x0F,0x00,0x00,0x00,0x00,0x00,
|
|
|
|
|
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,
|
|
|
|
|
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
|
2015-11-21 06:02:15 +00:00
|
|
|
|
}.CopyTo(SAV.Data, SAV.Accessories);
|
2014-08-31 20:32:04 +00:00
|
|
|
|
}
|
2014-11-22 07:23:48 +00:00
|
|
|
|
|
2014-12-13 06:58:34 +00:00
|
|
|
|
private void updateCountry(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
if (Util.getIndex(sender as ComboBox) > 0)
|
2015-09-21 03:34:09 +00:00
|
|
|
|
Main.setCountrySubRegion(CB_Region, "sr_" + Util.getIndex(sender as ComboBox).ToString("000"));
|
2014-12-13 06:58:34 +00:00
|
|
|
|
}
|
2014-11-22 07:23:48 +00:00
|
|
|
|
private void toggleBadge(object sender, EventArgs e)
|
|
|
|
|
{
|
2015-01-31 06:37:48 +00:00
|
|
|
|
int val = Convert.ToInt16(((PictureBox)sender).Name.Last().ToString()) - 1;
|
2016-01-21 06:45:48 +00:00
|
|
|
|
CheckBox[] chka = { CHK_Badge1, CHK_Badge2, CHK_Badge3, CHK_Badge4, CHK_Badge5, CHK_Badge6, CHK_Badge7, CHK_Badge8 };
|
2014-11-22 07:23:48 +00:00
|
|
|
|
chka[val].Checked = !chka[val].Checked;
|
|
|
|
|
}
|
2014-12-07 00:35:38 +00:00
|
|
|
|
|
|
|
|
|
private void CB_Multi_SelectedIndexChanged(object sender, EventArgs e)
|
|
|
|
|
{
|
2016-01-21 06:45:48 +00:00
|
|
|
|
PB_Sprite.Image = (Image)Properties.Resources.ResourceManager.GetObject(Main.SAV.ORAS || Main.SAV.ORASDEMO ? "tr_" + Util.getIndex(CB_MultiplayerSprite).ToString("00") : "tr_00");
|
2014-12-07 00:35:38 +00:00
|
|
|
|
}
|
2014-08-04 23:22:47 +00:00
|
|
|
|
}
|
2015-01-31 06:37:48 +00:00
|
|
|
|
}
|