Ashley Newson
7401182a1b
Refactor editor clipboard logic as blitting logic
...
- Refactors internal editor clipboard logic into reusable map contents
"Blitting" functionality.
- Fix actor processing being unnecessarily (cell) looped within
CopySelectionContents (now CopyRegionContents).
- Deduplicates largely repeated code.
- Minor code simplifications and renames.
2024-11-15 19:18:38 +02:00
Paul Chote
67254e0b39
Rename Fluent *GetString methods to GetMessage.
2024-11-03 16:52:47 +02:00
Paul Chote
d6285affec
Remove FluentBundle.Arguments helper method.
2024-10-04 15:11:27 +03:00
Paul Chote
b29b685058
Rename Fluent-related code to be more precise.
2024-10-04 15:11:27 +03:00
Gustas
87850378c7
Make brush rendering self-contained
2024-09-16 12:00:41 +01:00
Gustas
b073155018
Polish map editor code
2024-09-16 12:00:41 +01:00
RoosterDragon
cf0e73e75e
Improve performance of copy-paste in map editor.
...
- EditorActorLayer now tracks previews on map with a SpatiallyPartitioned instead of a Dictionary. This allows the copy-paste logic to call an efficient PreviewsInCellRegion method, instead of asking for previews cell-by-cell.
- EditorActorPreview subscribes to the CellEntryChanged methods on the map. Previously the preview was refreshed regardless of which cell changed. Now the preview only regenerates if the preview's footprint has been affected.
2024-06-16 13:35:13 +03:00
RoosterDragon
cac0438d48
Fix map editor copy-paste for isometric maps.
...
When dealing with isometric maps, the copy paste region needs to copy the CellCoords area covered by the CellRegion. This is equivalent to the selected rectangle on screen. Using the cell region itself invokes cell->map->cell conversion that doesn't roundtrip and thus some of the selected cells don't get copied.
Also when pasting terrain + actors, we need to fix the sequencing to clear actors on the current terrain, before adjusting the height and pasting in new actors. The current sequencing means we are clearing actors after having adjusted the terrain height, and affects the wrong area.
2024-06-15 15:53:42 +03:00
David Wilson
25a6b4b6b9
Editor marker tiles layer
2024-03-21 13:11:04 +02:00
Wojciech Walaszek
7b82d85b27
Editor actor move
2024-03-03 14:27:35 +02:00
David Wilson
d630a6ef7d
Fix editor area/actor deselection bugs
2024-02-07 15:30:23 +02:00
David Wilson
2ced4abc24
Editor selection refactor pt1
2024-01-24 10:11:39 +02:00
RoosterDragon
360f24f609
Fix IDE0055
...
This rule no longer appears to be buggy, so enforce it. Some of the automated fixes are adjusted in order to improve the result. #pragma directives have no option to control indentation, so remove them where possible.
2023-11-16 08:45:10 +02:00
RoosterDragon
f4af5c1764
Fix CA1852
2023-06-06 11:51:47 +03:00
Matthias Mailänder
c9dddc342c
Extract editor brush texts.
2023-05-23 19:45:15 +02:00
RoosterDragon
14c0d011ea
Fix SA1414
2023-04-08 16:51:51 +03:00
RoosterDragon
8a285f9b19
Fix IDE0090
2023-04-08 16:51:51 +03:00
RoosterDragon
8ee6957e6a
Fix IDE0048
2023-03-01 21:56:28 +02:00
RoosterDragon
d4135d608e
Fix IDE0039
2023-02-27 10:09:11 +01:00
abcdefg30
5bf7fe852c
Remove the copyright year numbers
2023-01-11 11:58:54 +02:00
Matthias Mailänder
74c35edbd9
Fix a crash when flood filling tiles outside of the map.
2022-11-04 00:10:46 +01:00
Matthias Mailänder
d3a8b07f05
Remove unread private member (IDE0052)
2022-09-13 10:36:57 +03:00
abcdefg30
6a31b1f9f3
Update the copyright header year
2022-05-28 00:35:10 -05:00
Eduardo Cáceres
7eb64ea6fc
Use read-only autoimplemented property when possible
2022-05-18 11:42:36 -05:00
Matthias Mailänder
0e7ad43425
Remove unused parameters.
2022-04-01 23:30:26 +02:00
penev92
2f6f214bac
Removed a bunch of explicit access modifiers
2022-01-09 18:58:37 +01:00
penev92
8ba6d13b2f
Removed unused using directives
2021-10-15 13:12:33 +02:00
Matthias Mailänder
024beacafb
Don't smear the paste while moving the mouse.
2021-08-22 16:06:21 +02:00
Matthias Mailänder
902006bf53
Fix editor losing copy after each paste.
2021-07-13 21:01:33 -05:00
Andre Mohren
6810469634
Updated copyright years.
2021-06-29 18:33:21 -05:00
teinarss
10676be377
Replace F extension with string interpolation
2021-05-08 22:20:59 +02:00
Matthias Mailänder
fe129956bb
Make the resource layer optional in the map editor.
2021-04-07 12:19:55 +01:00
Paul Chote
80e92849da
Replace ResourceType with strings in interfaces/public methods.
2021-03-20 16:45:41 +01:00
Paul Chote
dcd8eccee4
Replace ResourceLayer references with IResourceLayer in traits/warheads.
2021-03-20 16:45:41 +01:00
Paul Chote
5adcbe4c78
Use IResourceLayer for editor resources.
2021-03-20 16:45:41 +01:00
Paul Chote
7e9d291223
Add IResourceRenderer interface.
2021-03-20 16:45:41 +01:00
teinarss
6b74093c04
Add readonly to structs
2021-03-14 15:17:57 +01:00
Paul Chote
53db1230ab
Move default tileset parsing to Mods.Common.
2021-01-11 21:57:55 +01:00
Paul Chote
2782620081
Add ITemplatedTerrainInfo interface.
2021-01-11 21:57:55 +01:00
Paul Chote
87790069e9
Add ITerrainInfo interface.
2021-01-11 21:57:55 +01:00
Paul Chote
e0b3e631fe
Remove obsolete null checks.
2020-12-19 13:07:01 +01:00
teinarss
19b02875c7
Use Tuple syntax
2020-08-15 10:37:10 +01:00
Andre Mohren
006a87692a
Removed unused imports.
2020-07-28 18:22:51 +02:00
Andrew Odintsov
f0c808d2fc
Replace FloodFill with IEditorAction implementation
2020-06-24 19:08:54 +02:00
Paul Chote
c6c3a8c60d
Make ActorPreview and EditorActorPreview wrap ActorReference.
2020-06-19 17:57:56 +02:00
Paul Chote
7c6ec577dc
Rewrite ActorInit queries.
2020-05-28 19:04:53 +02:00
Paul Chote
cc05621c10
Draw editor terrain/resource preview as part of the world.
2020-01-12 18:30:50 +01:00
Paul Chote
e74033bded
Render editor actor previews as part of the world.
2020-01-12 18:30:50 +01:00
abcdefg30
23b3c237b7
Update the year numbers in all license headers to 2020
2020-01-05 17:00:34 +00:00
teinarss
1e786b8e31
Add null check to EditorDefaultBrush for resources
2019-10-05 18:39:39 +02:00