Commit graph

403 commits

Author SHA1 Message Date
Kaphotics
027e0e19b1 Refactoring 2016-04-18 18:21:50 -07:00
Kaphotics
f39730b2b3 Init default savefile
No need to have warning when importing a wc6 as PKHeX has the default
info now.

Resolves #99 indirectly.
2016-04-17 15:41:28 -07:00
Kaphotics
802ecc9c66 Add wc6 import prompt if no SAV loaded 2016-04-16 11:32:25 -07:00
Kaphotics
707285cf0d Improve form centering, cleanup
Center database/report forms on load; doesn't happen by default as there
is no parent assigned when it is called by Show().

Add a form->form centering method, cleaned up the code behind the 16byte
hex seed fields.
2016-04-15 16:11:46 -07:00
Kaphotics
309d521201 Add loading override for Battle Vido
for those who want to check pk6's without modifications
2016-04-14 17:10:06 -07:00
Kaphotics
4ff64a2ff8 Fix transporter string
Cosmetic bug due to shuffling the languages around
2016-04-14 02:36:40 -07:00
Kaphotics
e590aaf0d4 Fix hotkey exit (Q) prompt 2016-04-12 18:40:37 -07:00
Kaphotics
115d1f0591 Language loading fix
PKHeX pt would cause exception

