Commit graph

249 commits

Author SHA1 Message Date
Kaphotics
1779420af1 Add gen3 personal info, move object refs
All PersonalInfo arrays are referenced from PersonalInfo's class instead
of Legal

Fixed a few bugs in the process (species translation, gen switch)
2016-07-03 15:05:15 -07:00
Kaphotics
54bc0b320d Add PersonalInfo for gens4/5
Abstracted the PersonalInfo class to the multi-generation format.
Structure hasn't changed since BW sans a few additions.
2016-07-02 20:24:17 -07:00
Kaphotics
537246d4b9 Add SAV3 inventory code
Still need to figure out how I want to handle the different-index item
numbers.
2016-06-30 21:53:24 -07:00
Kaphotics
8a8926bcca Split up setforms
individual forms do it themselves, allows for main window to handle more
generations
2016-06-29 22:58:02 -07:00
Kaphotics
744c5b927b Isolate secret base ability code
Was referencing main form code; this is gen6 only so do it gen6 only.
Main form will change to handle all generations.
2016-06-27 22:27:53 -07:00
Kaphotics
6ddaa036d4 Update database to load formats correctly 2016-06-27 22:20:31 -07:00
Kaphotics
44fd5ca07c Update database viewer with Format filter
Filters reorganized into tablelayoutpanel for tight appearance.
2016-06-27 21:16:46 -07:00
Kaphotics
e6e3caabb2 Sync basic gen3 support
Still many things not yet working (item/inventory editing needs new
string resources)
2016-06-26 14:23:41 -07:00
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