mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-15 08:47:14 +00:00
Removing unused code
Yay for workarounds being less code intensive than first thought. Internet method is easier than doing it in the program; user needs internet on their 3DS to scan QRs anyway.
This commit is contained in:
parent
b9b553a0e9
commit
bba50f62e6
2 changed files with 43 additions and 1324 deletions
1251
Misc/QR.cs
1251
Misc/QR.cs
File diff suppressed because it is too large
Load diff
|
@ -1560,8 +1560,6 @@ namespace PKHeX
|
|||
|
||||
Array.Resize(ref ekx, 232);
|
||||
|
||||
if (ModifierKeys != Keys.Shift) // Not usually bypassable
|
||||
{
|
||||
string server = "http://loadcode.projectpokemon.org/b1s1.html#"; // Rehosted with permission from LC/MS -- massive thanks!
|
||||
string qrdata = Convert.ToBase64String(ekx);
|
||||
string message = server + qrdata;
|
||||
|
@ -1606,36 +1604,8 @@ namespace PKHeX
|
|||
Environment.NewLine + data.SPA_EV.ToString("00"),
|
||||
Environment.NewLine + data.SPD_EV.ToString("00"),
|
||||
Environment.NewLine + data.SPE_EV.ToString("00"));
|
||||
new QR(qr, dragout.Image, s1, s2, IVs, "ProjectPokemon.org & PKHeX").ShowDialog();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
// Old Broken QR Code
|
||||
PKX data = new PKX(pkx, "Tabs");
|
||||
string filename = data.Nickname;
|
||||
if (filename != data.Species)
|
||||
filename += " (" + data.Species + ")";
|
||||
string s1 = String.Format("{0} [{4}] lv{3} @ {1} -- {2}", filename, data.HeldItem, data.Nature, data.Level.ToString(), data.Ability);
|
||||
string s2 = String.Format("{0} / {1} / {2} / {3}", data.Move1, data.Move2, data.Move3, data.Move4);
|
||||
string IVs = String.Format(
|
||||
"IV:{0}{1}{2}{3}{4}{5}"
|
||||
+ Environment.NewLine + Environment.NewLine +
|
||||
"EV:{6}{7}{8}{9}{10}{11}",
|
||||
Environment.NewLine + data.HP_IV.ToString("00"),
|
||||
Environment.NewLine + data.ATK_IV.ToString("00"),
|
||||
Environment.NewLine + data.DEF_IV.ToString("00"),
|
||||
Environment.NewLine + data.SPA_IV.ToString("00"),
|
||||
Environment.NewLine + data.SPD_IV.ToString("00"),
|
||||
Environment.NewLine + data.SPE_IV.ToString("00"),
|
||||
Environment.NewLine + data.HP_EV.ToString("00"),
|
||||
Environment.NewLine + data.ATK_EV.ToString("00"),
|
||||
Environment.NewLine + data.DEF_EV.ToString("00"),
|
||||
Environment.NewLine + data.SPA_EV.ToString("00"),
|
||||
Environment.NewLine + data.SPD_EV.ToString("00"),
|
||||
Environment.NewLine + data.SPE_EV.ToString("00"));
|
||||
new QR(ekx, dragout.Image, s1, s2, IVs, "ProjectPokemon.org & PKHeX").ShowDialog();
|
||||
}
|
||||
new QR(qr, dragout.Image, s1, s2, IVs, "ProjectPokemon.org & PKHeX").ShowDialog();
|
||||
}
|
||||
private void clickFriendship(object sender, EventArgs e)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue