Commit graph

241 commits

Author SHA1 Message Date
Kaphotics
3351c7f9bb Add simple trainer editor (past gen)
Fixed save invalidation as well. GameVersions were detected based on
checksum validity.
Gonna change that so an invalid save can still be recognized (based off
of other markers)
2016-06-21 17:35:12 -07:00
Kaphotics
ff1b084523 Switch to expression on click
one liner.
2016-06-21 17:33:03 -07:00
Kaphotics
68f144e040 Re-add PKM property verification
Item/move/species (didn't add Ball and Version) being imported from a
.pkm or forcefully input now requires the user to OK before it is set to
the save.

EX: Hyperspace Fury isn't in X/Y, drag from another instance of the
program with OR/AS loaded and a Hyperspace Fury move... the user will be
alerted of the incompatibility and will be allowed to continue (and fix,
if desired).
2016-06-20 23:02:26 -07:00
Kaphotics
0d477a0153 Futureproof gen6 subforms
Species selection should be limited to species available in game; upon
adding S&M these comboboxes are ready!

The CB_HeldItem in SAV_SecretBase doesn't need filtering as it is
limited when the SAV is loaded to the main form.
2016-06-20 19:07:40 -07:00
Kaphotics
6378eb7f56 Current progress
Still a few milestones left to hit before official release.
2016-06-19 21:22:43 -07:00
chenzw95
908195fe46 Fix truncation of box unlocked BG flags 2016-05-20 16:26:24 +08:00
Kaphotics
13ec0e9e89 Wondercard Window refactor
No functional change; more OOP.
2016-04-21 19:16:55 -07:00
Kaphotics
b2ddb4d80c No loading maison stats for Demo 2016-04-17 13:54:08 -07:00
Kaphotics
d0e12d306a Add event constant diff
Constant index display changed to +=1 to match ingame scripting callouts
2016-04-16 14:31:07 -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
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
cb9cab9ac0 wc6full fix
fix typo, add filter
2016-04-06 17:46:34 -07:00
Kaphotics
5fb65c5ba7 Only screen gen6 for legality
Main window only checks legality for gen6, Database currently ignores
this restriction and runs the check anyway (unnecessary).
2016-03-30 18:54:36 -07:00
Kaphotics
9645cccbb5 Fix EonTicket const not being set if dropped direct
Rewrote the check to be a separate method for future cases of version
exclusive event cards.

Also fixed a full card album underwriting data to the bitflag region.
2016-03-30 18:28:31 -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
0ceec780a1 Wondercard window bugfixes
Import wc6 fixed, dropping folder fixed (now also refreshes the view and
adds the wondercard ID)
2016-03-19 15:50:01 -07:00
Kaphotics
894ff48734 Database view scroll override
Allow scrolling within panel (instead of while mouse is over the
VScrollBar.
Since the updateScroll method isn't called by adjusting the value
directly (ie, not a scroll event) we just update the boxes manually.
2016-03-18 19:33:09 -07:00
Kaphotics
3c7cab83d1 Add legality filtering to database search 2016-03-15 21:10:33 -07:00
chenzw95
91535c8a7b Fix Pokedex form bitflags not saved in XY 2016-03-15 15:04:21 +08:00
Kaphotics
9cf6753a36 Lowercase Update
Addresses #82
2016-03-14 17:54:30 -07:00
Kaphotics
2e0a06034c Add Full Size WC6 importing 2016-03-13 10:54:33 -07:00
Kaphotics
5b87114a2a Bugfix Invalid Checksum alert
PK6 Object may be modified in parent form, resulting in invalid checksum
errors if the same PK6 is reloaded.

Solved by not passing object, pass raw data.
2016-03-12 09:12:51 -08:00
Kaphotics
ea09161ffd Min Size = Initial Size
One pixel less resizes the listbox to one entry smaller. Fix by making
it not able to do that.
2016-03-04 19:39:43 -08:00
Kaphotics
643b2afb52 Cleanup
Safe casts aren't needed for Array.IndexOf
Initial Ribbon images are already set up, no need to rereference
Slicker way of inverting checkboxes.
2016-02-24 14:59:03 -08:00
Kaphotics
c4f9819314 Use calculated level instead of stat level 2016-02-22 22:53:21 -08:00
Kaphotics
3bf15ca5de Foreign game bool fix 2016-02-13 23:01:18 -08:00
Kaphotics
819d483821 Fix XY FormDex using ORAS 2016-02-13 23:00:14 -08:00
Kaphotics
eae4b2ad5c Add Pokedex entry form editing
Thanks suloku for mapping out the order of flags!

Fixed a few bugs with the existing ModifyAll code.
2016-02-13 19:17:35 -08:00
Kaphotics
8f84e13fb0 Fill Dex -> Modify Dex methods 2016-02-12 23:01:28 -08:00
Kaphotics
a48642cb32 Fix Adventure Start Time editing
Previously only date was editable and the time was not considered.
New logic takes first datetime, removes seconds, then adds the second
datetime's seconds.

Since the second datetime's date is 2000, 1, 1, the resulting value is
just totalseconds (since midnight) regardless of date (which is the
first datetime).
2016-02-11 23:44:50 -08:00
Kaphotics
7b380cd0aa Refactoring
Minor fixes to coding style

PGT fixed default OT name from pk4HeX to PKHeX. Yay for replace all
"pk"-"pk4" case insensitivity.
2016-02-11 23:42:42 -08:00
Kaphotics
f296154d30 Refactoring
Merging declaration and assignment outside of form constructor.

Alert user if they tried to set Eon Ticket to X/Y.
2016-02-11 00:43:44 -08:00
Kaphotics
d2214f4fa1 Refactoring 2016-02-10 00:33:42 -08:00
Kaphotics
da862c2ae5 Remove "Cancel" option where not necessary 2016-02-09 15:35:56 -08:00
Kaphotics
f290e5be32 Cleanup 2016-02-06 16:27:09 -08:00
Kaphotics
9facabd945 Add if (obtained & CTRL) skip to FillDex
Satisfies https://projectpokemon.org/forums/showthread.php?48120
2016-02-05 22:11:34 -08:00
Kaphotics
115ca91bea Fix HPType off by 1
Fixes #73
Thanks krelbit!
2016-02-03 15:41:43 -08:00
Kaphotics
a329a17c62 Tweak Box name get/set 2016-02-01 22:33:15 -08:00
Kaphotics
2d4d973689 Refactoring
lines--
2016-01-31 23:15:54 -08:00
Kaphotics
b67598cfb9 Refactoring
Simplify a few usages, tweak specialchars to only have one instance open
(in a different way)
2016-01-30 23:03:43 -08:00
Kaphotics
6b04a46618 Remove unneeded check
0 species causes a return two lines above, thus 0 species && 0 ec will
never happen.
2016-01-29 18:04:02 -08:00
Kaphotics
1c53243283 Remove ram2sav
Also removed injectiondebug and trade packet handling.

Improved BAK suggested filename (last saved timestamp)
2016-01-27 20:24:32 -08:00
Kaphotics
dee466cf73 Add Min/Max button 2016-01-24 10:23:57 -08:00
Kaphotics
35465b837e Minor refactoring
Load used WC even if dismissed, i/o for main display operates by passing
PK6 instead of byte[]
2016-01-24 10:19:30 -08:00
Kaphotics
436141b073 Design/Internal tweaks (Refactoring)
Saving of counts is done on close instead of on change.
Simplified the representation of generating random berry plots.
2016-01-23 14:50:22 -08:00
Michael Scire
6230dd7bd6 Add Pokeblock editing support. 2016-01-23 13:00:44 -08:00
Kaphotics
0a7f10140c WC Editor Tweaks
Don't auto-load first wondercard (prevents "GIFT USED?" spam)
Simplify img preview, also add 30% opacity for used gifts to indicate
status.
2016-01-23 10:16:07 -08:00
Kaphotics
0369a817c5 Remove unneeded check
if ORASDEMO is true, then ORAS is already true
2016-01-23 10:15:12 -08:00
Kaphotics
cfc93ef96e Minor Tweaks (ORASDEMO)
Simplifies checking for ORAS so that ORAS includes ORASDEMO by default.

Hide tab pages properly.
2016-01-23 08:42:11 -08:00