Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

给闪光器添加初代二代闪光按钮 #7

Open
wants to merge 24 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
0f8f78f
Add files via upload
wubinwww Aug 6, 2023
5ccc035
Add files via upload
wubinwww Aug 6, 2023
dd38f9e
Merge branch '8CBCA403:main' into main
wubinwww Aug 13, 2023
fe98c46
Merge branch '8CBCA403:main' into main
wubinwww Oct 15, 2023
00e5f70
Merge branch '8CBCA403:main' into main
wubinwww Dec 9, 2023
e345190
Merge branch '8CBCA403:main' into main
wubinwww Dec 10, 2023
60313d5
Merge branch '8CBCA403:main' into main
wubinwww Dec 28, 2023
aa6ac9b
Merge branch '8CBCA403:main' into main
wubinwww Dec 31, 2023
c7829d6
Merge branch '8CBCA403:main' into main
wubinwww Jan 2, 2024
135d739
Merge branch '8CBCA403:main' into main
wubinwww Jan 18, 2024
b49fda2
Merge branch '8CBCA403:main' into main
wubinwww Feb 27, 2024
3d00a65
Merge branch '8CBCA403:main' into main
wubinwww Mar 11, 2024
caafc13
Merge branch '8CBCA403:main' into main
wubinwww Apr 10, 2024
7d02ace
Merge branch '8CBCA403:main' into main
wubinwww Jun 14, 2024
457cfb0
Merge branch '8CBCA403:main' into main
wubinwww Jun 18, 2024
114fbb1
Merge branch '8CBCA403:main' into main
wubinwww Nov 4, 2024
6f96790
Merge branch '8CBCA403:main' into main
wubinwww Nov 7, 2024
bf5abd7
Merge branch '8CBCA403:main' into main
wubinwww Nov 9, 2024
6f750cc
Merge branch '8CBCA403:main' into main
wubinwww Nov 10, 2024
bbca51c
Merge branch '8CBCA403:main' into main
wubinwww Nov 23, 2024
ba23980
Merge branch '8CBCA403:main' into main
wubinwww Dec 2, 2024
2171085
Add files via upload
wubinwww Dec 23, 2024
888e1c9
Merge branch '8CBCA403:main' into main
wubinwww Dec 24, 2024
43f21e7
Merge branch '8CBCA403:main' into main
wubinwww Jan 27, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
255 changes: 135 additions & 120 deletions WangPluginPkm/GUI/ShinyMakerUI.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

35 changes: 31 additions & 4 deletions WangPluginPkm/GUI/ShinyMakerUI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,11 @@ public enum Shinytype
RandomStar,
Xor,
}
public static Shinytype shinyflag = Shinytype.Star;
public static Shinytype shinyflag = Shinytype.Star;

private ISaveFileProvider SAV { get; }
private IPKMView Editor { get; }
private IPKMView Editor { get; }

public ShinyMakerUI(ISaveFileProvider sav, IPKMView editor)
{
SAV = sav;
Expand Down Expand Up @@ -674,6 +676,31 @@ public static PKM ShinyFunctionPlus(PKM pkm)
}
}
return pkm;
}
}
private void GEN1GEN2_SHING_Click(object sender, EventArgs e)
{
sw.Start();
switch (T)
{
case ShinyRange.BOX:
int i = SAV.CurrentBox;
SAV.SAV.ModifyBoxes(GEN1GEN2SHING, i, i);
break;
case ShinyRange.All:
SAV.SAV.ModifyBoxes(GEN1GEN2SHING);
break;
}
sw.Stop();
MessageBox.Show($"搞定啦!用时:{sw.ElapsedMilliseconds}毫秒", "SuperWang");
sw.Reset();
}
private static void GEN1GEN2SHING(PKM pkm)
{
pkm.IV_ATK = 15;
pkm.IV_DEF = 10;
pkm.IV_SPA = 10;
pkm.IV_SPD = 10;
pkm.IV_SPE = 10;
}
}
}
}