Commit Graph

19 Commits

Author SHA1 Message Date
Josh (vector_cmdr)
4426404f2d
Fix Load All Patterns Ownership (#756)
Added Personal for IVillagerOrigin in place of current pattern index for Load All.

Moved ContainsTransparentPixels to ImageUtil.
2026-02-20 22:55:55 +11:00
Kurt
77b6ed957a Simplify bits per pixel image fetch
Less error prone in the future; multiple optional args are ugly, and we can infer the value using available BCL method.
2026-01-25 23:16:23 -06:00
Kurt
5251449474 Update ImageUtil.cs
Closes #717
2026-01-25 22:54:29 -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
c1e7f2dc28 Move tile color to core 2020-05-09 00:13:19 -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
bf841b8ecf Show item sprites in item editor
put a folder named "items" with the english named item sprites (tbd if we change to a more sane filename format)

bring your own files, it's like 45 MB so not distributing with the EXE.
2020-05-05 22:13:29 -07:00
Kurt
928e699168 misc performance improvements
Preallocate the terrain-building objects and reuse

changed:
- grid alternates with a slightly-darker to help indicate the larger 2x2 tile grid.
- put plaza & buildings behind the gridlines
2020-05-02 23:02:37 -07:00
Kurt
33b9e7f170 Show terrain map behind field item view
Adds a transparency slider to have the field items fade so you can see the underlying terrain tile.

Not really optimized (allocates every time), but it should be fine for now.

Make the None item transparent, so that the entire map bleeds through (clear clarity).
2020-04-28 21:08:57 -07:00
Kurt
4efbb00b4e Add pro design r/w 2020-04-23 17:09:52 -07:00
Kurt
6ce0d1595d Remove allocation for field item editor
Allocate once on init, and reuse objects

pretty much buttery smooth now :)
2020-04-09 16:01:20 -07:00
Kurt
cf889668d3 Minor perf improvements
Move repeat calculations from inner loop to outer loop
Extract some methods for reusability
2020-04-09 14:35:09 -07:00
Kurt
91418e9c66 Enhance extension item visualization
Mark class as static

Draws directional lines trying to point back to the root item
2020-04-09 12:52:07 -07:00
Kurt
557a34edbc Minor clean
Reduce array get counts by 16 (from 17->1)
2020-04-08 17:13:00 -07:00
Kurt
5e99e24628 Add fast pixel upscale
1->X sized scaling; preferred when scale is large enough and you want to retain raw access to pixel data.
2020-04-08 14:34:52 -07:00
Kurt
824d31719e Pre-blend colors with white
faster fetch
2020-04-07 13:40:39 -07:00
Kurt
2ce535c67c Refactoring
Move sprite resources to subfolder for organization
Add FieldItem class (replaces MapItem), might work in a field item editor (similar to building editor)
2020-04-07 10:19:58 -07:00