Commit graph

306 commits

Author SHA1 Message Date
Kurt
d91f3ee231 Path.Combine 2015-12-14 07:52:25 -08:00
Kurt
c51e3ae8a5 Fix xorpad infinite loop when loading from exepath 2015-12-12 23:39:43 -08:00
Kurt
8fa502832a Add export to showdown for tab viewer 2015-12-09 19:44:43 -08:00
Kurt
5cf880250f Add Showdown Team exporting 2015-12-09 19:40:29 -08:00
Kurt
a4b5033b1e Mess with showdown exporting
Still nonfunctional, just have to write the encoder after relaying all
relevant information to the ShowdownSet
2015-12-07 21:46:48 -08:00
Kurt
1977a50923 Show Mothim & Scatterbug even though no formes 2015-12-06 22:40:11 -08:00
Kurt
3c4da31d1a Fix (flip) Encounter Type Visibility
Mistake in previous commit.
2015-12-01 23:27:16 -08:00
Kurt
b4c4419015 Minor reorganization
CLeaned up some unnecessary parenthesis and simplified a few
expressions.
2015-12-01 23:08:16 -08:00
Kurt
c9dad89e11 Minor refactoring
Cleaned up a little bit of code and used more magic references.
2015-11-29 12:59:13 -08:00
Kurt
62f0d9e7aa Add wc6 conversion error messages
Previously had none.
2015-11-28 22:53:46 -08:00
Kurt
9df8e3c1fd Add sanity checks to wc6->pk6 conversion 2015-11-27 17:39:38 -08:00
Kurt
28390758e6 Implement wc6->pk6
"There's not enough data in the wondercard to faithfully create the
Pokémon!"
2015-11-26 07:49:44 -08:00
Kurt
c9d0db23ac Refactoring
Increase flexibility, use game personal data and structure to clearly
define what is going on.

Helps for implementing future games.
2015-11-25 22:20:09 -08:00
Kurt
d6f916b4e6 Tweak Drag&Drop
Boxes now accept external files in addition to the existing slot
swapping.
2015-11-22 11:03:38 -08:00
Kurt
dba0719976 Use base pkx class filename 2015-11-22 10:51:09 -08:00
Kurt
0d23f53d84 Fix Drag&Drop
Just do it manually after initialization. No way to bind the events in
the designer.
2015-11-22 10:45:44 -08:00
Kurt
62eddb6aec Misc fixes 2015-11-21 19:27:50 -08:00
Kurt
6cba50ba2b Remove hard coded box count 2015-11-19 22:44:16 -08:00
Kurt
d0355253bf Use boxdata property to dump 2015-11-19 22:42:57 -08:00
Kurt
242bedac43 Sync changes
VS/github didn't catch this, had to reopen the project.
2015-11-18 21:43:51 -08:00
Kurt
d36c133536 Move some form initialization to designer
Have to keep PictureBox.AllowDrop = true as it's normally overridden and
needs to be set after initialization.
2015-11-18 21:37:30 -08:00
Kurt
f3ea73787b Add alt/shift click
Shift click setting is not accessible without the hotkey, not going to
add it as a Right Click Menu.

Main had to expose more methods (to access info from tabs); standardized
all references to the database path as well.
2015-11-14 19:41:39 -08:00
Kurt
dc5fc1f175 Add deletion method for database tool
Can delete files from database folder, or save file.

Easy way to filter crap out to delete, yay.
2015-11-14 18:17:54 -08:00
Kurt
72e149dc70 D&D: user's temp folder instead of application path 2015-11-14 14:19:40 -08:00
Kurt
71d029fbb4 Don't dump empty slots 2015-11-13 18:29:59 -08:00
Kurt
0df9e35397 Arceus, not Mew
Forgot to save changes.
2015-11-05 23:17:06 -08:00
Kurt
c15cbe2870 Separated initialization bool for clear purpose
formInitialized is for closing the splash screen and showing the main
form.
fieldsInitialized is for setting up and not running updates until fields
are ready to be updated.

Arceus is now the initial species instead of language dependent
(Abomasnow).
2015-11-05 22:59:55 -08:00
Kurt
0e82433f21 Redefine initializing logic
No longer short circuits to true when loading a blank file on startup.
Accomplished by storing the old value, temporarily setting to false and
then setting back when finished.
2015-11-05 22:47:39 -08:00
Kurt
34856658d4 Clean rescaling formula
Thanks AibotNya for bringing this to my attention!

No functionality is changed; just clearing up some mud.
(306 is to allow 10px on each side of the tab control)
2015-11-05 22:08:24 -08:00
Kurt
35ca2d6db4 Add ramsav loading on boot 2015-11-03 18:35:27 -08:00
Kurt
c4ba137333 Fix ramsav storage getting cleared
Thanks Odaxis!
2015-10-26 20:17:50 -07:00
Kurt
15e3ff2eb1 Reconfigure current box saving logic
Moved to after the chunk check; it's also physically impossible to save
the file on the Party/Battle Box view so I don't even bother checking
now.
2015-10-25 18:12:07 -07:00
Kurt
d1c21d460f Cleanup
Removed duplicate array initialization for getting slot filler.

Improves speed ever so slightly ;)

Other minor cleanup/rearrangement
2015-10-24 18:16:22 -07:00
Kurt
b1c0beff74 Send "chunk uninitialized detection" to class
yeah, get educated.
2015-10-24 16:52:25 -07:00
Kurt
e85c57b35c Re-enable encounter type
Visibility toggling is sufficient; there never was code to re-enable.

Old cosmetic bug :)
2015-10-24 16:41:49 -07: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
1b514bc84f Move SAV box sorting to class 2015-10-24 12:31:29 -07:00
Kurt
775dc74287 Add trade friendship altering
Special cases allow friendship to be min/maxed anyway.
Added get/set for current friendship.
2015-10-24 11:57:07 -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
2e5f447dce Begin Implementing auto-modification when set
There's a few ways to finish implementing, as the program needs a way to
access Trainer Information on the fly. Quick and dirty way is to add new
global variables and set them when a save file is loaded, and a cleaner
way would be to move the 'savefile' variable into the sav class and do
all accessing from there.

Not yet decided on which. For now, the added items and code still do
nothing.
2015-10-19 19:08:56 -07:00
Kurt
ebae9a933b Cleanup of Delete/View
Removed unneeded picturebox array (duplicate of slotpictureboxes)
Removed temporary variable 'picturebox', just straight up compare to
null.
Deleting now instantly sets the picture to null, instead of generating
the image. (might not have been the best idea if I somehow decided to
change slot filling)
Empty slots now instantly return null (empty) for their image instead of
doing layering.
2015-10-14 20:10:09 -07:00
Kurt
1961c972c3 Simplify setting pk6's to XY with ORAS exclusives 2015-10-14 19:59:43 -07:00
Kurt
f3ec13965f Fix ramsav loading logic
Since ramsavloaded was defined when loading (and removed), we need to
define the ramsav before loading it.

Fix for checksum button.
2015-10-14 18:52:50 -07:00
Kurt
f6bddf6fce Ramsav/Powersave cleanup
Old code which is unnecessary.
2015-10-14 18:45:45 -07:00
Kurt
9d9250fbc1 Revisit slot loading logic
savLoaded is useless now
2015-10-14 18:33:51 -07:00
Kurt
77b4f9cc0f Fix injectiondebug loading
woww I search for the start but never use it, wp
thanks Cuestion24
2015-10-13 19:10:55 -07:00
Kurt
468bf14dad Fix bad pk6 detection logic
&& -> ||

Also changed to using PK6 class and early-checking for a bad sanity.
2015-10-13 18:58:59 -07:00
Kurt
6e207b677c Isolate box dump method
Now using the get->FileName for the pk6.
2015-10-12 17:06:30 -07:00
Kurt
afdb94ba13 Fix silly edge case
Ensure the checksum is valid before loading the data
2015-10-11 23:43:07 -07:00
Kurt
b352de254e Add optional focusing when loading to tabs 2015-10-11 23:36:20 -07:00