Commit graph

60 commits

Author SHA1 Message Date
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
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
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
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
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
Kaphotics
808e4b6a9f Add Adventure Start editing
Seconds Since 1/1/2000; can go negative (more than 32 bits, but we can't
ever realistically do that).
2016-01-22 19:39:03 -08:00
Kaphotics
c17cea9211 Redesign Trainer Info Editor 2016-01-20 22:45:48 -08:00
Kaphotics
061309ccd6 AdventureStart -> LastSaved
Misattributed
2016-01-20 21:25:33 -08:00
Kaphotics
17b2e4ea30 Disable Map Editing on failure to show map
Lumiose City's odd coordinate format can't be properly kept by the
NumericUpDowns; disabled in the case where coordinates are irregular
(%.5!=0).
2016-01-20 21:08:33 -08:00
Kaphotics
025b5a3c52 Add Adventure Start to editables
With that I'm pretty unhappy with the large form; might tabulate the
view in later commits.
2016-01-20 20:38:21 -08:00
Kaphotics
0b89682a64 Refactoring
Now have win10, new vs, new resharper, new c# tricks
2016-01-17 13:27:24 -08:00
Kurt
df5cbbd5b7 Fix Z coord saving
Reference the Z numericUpDown instead of the map's.
2016-01-06 23:01:48 -08:00
Kurt
52ea545b29 Remove more parenthesis
No functional change, just src clarity.
2016-01-05 18:16:58 -08:00
Kurt
06cd71b58b Add ORAS Demo support
Likely going to regret doing this; but this sets the groundwork for
enabling partial support for future games.
2015-12-29 22:03:27 -08:00
Kurt
b2c4a686b6 Fix other half of trainer editing bug
Oops.
2015-12-28 13:23:35 -08:00
Kurt
75c9799f7b Fix scrolling through trainer stats 2015-12-23 07:57:41 -08:00
Kurt
0064d1b497 Finish conversion of tr stats to SAV6 properties 2015-11-21 17:23:00 -08:00
Kurt
693084e947 Change array type specification
Defaulted to int; best to play it safe.
2015-11-20 22:13:15 -08:00
Kurt
925699af0d Fix Trainer Info editor issues + bugfixes
Fixed reported bugs by Wanderer1391; found a bunch more as a side effect
of refactoring. Didn't like how so many values were hard coded so I
moved them all into the SAV6 class for easier r/w.

Re-enabled the Map Coordinate editing for non-ramsavs.
Updated the Map Coordinate display to the ingame coordinate style (using
NumericUpDowns), the coordinates for player.X and player.Y are divided
by 18 to get the current cell coordinates.
2015-11-20 22:02:15 -08:00
Kurt
c719c335df Add Pokécenter & Gift Trainer Sprites 2015-11-17 21:02:23 -08:00
Kurt
101c0ad80f Minor bugfixes and cleanup
Added an Edited property for the save
blank slot (encrypted) is initialized once and can be used elsewhere
instead of constantly being recreated for no reason.
Fixed having 32 boxes for non-saves

All SAV editing forms now set the Edited flag when saving->close.
2015-10-24 16:33:44 -07:00
Kurt
661052bcf9 Refactoring of Save File Usage
Probably breaks a thing or two... time to get testing after this new
commit.

Wrapping the stored 'savefile' into an object which handles its use
allows a clearer separation of function and easier maintenance or future
updates.

May eventually move all get/sets for each form to allow property
fetching from any window, all logic handled within the class.
2015-10-23 20:13:32 -07:00
Kurt
f6bddf6fce Ramsav/Powersave cleanup
Old code which is unnecessary.
2015-10-14 18:45:45 -07:00
Kurt
d4ea56cfd6 Heavy refactoring
Remove numerous inter-form dependencies, remove hard-coded offsets,
update a few spots to use better programming practices.

Should increase the readability of PKHeX's source code.
2015-09-20 20:34:09 -07:00
Kurt
d6bbb57d7b Constrain entry of values 2015-09-20 12:05:03 -07:00
Kurt
d45e62b6ef Quick removal of unneeded code
binding stuff is set by the setForms method
2015-03-28 20:53:20 -07:00
Kurt
c46d609e7d Fix Vivillon Form loading/saving
Thanks KingGengar & Favna!
2015-03-28 20:50:59 -07:00
Kurt
b56edf1fec Continued Refactoring
Should be good now, a lot of silly stuff removed.
2015-03-11 21:44:12 -07:00
Kurt
bf7cd278cc Refactoring
Refactoring complete (for now).
2015-03-10 18:44:51 -07:00
Kurt
75100b6dad Cap u16 MaskedTextBoxes at 65535, set = if > 2015-02-26 22:50:27 -08:00
Kurt
ee050c531e Font Flexibility 2015-02-26 21:07:18 -08:00
SoujiSeta
7ecddd2150 Fix for uncaught numeric parse exception 2015-02-08 02:38:11 -06:00
Kurt
1630b38e50 Community Improvements 2015-02-06 18:30:35 -08:00
Kurt
6f516a23d1 Cleaning & Minor Improvements/Additions 2015-01-31 20:40:35 -08:00
Kurt
43b1afec3f Bugfixes 2015-01-31 15:59:23 -08:00
Kurt
63c52c5334 Adding font to Trainer window 2015-01-30 22:37:48 -08:00
Kurt
e44cac062b Translation method input update 2014-12-19 20:19:41 -08:00
Kurt
90dffe42ca Add some PSS stats 2014-12-17 16:31:44 -08:00
Kurt
4349a06898 Adding Vivillon Form ingame-encountering
Thank you mapaler (枫谷剑仙)!
2014-12-15 18:13:29 -08:00
Kurt
d3d7b33d8a Multilanguage Upgrades
Nuked Box IO, it was inferior relative to the functions that were added
afterwards.
2014-12-14 16:50:15 -08:00
Kurt
cc6b2aeda1 Adding Country/Subregion Multilanguage
Big thanks to Slashmolder for the location files and SciresM for parsing
them down to text files.
2014-12-12 22:58:34 -08:00
Kurt
981965899a Standardization 2014-12-11 21:45:01 -08:00
Kurt
0ae8e1a344 Add 2 stat descriptions
Captured, Evolved
2014-12-09 20:11:19 -08:00
Kurt
52d222d17f Merge corrections to fix on-load event 2014-12-06 17:13:06 -08:00
SciresM
9c22c82b31 Trainer Sprite support for ORAS. 2014-12-06 16:35:38 -08:00
Kurt
2832596e44 Continued Fixes and Improvements 2014-11-28 09:56:29 -08:00
Kurt
a20d3399e0 Re-enable Map Coordinates 2014-11-25 22:37:44 -08:00
Kurt
1ec197c728 Re-enable Maison Stats 2014-11-25 16:17:41 -08:00