Commit graph

365 commits

Author SHA1 Message Date
Kaphotics
e8c1fb662d Add automatic save backup
Create "bak" file, or export a backup successfully anywhere to receive
the "create bak folder" prompt. When saves are loaded (with a new
timestamp), they will be backed up. Repeat loads of the same file will
not be backed up, as a backup of that file already exists
(OT/Game/SavedAt is the hash used).
2016-02-11 21:41:31 -08:00
Kaphotics
cab1959aa7 Add Version Name to backup name
Seems ok.
2016-02-11 20:53:11 -08:00
Kaphotics
1b4975f6c5 SAV remember import name&dir 2016-02-11 00:56:10 -08:00
Kaphotics
d2214f4fa1 Refactoring 2016-02-10 00:33:42 -08:00
Kaphotics
62bb9350ba Improve 1MB error messages 2016-02-09 15:44:59 -08:00
Kaphotics
9f6e31f6eb Fix 1MB importing opposite
Yes => 0
No => 1
Nobody uses 1MB imports anyway...
2016-02-09 15:37:12 -08:00
Kaphotics
da862c2ae5 Remove "Cancel" option where not necessary 2016-02-09 15:35:56 -08:00
Kaphotics
97b766eadb Add SAV6 ChecksumsValid property 2016-02-09 15:30:10 -08:00
Kaphotics
091f5c10d2 Simplify getStringList method calls
No need to go to List and back to array.
2016-02-09 15:27:24 -08:00
Kaphotics
0d57b12d3d Make sortBoxes accessible
ctrl click the "Box" tab
2016-02-08 23:57:25 -08:00
Kaphotics
d1f04b28ab Refactoring
Clarity++
2016-02-02 20:05:46 -08:00
Kaphotics
2d4d973689 Refactoring
lines--
2016-01-31 23:15:54 -08:00
Kaphotics
0a22a9cab5 Switch PP textboxes to masked
Removes some unnecessary code.
2016-01-31 20:44:30 -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
803a09e1c2 Improve Menu->Open 'main' detection
If main exists, default filename to 'main' when dialog shows
Added detection if main is in last opened folder (if the user copied to
a nonstandard path).
2016-01-29 18:46:14 -08:00
Kaphotics
be2b86e973 Don't show form if already open
Loop through all openforms to see if any are already open.
2016-01-29 18:02:54 -08:00
Kaphotics
b95cbbbfce Simplify Unicode usage
Now shows current status as a checkbox.
2016-01-29 17:27:20 -08:00
Kaphotics
970a887728 Clear OT memories of transferred mons
No memories are formed, remove them if they exist.
2016-01-28 18:51:27 -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
2a1bb41f62 Recalculate IV total on randomization
updateIVs calls updateStats at the end.
2016-01-26 21:06:53 -08:00
Kaphotics
8469d04417 Refactoring
Polishing polish
2016-01-26 21:04:17 -08:00
Kaphotics
9bfeb050c9 Only export team if data exists
Try-catch already handles it, but let's be safe.
2016-01-26 18:52:08 -08:00
Kaphotics
8232de08a4 Lock remaining controls 2016-01-26 17:53:55 -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
Michael Scire
6230dd7bd6 Add Pokeblock editing support. 2016-01-23 13:00:44 -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
ea000cc95d Avoid invalid cast errors
Should only use Util.getIndex when a BindingSource is set with a
retrievable value. The method will now throw an exception instead of
handling it to let the programmer know that the wrong fetch method was
used.
2016-01-21 22:55:20 -08:00
Kaphotics
f8f0d76793 Cleanup
Simplified cbItem a little.

Check for null input, then null selected value; catch only happens if
the method is fed something irregular.
2016-01-21 22:40:59 -08:00
Kaphotics
c768124591 More refactoring
Removed a lot more unneeded parenthesis.
2016-01-17 17:07:19 -08:00
Kaphotics
dd83330191 Implement ContextMenuStrip translation 2016-01-17 15:35:02 -08:00
Kaphotics
0b89682a64 Refactoring
Now have win10, new vs, new resharper, new c# tricks
2016-01-17 13:27:24 -08:00
Kurt
0e021b42c6 Fix CTRL/ALT held during nickname update
Only should fire when sent from L_Species. (sure I could hard code it
sender as Label == L_Species but nah)

Thanks Joedor.
2016-01-14 21:05:05 -08:00
Kurt
6e29ad20d6 Update changelog
Forgot to store the total download count before publishing the latest
release.
2016-01-11 21:19:01 -08:00
Kurt
bd5a1c7db3 Use string method instead of control based 2016-01-09 12:46:13 -08:00
Kurt
f9fa461955 Lock UI
Prevent movement in designer
2016-01-09 12:46:10 -08:00
chenzw95
674418cd06 fix pokemon feelings not being saved correctly 2016-01-08 15:30:09 +08:00
Kurt
52ea545b29 Remove more parenthesis
No functional change, just src clarity.
2016-01-05 18:16:58 -08:00
Kurt
adcf59f5f5 Remove redundant parenthesis
No functionality change
2016-01-04 22:43:22 -08:00
Kurt
10aa58078a Tweak filename detection
Fixes crash with one character executable name. Used command line
argument 0 to detect filename instead of Process.GetCurrentProcess()

System.Media added to using, no more System.ETC within the main form.
2016-01-03 10:47:44 -08:00
Kurt
8352611042 Split save exporting to multi-option
Alt modifierkey not playing nice.

To be conformed with shortcuts/languages in a later commit.
2016-01-02 22:31:04 -08:00
Kurt
7d2c853ffd UI Improvements
Moved a lot of shortcut/button functions to the main menu; should be
much neater in terms of presentation.

Split up Box Load/Dump.
Tweaked the Translation function in Util to properly find every
menustrip items.
Translation files updated with new Menu layout.

Also made the form always launch in max size, thus removing the 'Toggle
Box Interface' option.
2016-01-02 20:22:53 -08:00
Kurt
872f2a940c Fix Egg-Set bugs
Thanks StarFisherX!
2016-01-01 21:18:23 -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
6246b01191 Add display of secure values
Not editable, as the user should not have to modify. Just display!
2015-12-28 13:52:08 -08:00
Kurt
3147d8b1df pk2pk Refactoring
Transition from modifying byte arrays to just having objects mediate the
conversion.

Farewell pk2pk!

The PK# objects can convert up to the next generation through their own
methods; doing this required having class structures for all generations
:)
2015-12-27 21:26:07 -08:00
Kurt
24703bfc22 Minor refactoring
Do things better.
2015-12-26 21:17:23 -08:00
Kurt
494c622c40 Simplify argument usage 2015-12-26 18:35:10 -08:00
Kurt
98a479ded3 Implement PGT/PGF -> PK6 file opening 2015-12-26 16:05:26 -08:00
Kurt
cd962396af Cache initialization state on language change
User prompts -> restore after finish

Moved mouseslot right-click abort logic earlier.
2015-12-26 10:26:42 -08:00
Kurt
1c257c0a24 Implement PGF import->convert
Program should now be able to handle imported PGFs; due to no gen5 save
data being available, that data has to be fabricated. User has to enter
in their OT/ID/Version details, but a skeleton to make it legal is the
default data.
2015-12-25 14:08:43 -08:00