Flip ja/en order to match ingame values
2016-04-10 09:33:38 -07:00
Kaphotics
76e62ccd46 Fix language change deleting data
create a new pk6 separate from the form's pk6 storage which can be
modified.
2016-04-09 18:56:29 -07:00
Kaphotics
1f35c4a577 Fix jksv detection
Root of 3DS's sd card, not in the Nintendo 3DS folder
2016-04-09 18:09:13 -07:00
Kaphotics
cfe982dbe1 Add JKSV detection 2016-04-08 22:14:16 -07:00
Kaphotics
1c531b0673 Bring popup to front instead of alert
Any call to open a form that is already open (special characters, box
report, database) would alert that it's already open. Just bring it to
the front. Since it may be hidden, just move it back into view (align to
main program's top-left location)
2016-04-07 22:16:08 -07:00
Kaphotics
1eff57bd87 Simplify move suggestion method
Relying on linq... so rich.

Take the suggested moves, select a string array, and join.
2016-04-07 17:42:53 -07:00
Kaphotics
53e046fd7f Disallow exporting backup if sav is not exportable
CTRL-B could bypass the 'export' option being disabled.
2016-04-06 18:36:10 -07:00
Kaphotics
d3fbaed225 Remove moveID references, use language strings
Fixes #96
The legality core should not rely on text resources for legality output,
and move IDs are meaningless to the common user.
2016-04-06 18:13:43 -07:00
Kaphotics
cb9cab9ac0 wc6full fix
fix typo, add filter
2016-04-06 17:46:34 -07:00
Kaphotics
e0a2226228 Add cache detection to other sav detection methods 2016-04-05 20:37:36 -07:00
Kaphotics
4f6f0dddf0 Add cache folder detection to main window open 2016-04-05 20:27:57 -07:00
Kaphotics
d1cd61f0c4 Fix ctrl held at launch exception 2016-04-04 20:41:26 -07:00
Kaphotics
09811c32e4 Add verbose export
Partial commit error fixed
2016-04-03 17:11:58 -07:00
Kaphotics
cf7ca51d83 Let the program handle genderless pkm on load
Previously a Male Arceus would load (gender 0 = male), just have the
program handle the gender/species.
2016-04-02 14:03:04 -07:00
chenzw95
2ac37336dd Reset OpenFileDialog path only if it does not exist 2016-03-31 01:14:32 +08:00
chenzw95
f6c593ac7d Explicitly set InitialDirectory when creating new OpenFileDialog
Probably fixes most "no disk in drive" issues.
2016-03-31 00:24:58 +08:00
chenzw95
28671eaf2d ORAS: fix incorrect display if only daycare 1 is empty 2016-03-29 17:58:14 +08:00
Kaphotics
f55c2df910 Remove old ramsav cases
Unnecessary, program can't handle them anymore.
2016-03-25 00:10:57 -07:00
Kaphotics
a2c42a2293 RelearnMove suggestion instead of copyMoves 2016-03-25 00:10:11 -07:00
Kaphotics
ea3fabe8e9 Drop past gen pkm -> slot img refresh
Fixes #89
Thanks poutros
2016-03-24 16:44:57 -07:00
Kaphotics
2b91145612 Clear bad egg background when slot is overwritten
PKHeX will never write a sanity=0 or bad chk, so no need to check.
(anyone can make the program do that though!)
2016-03-23 21:35:36 -07:00
Kaphotics
eec754256a Lambda
Slick.
2016-03-22 20:30:48 -07:00
Kaphotics
c89e3a84c1 Allow menu strip to stay open on chk click
Allows the user to click multiple options in Set to SAV and Database
filters without having the options disappear on click.
2016-03-22 20:14:11 -07:00
Kaphotics
17109093bd Update legality display before alert
Instead of updating after displaying why it's (not) legal.
2016-03-20 21:57:50 -07:00
Kaphotics
7269c97699 Minor tweaks
Update legality on showdown export
Update all legality on legality analysis triggered (PB_Legal or
contextmenu)
2016-03-17 18:58:30 -07:00
Kaphotics
76b3031263 Invalidate legality on bad moveset
Make the legality pictureboxes global for the Main form.
2016-03-14 23:26:29 -07:00
Kaphotics
945d0187ee Lowercase hax detection 2016-03-14 17:55:42 -07:00
Kaphotics
9cf6753a36 Lowercase Update
Addresses #82
2016-03-14 17:54:30 -07:00
Kaphotics
c08e8a75c5 Safe accessing
2 gender chars at most -> any fuzz/bad pk6 won't throw here.
2016-03-13 23:20:45 -07:00
Kaphotics
b357a00fe3 calendar at current date on load 2016-03-13 18:38:11 -07:00
Kaphotics
c6439aa03c Add legality indication on loading to tabs 2016-03-13 18:09:12 -07:00
Kaphotics
2e0a06034c Add Full Size WC6 importing 2016-03-13 10:54:33 -07:00
Kaphotics
0ebbcbccb4 Move Legality check rewrite
Moved to checks
Returns why it's invalid
Added base egg move checks -- all eggs need level1 moves, can only be
pushed out. The move table acts as a sliding window; grab a list of
level1 moves, tack on relearn moves, then observe window view (last 4).
Added egg met level check
2016-03-12 09:16:41 -08:00
Kaphotics
019d074f0d Speed up startup time
SelectionLength takes a lot of time when loading fields, so only start
doing it when the form is totally loaded.
2016-03-11 20:57:55 -08:00
Kaphotics
9210ef06c6 Add Move checking
Tweaked some inner logic to validate moves on creation of new
legalityanalysis for use in display, with refresh methods.
2016-03-11 20:56:40 -08:00
Kaphotics
0e1599e9d5 Farewell QR! label
Moved into the contextmenu.

shortcuts available:
shift click picturebox -> out QR (to window)
alt click picturebox -> in QR (from clipboard)
2016-03-11 18:40:08 -08:00
Kaphotics
9729e5a30e Merge pull request #79 from chenzw95/unown-pid
Generate legal PID for Gen III Unown
2016-03-09 00:38:05 -08:00
chenzw95
f405840ba5 Generate legal PID for Gen III Unown 2016-03-09 16:29:18 +08:00
Kaphotics
97a8825406 Add legality text exporting
WIP -- no text is returned from the called method.
Fixes the Control Click preview box not exporting ek6 (was right click
previously).
2016-03-08 19:20:29 -08:00
Kaphotics
d284256088 Update EC for pre Gen6 randomPID/shiny 2016-03-06 22:21:54 -08:00
chenzw95
f731dd9248 For Gen III & IV Pokemon, generate PIDs to ensure legal nature 2016-03-07 11:24:34 +08:00
Kaphotics
bc71969277 Reduce legality checking footprint
No need to have recursion; profiler now indicates a >10x reduction in
processing power for this feature
2016-03-06 14:42:20 -08:00
Kaphotics
ff64a875fc ComboBox empty text => index 0
Easier clearing of values; instead of saying "stuff is wrong", it's
obvious the user deleted the text so just set it to the 0th item.
2016-03-05 16:59:16 -08:00