Commit Graph

532 Commits

Author SHA1 Message Date
JelleInfinity
ef09afd09a Fix layout (#267) 2022-10-02 21:54:47 +01:00
JelleInfinity
6288d5ad98 Enable high Dpi support (#266) 2022-10-02 21:49:07 +01:00
JelleInfinity
62d094f8d6 Auto adjust layout for categories with more buttons (#265) 2022-10-02 20:54:21 +01:00
JelleInfinity
602e95a767 Feat/categorized editors (#264)
* Add support for categorized editors

* Rename functions

* Move utils to top

* Sort by category and add category tags

* Add all app_config editors

* Use client size, otherwise you'd have to enter the width/height of content + window border
2022-10-02 20:23:51 +01:00
Kurt
efb34f556b Minor tweaks
Reduce allocation of button string fetch (for fun!)
Type return covariance for Editors (no longer limited by netframework!)
2022-10-02 10:24:44 -07:00
Kurt
33a2ab24f1 Minor clean 2022-10-01 17:46:11 -07:00
Kurt
2578ba073c Refactoring
File scoped namespaces for all lib projects
netstandard2.0 => net6; now uniform. bye netframework!
2022-10-01 17:08:17 -07:00
Kurt
103b0bab2f Minor perf: cache successful gameversion from rom
Skip fetching/counting all files for the unpacked ROM that is used in determining which ROM it is.
Once we've computed it the first time, we can just reuse the value.
2022-10-01 14:24:20 -07:00
Kurt
035edab21e Resize+center main window on load 2022-10-01 13:57:35 -07:00
Kurt
d55b1d87fe Minor tweaks
Main window's Button size 35->40
Add icon as resource
Remove useless border around main window folder path
2022-10-01 12:57:24 -07:00
Kurt
76b0b62ca3 Refactoring
File scoped namespaces
NET6 for GUI
handle nullable references
add editorconfig (mostly for newline at end of file)
2022-10-01 12:44:47 -07:00
JelleInfinity
b61ecb5cb4 Enable high DPI support (#260)
This fixes blurry fonts
It does require TargetFramework to be net472 tho, I hope that's okay

Enable high DPI support

This fixes blurry fonts
It does require TargetFramework to be net472 tho, I hope that's okay
2022-10-01 12:17:27 -07:00
JelleInfinity
0c4b0b228f Merge pull request #258 from JelleInfinity/feat/research-task-editing
Research task edit buttons
2022-10-01 12:13:04 +02:00
Jelle
49e5feaf4d Research task edit buttons
* Add 'Add' 'Clone' and 'Remove' research task buttons
* Add Append/Remove array extensions
* Update to DexIndexNational instead of ModelID
* Make all functions private

Fix
2022-10-01 12:11:54 +02:00
JelleInfinity
6cff58fbf7 Improve main editor buttons (#259)
* Don't add spaces for abbreviations

* Sort editor buttons alphabetically
2022-09-30 13:48:46 -07:00
JelleInfinity
905977383b Change area index to checkbox (#262) 2022-09-30 13:48:30 -07:00
JelleInfinity
97e5999372 Fix merge error (#263) 2022-09-30 13:46:17 -07:00
JelleInfinity
3c71e74b93 SWSH personal info refactor (#256)
* Add missing properties

* Refactor swsh personal info
2022-09-29 23:04:34 -07:00
JelleInfinity
8593fdc496 Fix arg type (#255)
I read that these can't have arguments
2022-09-29 16:18:19 -07:00
JelleInfinity
c3470997d2 Updated pokemon editor (#257)
* Add PokeMisc, items drops and research task files

* Update PokeMisc/DexResearch field names

Add type converters for known properties
No throw GetEntry
GetEntries for research tasks

* Update Poke editor

* Redesign UI
* Added PokeMisc to personal section (As property grid for now)
* Added Pokedex tab for research tasks (As property grid for now)
* Allow entries up to 9999

Still a WIP
2022-09-29 16:17:48 -07:00
JelleInfinity
9346f482da Improved auto fill (#254)
* Rename fields

Rename to `HatchedSpecies`
`Species` here is actually `ModelID`. To get Species `DexIndexNational` should be used

* Update interfaces

Use DexIndexRegional
Replace `RegionalFormIndex` with `Form`

Add national dex index

* Add debug assert

* Add set functions for easy assignment of personal info

* Update auto-fill

* All missing SWSH data is now filled based on USUM data
* Accounts for form data
* Ignores all forms that are not carried over to next gen
* Adds form number and national dex number

* Update PLA filler to account for forms and other missing entries
2022-09-29 16:14:44 -07:00
JelleInfinity
7f051d06ed Move IMovesInfo to own file (#252) 2022-09-27 11:17:20 -07:00
Lusamine
1d27b6f5e0 Fix typo 2022-09-27 10:27:13 -05:00
Lusamine
53d3e456d3 Fill in remaining NHO information 2022-09-27 03:35:42 -05:00
Kurt
0bf8e470a0 Map Viewer tweaks
Re-add mouse tolerance distance fudge factor (pixels)
Reduce wormhole fill color opacity so that stacked spawners don't appear solid
Uppercase Map Viewer
Show full button name
2022-09-26 18:08:57 -07:00
JelleInfinity
8ac8ae78ac Refactor evolution code from PKHeX source (#251)
* Add evo table resources and re-arrange files

* Add array from byte span utility function

* Update evolution related code from pkHex
2022-09-24 17:39:41 -07:00
JelleInfinity
5df700a136 Fix evo rows not clearing (#250) 2022-09-24 17:39:27 -07:00
JelleInfinity
7d5a8b0450 Update poke editor (#248)
* Add gender description and next/previous buttons

* Add SpecialTutors change FormSprite to Form
2022-09-22 19:28:52 -07:00
JelleInfinity
523a39e594 Fix evo editor (#249)
* Rename to Species

* Use Graphics to resize image

* Fix evo editor

Not the best/fastest method, but at least its functional now
2022-09-22 19:10:24 -07:00
JelleInfinity
ea9ce5dec6 Add auto-fill from old databases (#246)
This adds the option to fill in the missing info using swsh and usum databases
2022-09-21 16:05:30 -07:00
JelleInfinity
b69ec3fcdb Rename to PersonalTableLAfb (#245)
This makes it easier to see the difference
2022-09-21 15:56:02 -07:00
JelleInfinity
e1d7cc790a PersonalInfo interface fixes (#243)
Improved the inheritance graph and renamed some variables to merge some into an interface
2022-09-21 15:55:54 -07:00
JelleInfinity
c15b5594a8 Fix form count for PLA (#247)
This value isn't correct by default
2022-09-21 15:55:34 -07:00
JelleInfinity
dff97a4105 Feat/pokemon editor (#242)
* Make PersonalTable saveable

* Add poke editor
2022-09-20 16:46:04 -07:00
JelleInfinity
bd8cbb004b Add save menu option (#244) 2022-09-20 16:45:49 -07:00
JelleInfinity
d1a6948e95 Fix compiler error (#241) 2022-09-19 08:42:05 -07:00
JelleInfinity
21a87b454d Update legality from PKHeX (#237)
* Update legality from PKHeX

* Move to folder

* Remove namespace wrapping

Co-authored-by: Kurt <kwsch@users.noreply.github.com>
2022-09-18 12:48:03 -07:00
JelleInfinity
7686aa1d49 Add area editor buttons + fix auto resizing/component alignment (#239)
* Add buttons to edit encounter slots

* Add tooltips

* Add default icon for editor windows

* Fix auto size on window resize + re-align

Some components didn't resize. This commit fixes that + fixes alignment issues in all editors.
2022-09-18 12:45:20 -07:00
JelleInfinity
3a8328c0cd Use interfaces for personal info to make updating the data easier (#234)
* Use GameVersion instead

* Fix formatting

* Update Personal info code

* Use interface versions in code

* Remove unnecessary param

* Remove TableLength

* Fix integration

Rename Forme to Form
Typed numbers
2022-09-18 12:44:51 -07:00
JelleInfinity
6537faa881 Added missing field names (#236) 2022-09-16 09:19:41 -07:00
JelleInfinity
86cf8027ca Add SWSH/PLA to GameUtil (#232)
* Add SWSH/PLA to GameUtil

* Set to PLA instead
2022-09-13 20:13:27 -07:00
JelleInfinity
fdbf40cc5e Found a missing field name (#231)
This is the string ID of a path that the pokemon will follow. (Think the figure 8 of flying mons)

An example can be seen if you follow these steps:
- Open "Area Editor"
- In "Obsidian Fieldlands" area, click the Regular tab
- Open spawner '2501' observe `path_area01_004` appear in this field

(I've also included a conversion to display friendly names in the area editor.)
2022-09-13 06:41:40 -07:00
JelleInfinity
1881fbff90 Set default encounter settings (#228)
These are the settings most often used. This makes the process of adding an encounter slot a lot less tedious.
Specifying default values this way has no effect on the deserialization of default (zero values).
2022-09-11 09:37:12 -07:00
JelleInfinity
0f40a36c3a Use Types enum for UI values (#229) 2022-09-11 09:07:49 -07:00
Salier
af47a9305a Fixed the randomisation inheriting process (#217)
* Fixed the randomisation inheriting process

* Corrected the ability inheritence 

Not anymore overwrite by the SameAbilityChance setting in the case of an inheritence

* Corrected Type inheritence

No longer overwrited by the SameTypeChance setting.

* Slight fix InheritTypeSetting.One and Type inheritence

Slight error causing too much random types use.
2022-09-10 11:38:51 -07:00
Philip Woolford
d692d957d4 Check for missing ExeFS or main executable in SWSH shiny editor (#216)
* Fix Shiny Rate Editor

This fixes the broken shiny rate editor that hasn't been re-implemented.

* Check for missing ExeFS or `main` executable in SWSH shiny editor
2022-09-10 11:38:27 -07:00
JelleInfinity
4272253790 Fix number formatting for certain culture info's (#227) 2022-09-10 11:38:05 -07:00
JelleInfinity
5c1fce310e Fix map viewer (#225) 2022-09-10 11:37:53 -07:00
sora10pls
c7340bb785 Update NestHoleDistributionEncounter8Archive.cs 2022-09-08 23:28:30 -04:00
sora10pls
fe9e21749f Sync missing changes
oops
2022-07-22 21:10:42 -04:00