Commit graph

1812 commits

Author SHA1 Message Date
Kaphotics
74dd6012d1 Hide Tab_Other smarter
Hide it if daycare isn't documented.
Also, fix drag&drop cursor feedback for non-box slots. Previously,
initiating a d&d on a party slot would reset the drag cursor to the
default (arrow + square) instead of keeping the sprite-cursor.
GiveFeedback -> UseDefaultCursors = false :)
2016-09-11 18:57:12 -07:00
Michael Scire
a2fb6bdfa8 Merge branch 'master' of https://github.com/kwsch/PKHeX 2016-09-11 16:22:23 -07:00
Michael Scire
efc66fd0b3 Fix Mr. Mime/Farfetch'd Gen I/II name bugs 2016-09-11 16:22:05 -07:00
Kaphotics
822b8f2148 Add userprefs to gitignore 2016-09-11 15:19:38 -07:00
Kaphotics
315a2c1a5f Delete userprefs again 2016-09-11 15:18:43 -07:00
Kaphotics
7c4615a51e Delete userprefs 2016-09-11 15:18:06 -07:00
Kaphotics
d3188b51b8 Merge pull request #260 from ajtudela/master
Full translation for spanish language except C-Gear Skin. I don't know why it didn't have translated..
2016-09-11 15:16:42 -07:00
Kaphotics
f753816cb7 Fix gen2 met location
Wasn't being loaded, the last loaded save file locations persisted. Load
gen2 locations when loading a gen2 save file.
Closes #262
2016-09-11 15:14:42 -07:00
Kaphotics
984292c810 Cap gen3 item count @ 99
Closes #264
2016-09-11 14:58:19 -07:00
Kaphotics
418fbb7e22 Fix GenIII save cloning bug
Just write the save back when cloning; previously, the reserved section
wasn't set back.
2016-09-11 14:58:03 -07:00
Michael Scire
0b52c9a208 Fix Gen I/II Save cloning bug 2016-09-11 14:54:20 -07:00
Kaphotics
3d95df6fc6 Translation fixes
Add gen3/2/1 text files to Resources (existing code would fall back to
english).

L_Form is autosized now; the combobox may stick out on the right for
other languages -- the combobox shouldn't be made smaller just because
the form label is too big.

Closes #259

Sneaks in typo fix in ShowdownSet
2016-09-11 13:02:56 -07:00
Kaphotics
50b4ebc4ba Catch & Rethrow getFieldsfromPKM
Initialization variable is captured, reset, then the pkm is loaded. If
an exception is thrown, the initialization state is not restored.
There's other capture-reset-restore cases but pkm loading is the only
one exposed to bad input.

Should prevent #261 from happening. fieldsInitialized is checked in a
bunch of events.
2016-09-11 12:52:28 -07:00
ajtudela
1d0d2b8d32 Full translation for spanish language except C-Gear Skin. I don't know why it didn't have translated.. 2016-09-11 13:53:37 +02:00
ajtudela
b02e216255 Merge pull request #7 from kwsch/master
Update
2016-09-11 11:40:41 +02:00
Kaphotics
f7afb88052 Fix gen3 inventory bugs
Thanks @sora10pls !

Premier Ball already in Balls pocket (remove from General Items list)
Hide [Give All] button in Gen3, same treatment as Gen1/2.

Closes #257
2016-09-10 23:14:52 -07:00
Kaphotics
9bd5ad0694 Merge branch 'master' of https://github.com/kwsch/PKHeX 2016-09-10 23:12:30 -07:00
Kaphotics
a6f688b3ff Fix gen3 ability dupe
Thanks @ricksee !
Gen3 second ability for same-ability mons is stored as 0, same deal for
gen4.
MainPK4 alteration is an unneeded-code removal, gen4 only has abil0&1,
not 2 (hidden) like gen5.
Closes #256
2016-09-10 23:12:22 -07:00
Kaphotics
149bd08747 Merge pull request #258 from easyworld/master
Chinese translations for Gen 1-3
2016-09-10 20:32:19 -07:00
easyworld
946a475e68 Chinese translations for Gen 1-3 2016-09-11 11:15:50 +08:00
Easy World
c2889636d6 Merge pull request #9 from kwsch/master
Update
2016-09-11 09:11:08 +08:00
Kaphotics
0a1fc199ba Remove DVs label, readonly->enable IV
We're gonna call them IVs for gen1/2 because this is {CURRENT YEAR}.
Too much of a hassle to have multiple controls hidden just for
generation specific nomenclature differences.

Change the Readonly for HP & SpD to Enabled (and flip bool states); mask
now appears to enforce non-centering, no need to pad with 0 to fake that
it's centered.

Closes #255, 8 bits down.
2016-09-10 17:14:25 -07:00
Kaphotics
cd0f04eadd Fix IV/DV label gen2
#240

Gen3 onward = IV
Gen1/2 = DV
2016-09-10 14:43:51 -07:00
Kaphotics
da8a538c73 Mono fix getLocationList
Fix verified in #229 , still other mono related issues to sort out.
2016-09-10 14:31:03 -07:00
Kaphotics
346745d618 Implement past gen strings for 'es' lang
Added fallback method to grab the english file if the requested language
file does not exist.
2016-09-10 14:30:07 -07:00
Kaphotics
693dc091a7 Merge pull request #250 from ajtudela/master
Spanish translations for Gen 1-3
2016-09-10 13:40:41 -07:00
Kaphotics
191debe520 Minor qol improvements
Closes #251 -- remaining stuff pending a future localization update

#240 -- DVs now shown instead of IVs

Hides Box tab for saves that do not have Box (ORAS Demo)
Hides Daycare Egg Available for gen 1 (use correct return type)
2016-09-10 13:40:03 -07:00
ajtudela
c3b7601adf Spanish translations for Gen 1-3 2016-09-10 16:14:34 +02:00
ajtudela
4db179f6d6 Merge pull request #6 from kwsch/master
Update
2016-09-10 16:06:11 +02:00
Kaphotics
cfb8d71f84 Fix ribbon name
Exception was thrown in ribbon editor, easy to replicate by giving all
ribbons to a pk4 (gen4 save file).

Property name now matches pk5/pk6.
2016-09-09 23:59:13 -07:00
Kaphotics
ca6a0da9db ShowdownSet Improve error handling
Because people can't follow directions and try to type it out manually
-> incorrect input
2016-09-09 19:13:48 -07:00
Kaphotics
92448f478d Fix box0 sort/delete
Closes #248

Thanks @exegg
2016-09-09 08:40:57 -07:00
Kaphotics
eaa12f59bd Disallow out-of-bounds puff values
Closes #246

Might as well use the SAV property "Puffs" when loading instead of only
when saving.
2016-09-08 20:29:12 -07:00
Kaphotics
f0d13da35a MaxMoney capping 1-4
Closes #245

Thanks @sora10pls !
2016-09-08 20:20:32 -07:00
Evan Dixon
9e9a506ac2 Merge branch 'master' 2016-09-08 15:33:54 -05:00
Evan Dixon
4c87b7f887 Merge branch 'master' 2016-09-08 15:31:17 -05:00
Kaphotics
de6205ac4b Fix gen1/2 visibility
Closes #242

Thanks @sora10pls !
2016-09-07 09:10:38 -07:00
Kaphotics
822fc47dc4 Remove invalid pk sizes
export always is in list format for gen1/2, these were introduced in
9b6552d314
which was an incorrect 'fix' for getting files dumped from dumpBoxesToDB
to show up in SAV_Database. This underlying issue has been resolved with
the two previous commits.
2016-09-06 19:52:03 -07:00
Michael Scire
b2860ea3de Simplify box bin loading 2016-09-06 19:40:54 -07:00
Michael Scire
8b608389eb Fix box dumping/loading for Gens I/II 2016-09-06 19:35:36 -07:00
Kaphotics
b483cd8002 Check if 'wc6' exists
Thanks Destinyy!
2016-09-06 17:19:30 -07:00
Kaphotics
06942089fa Add Event Flag warning
Closes #236
Altering Event Flags may impact other story events. Save file backups
are recommended.
2016-09-06 17:01:31 -07:00
Kaphotics
7d4a60efdd Tweak IV/EV events
#237

Hides the Shiny star on gen1, and re-hides the extrabytes for gen1/2
Adds missing click event for Label_SPC, as it was recently added.
Replaces the Label_SPA in gen1.
2016-09-06 16:46:00 -07:00
Kaphotics
7ef4a73fcd Hide met tab for gen1 saves, fix verifiedPKM
6->1->translate->6 needs translation done for the Met tab as it being
removed does not list it in the control list when translating, so just
trigger it again.

Other methods had to be tweaked to not reference the tabMain tabs by
index (instead by control names!)

Simplify the verifiedPKM method. removes unnecessary goto and fixes
recent added bug :)
As a side effect the color tracking variables are no longer, now using
the ResetForeColor/ResetBackColor methods of the control -- duh
2016-09-05 23:13:46 -07:00
Kaphotics
12fc528d34 Tweak HGSS Ball set
PGT -> PK4 doesn't have HGSS ball data (value=0)
Return the higher of the two
When setting, consider the Fateful Encounter status before writing to
0x86
2016-09-05 20:20:56 -07:00
Kaphotics
75fbaab26f Reset pkm before repopulating
Clear init states too.

Also updates program text (window title) to indicate if it is in HaX or
not (makes it clear when people take screenshots).
2016-09-05 19:44:15 -07:00
Kaphotics
39ed9c4d0d Fix Drag&Drop gen1 error
Dunno why it manifests itself only in gen<3, but this fixes the index
out of range

Reference #235
2016-09-05 17:05:27 -07:00
Kaphotics
1eff18b6f8 Merge branch 'master' of https://github.com/kwsch/PKHeX 2016-09-05 15:57:30 -07:00
Kaphotics
421dbf31f3 Fix extrabytes
Visible returns false if the tab is not active -- even if it is defined
as true in an earlier line, so use Enabled instead.

Move the AbilityNumber visibility to the end so that the logic isn't
repeated.
2016-09-05 15:57:28 -07:00
Michael Scire
fb313edeac Fix 1 -> 2 Conversion bug, gender issues (Closes #232) 2016-09-05 15:54:34 -07:00