Commit Graph

64 Commits

Author SHA1 Message Date
Josh (vector_cmdr)
e8c5daf745
Fix: Map Design Import/Export (#751)
Previous fix for bad map design imports had an incorrect range and no way to manage v2.0.8- and v3.0.0+ dumps.

Import/Export for map design patterns now supports both map sizes (old and new).
It will accept 2.0.8 dumps and pad them to work on 3.0.0 as well as trim previously mangled ones, or 3.0.0 dumps down to fit on 2.0.8 saves.

Byte padding methods added to ArrayUtil for this padding and for future map flag import padding fixes.
2026-02-15 02:12:32 +11:00
Kurt
e6f45d1805 Fix terrain brush popup
Closes #729
1. Dark mode now applied correctly (was previously lacking)
2. Fixed terrain brush action (brush active is higher priority than drag, fix tile fetch)
3. Fixed writing of Building/structure labels; apply after Terrain
4. Single terrain brush form allowed, center to Field Editor on launch

Somewhat related: fix Show() load for non-ShowDialog() forms to center to parent.
2026-01-30 22:55:26 -06:00
Kurt
0e26ad7099 Add field item flag import/export
Only for entire map, not acre
2026-01-27 08:11:41 -06:00
Kurt
a04159d7fa Fix terrain tile view
Closes #719
2026-01-26 22:37:17 -06:00
Kurt
b88c518d5c
Update FieldItemEditor for 3.0.0 (#716)
Updates the Field Item Editor to render layers based on the entire map, and the per-patch positioning of each layer.
Import/export will gracefully handle upgrade/downgrade, and viewport import/export will gracefully update tiles rather than a per-acre basis.

Performance has also been slightly improved; no allocation is done anymore when updating the image.
2026-01-25 16:55:38 -06:00
Kurt
fa3f0e3cc8
Update to .NET 10 (#683) 2026-01-13 16:02:58 -06:00
Alca259
a20bd1c419
Support for 16x16px per tile and river editor (#668)
* Upgrade to .NET 8 + Nugets

* Add support for tile 16x16px instead 1px

* Rivers except 2B

* River2B
2025-07-28 00:02:34 -05:00
Kurt
2287521b44 Update dependencies
Bump net5 build to net6
2022-10-25 14:36:45 -07:00
MyShiLingStar
8bf246aac9
Fix HHP acres display in FieldItemEditor. (#607)
Co-authored-by: MyShiLingStar <MyShiLingStar@STARLIGHT>
2022-07-20 21:42:18 -07: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
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
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
83169b8738 Bump language version to c#9 2020-12-24 23:53:40 -08: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
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
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
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
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
4792d675eb Don't update map hover coordinates on mouse-button down
right click drag on map should do nothing, and now does nothing
2020-05-11 23:18:07 -07:00
Kurt
60faecdc69 Refactoring
move files, abstract some logic for later reuse
2020-05-11 22:14:27 -07:00
Kurt
6ae1c9724b add click-drag on acre picturebox to move the viewport
hold control to drag the viewport faster

does not move items; that would probably have to be a toggle -- if ever implemented
2020-05-10 14:13:45 -07:00
Kurt
dd92b9ea73 Update FieldItemEditor.cs 2020-05-09 22:11:40 -07:00
Kurt
8beb1c426c Add view option to read root instead of a clicked extension
enabled by default

viewing an extension will calculate where the root node is (based on the extension values) and load it instead, only if the item ID matches. bounds check to be 100% safe from ppl placing random/bad extension tiles
2020-05-09 22:09:36 -07:00
Kurt
000da2cbb6 Misc tweaks
Fix bottom acre row labeling for MapAcre stuff
Don't close png dropdown on checkbox click
Don't change map reticle position on map right click (only left click)
2020-05-09 20:11:22 -07:00
Kurt
826ba00fcd Allow toggling png export
why not; I guess if you don't want the items/reticle and want dat clean "here's my terraforming work"
2020-05-09 17:32:15 -07:00
Kurt
d1b7032b79 Save background and foreground (full map picture)
yay pretty
2020-05-09 17:25:42 -07:00
Kurt
a12278d148 Add outside/field template tracker editing 2020-05-09 17:13:31 -07:00
Kurt
74bf1d4cef Merge acre editor into field item editor 2020-05-09 17:03:58 -07:00
Kurt
8661f7c0cc Use Item Editor instead of property grid
Closes #151
2020-05-08 13:27:29 -07:00
Kurt
a9810c7d03 Merge Field Item back into Item
Different means of expression for the 8 byte item structure's FreeParam

Will be expanding the ItemEditor so that it has a checkmark to toggle Extension Item editing behavior.

Removes IHeldItem as there's no need to abstract it.
2020-05-08 12:20:24 -07:00
Kurt
203a7c1627 Add more removal options
- remove flowers
- remove shells
- remove branches

Closes #163

rename plazaX/Y to match internal field name
2020-05-05 17:17:59 -07:00
Kurt
a3357c27c5 Clamp acre jump to valid bounds 2020-05-03 20:50:45 -07:00