Commit Graph

100 Commits

Author SHA1 Message Date
hp3721
8aed43a67f
Add handling for revised player house and room structure (v2.0) (#547)
* Add handling for revised player house and room structure (v2.0)

* Update player room load/dump file type filters
2021-11-19 19:53:04 -08:00
Kurt
3e7bacb80b Add exclusion for one-time DIY indexes
Closes #523
Thanks @Zelfild for identifying the problematic indexes!

Skips over these two indexes on give-all, and skips over them when spawning a set of DIY items onto the ground.
Added control-key to set all IsNew to false instead of true (when doing GiveAll)
2021-11-06 13:16:52 -07:00
Kurt
4cad6f5894 Add handling for revised villager house structure (v2.0) 2021-11-04 20:10:49 -07:00
Kurt
6fb4569ce3 Design Patterns: Load orders by filename, export prompts for filename format
Closes #512
2021-10-16 16:38:33 -07:00
Emil B
083eae90f2
Change pattern system (#504)
To make dumping/loading designs match other dumping/loading buttons (terrain, acre and so on)
+ clicking on "Dump/Load Design" will draw a context menu with 4 options (2 if it's only one design pattern e.g. town flag).
+ when loading designs, I made the Listbox with the design names repopulate (update names) and select the user-selected design instead of going to index = 0;
+ when loading all designs I open a prompt to update "values" or not, instead of by default updating them.
+ fixed file name of dumped singular pro designs to .nhpd instead of .nhd lol
2021-09-06 10:31:11 -07:00
berichan
6c870b2e89 BulkSpawn alphabetically sorted DIY recipes 2021-08-07 13:48:14 +01:00
Kurt
567a9175f3 Add IsActive indication on hover, add toggle control
Closes #495
2021-08-01 16:39:27 -07:00
Kurt
ec8bcf261e Add remove item like in editor
Closes #492
2021-07-28 23:09:04 -07:00
PXLcat
dedc296c2b
Added tool to visually select and add basic tiles (#484)
* Added tool to visually select and add basic tiles

* Minor clean
2021-05-20 13:59:57 -07:00
berichan
7fe8bcb53e bulk-remove bushes, closes #311 2021-04-12 19:29:17 +01:00
Kurt
2b87990faf Fixed bug w/bulk spawn wraps onto 2 lines in horizontal layout
c1bc5ae97f

Add Vertical spawn mode, since people like to do that for their treasure islands

Co-Authored-By: MadDanEccles <5344903+MadDanEccles@users.noreply.github.com>
2021-03-29 23:11:13 -07:00
Charlie U
8fd348448a
Add checkbox to enable/disable moving field editor on mouse drag (#467) 2021-03-22 15:27:29 -07:00
Kurt
0798aa5a97 Add batch editor
Similar to PKHeX's batch editor, probably with some stubbed functionality.

Example to change Oak Trees to apple trees:
=ItemId=60000
.ItemId=60001
;
=ExtensionItemId=60000
.ExtensionItemId=60001

Example to unbury all items:
=IsBuried=True
.IsBuried=False
.IsDropped=True
2021-03-21 11:51:57 -07:00
Kurt
75c176c028 Fix: Replace All items using a copy of the tile
The field array will get mutated, so make sure that our item reference isn't one of the field tiles.
2021-02-28 18:41:25 -08:00
Kurt
339bb4f7c8 Update PlayerHouseEditor.cs 2021-02-15 19:52:58 -08:00
Kurt
5b46d3ddaf Update FieldItemEditor.cs 2021-02-15 19:52:13 -08:00
Kurt
d47158587c Add tile replacement to Field Item Editor
hold ctrl+alt(+shift for full map) to replace all items on the map that you tap, with the item from the editor.

don't mix & match field items (trees) with regular items, cuz we can't verify size matching for those. Field Items return "unknown size".
2021-02-05 09:15:52 -08:00
Kurt
f427ca647e Update FieldItemEditor.cs 2021-01-23 23:52:24 -08:00
Kurt
2670a6c751 Add placed design dump/load
https://github.com/kwsch/NHSE/issues/443#issuecomment-765915667
2021-01-23 10:58:58 -08:00
Kurt
1c4df60920 Add pattern bulk import
#443
Pattern names don't update on the left side (even for single-imports), don't bother for now. Just save & reopen the editor.
2021-01-22 23:14:14 -08:00
Kurt
83169b8738 Bump language version to c#9 2020-12-24 23:53:40 -08:00
Kurt
1e0bd10bdb Minor clean 2020-11-22 19:40:37 -08:00
Charlie U
2467354850
Implement ItemsFromNHI bulk import (#418)
* Implement ItemsFromNHI bulk import

* Add alert box when spawn clicked but no NHI selected

* Fix comment to clarify items are dropped not placed
2020-11-18 18:43:40 -08:00
Kurt
8ca3877bfa Differentiate villager types
v1.5 increased the size of GSaveLightMemory by 0xC each; with 160 entries, everything stored after this field (at 0x2F84) increased its offset by 0x780.

  GSaveItemName                     ClothesPTops;                           // @0x14c size 0x8, align 4
  s16                               _58b5e808;                              // @0x154 size 0x2, align 2
  s8                                ClothesPTarget;                         // @0x156 size 0x1, align 1

Should be possible to convert the first revision of villager data to the current format and vice versa. Someone would need to document how they pre-fill these new fields (listed above).
2020-09-29 22:20:53 -07:00
Charlie U
93c78a15bf
Fix bug causing only 3-letter .nhvh files to show in dialog (#315) 2020-06-22 15:50:59 -05:00
Kurt
de3ee7ba41 Rotate terrain tile on ctlr-shift click
Closes #290
2020-06-01 20:47:04 -07:00
Kurt
2b3225fd4b Update FieldItemEditor.cs
Closes #282
2020-05-31 17:27:13 -07:00
Kurt
c571fbb20a Add remove trees option
Closes #273
2020-05-31 15:24:59 -07:00
Kurt
25262478ae Add sensitive scaling for field item map
if ppl have something other than 100% scale somehow
Closes #248
2020-05-25 09:39:22 -07:00
Kurt
0d64fa65d8 Fix building snap misaligning view
field item coordinates need to be even, not odd
do the same "even" clamp

(we do this so that we can sync the terrain tile view to the field item view)
2020-05-25 08:36:07 -07:00
Kurt
084542d367 xmldoc
tried to split off some grid stuff because rooms don't need to know about acres; whatever
2020-05-23 13:08:14 -07:00
Thibault Ehrhart
71428d542e
ImportMapAcresAll: update CopyTo index to 0 (#245)
The second parameter of `Array.CopyTo` takes an integer that represents the index in array at which copying begins. Therefore in this case it should be set to 0 instead of the array's length.
2020-05-23 09:02:06 -07:00
Kurt
0e70d823a5 Synchronize acre-view comboboxes
Closes #236
2020-05-20 18:10:21 -07:00
Kurt
a1cc4de611 Add bulk spawner for field items
Closes #235
2020-05-20 13:22:50 -07:00
Kurt
9645c16152 Add flag dump/load
Closes #234
2020-05-19 09:48:11 -07:00
Kurt
250fe581f4 Autosize PictureBoxes, widen flag panels
Closes #209
2020-05-18 08:12:40 -07:00
Kurt
4e1b5ab87f Snap to building location on index change
Closes #231
2020-05-17 09:14:59 -07:00
Kurt
6b678ac704 Add snap to grid for field items, upgrade handle extensions: delete tile
Setting a field item with the snap active will align it to the major gridlines. This will prevent the user from setting un-interactable objects (rocks, trees) unintentionally.

Having the auto-handle extension tiles will now delete all associated tiles when issuing a delete command on an extension tile, rather than just deleting the extension tile.
2020-05-16 12:03:21 -07:00
Kurt
a4b4a3c24a Add water flower button
control: all water states
shift: all map (instead of current viewport)

Closes #230
2020-05-16 11:30:25 -07:00
Kurt
3061442f77 Add localized color name display
Closes #223
2020-05-15 13:08:47 -07:00
Kurt
a8f111a8f1 Add villager memory (per player) editor
Change friendship here.

Can also cheat all friendships (of all villagers, for all saved players) to 255 by shift clicking the drop-down button instead.
2020-05-14 16:10:33 -07:00
Kurt
ce47a76e1b Use actual final scale rather than allowing zoom upscale
clear pixel boundaries, no fuzz
2020-05-14 11:04:22 -07:00
Kurt
b0870c865a Add design tile clear button for terrain editor
not visualized, but still exposed for mass clear

Closes #208
2020-05-13 12:43:04 -07:00
Kurt
199e57ec6d Update MuseumEditor.cs 2020-05-13 00:15:36 -07:00
Kurt
d22ac35f73 Add Museum Editor
game stores all donation types in the same array (chunked into date[], item[], playerID[]); no dedicated indexes for a donation, so no empty slots, and all donation types are intermixed (based on donation date)
2020-05-12 22:55:26 -07:00
Kurt
ef3b39e4a0 Add layer support check, add enum for room layer location/type 2020-05-12 19:47:31 -07:00
Kurt
797cd0e16d Update FieldItemEditor.cs 2020-05-12 15:23:25 -07:00
Kurt
6fe7e4e53a Add road tile detail copy
Copies only the road portion of the terrain tile, not the ground detail.
Closes #203
2020-05-12 15:22:39 -07:00
Kurt
5a22c0e58a Add missing terrain event handlers 2020-05-12 10:34:56 -07:00
Kurt
755a7d773b fix villager house dump/load
also copy npc values when importing player house; unknown function since most ppl have only 1 player house
2020-05-12 07:36:37 -07:00