RoosterDragon
169c60883b
Fix CA2249, CA2251
2023-08-07 21:38:09 +02:00
RoosterDragon
d83e579dfe
Fix CA1305
2023-08-07 21:38:09 +02:00
RoosterDragon
949ba589c0
MiniYaml becomes an immutable data structure.
...
This changeset is motivated by a simple concept - get rid of the MiniYaml.Clone and MiniYamlNode.Clone methods to avoid deep copying yaml trees during merging. MiniYaml becoming immutable allows the merge function to reuse existing yaml trees rather than cloning them, saving on memory and improving merge performance. On initial loading the YAML for all maps is processed, so this provides a small reduction in initial loading time.
The rest of the changeset is dealing with the change in the exposed API surface. Some With* helper methods are introduced to allow creating new YAML from existing YAML. Areas of code that generated small amounts of YAML are able to transition directly to the immutable model without too much ceremony. Some use cases are far less ergonomic even with these helper methods and so a MiniYamlBuilder is introduced to retain mutable creation functionality. This allows those areas to continue to use the old mutable structures. The main users are the update rules and linting capabilities.
2023-08-07 21:57:10 +03:00
RoosterDragon
f336a956cf
Fix CA1012
2023-06-20 17:57:40 +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
Matthias Mailänder
1c2ce0dcc0
Deprecate string format log shorthand.
2023-05-05 19:03:09 +02:00
Matthias Mailänder
68eec52cef
Add TranslationProvider
2023-04-22 19:23:41 +02:00
RoosterDragon
8a285f9b19
Fix IDE0090
2023-04-08 16:51:51 +03:00
RoosterDragon
164abfdae1
Fix IDE0083
2023-04-08 16:51:51 +03:00
RoosterDragon
bd2b3d9793
Fix IDE0074
2023-04-08 16:51:51 +03:00
Paul Chote
f0cf728825
Dispose SequenceSet when we're done with it.
...
Utility rules that do something on a map and exit
are left without explicit disposing, as they will
be cleaned up immediately anyway.
2023-03-10 20:11:33 +02:00
RoosterDragon
939f715e3c
Fix IDE0053
2023-03-07 13:18:13 +02: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
Matthias Mailänder
7cdc8c4ec5
Add a quick save button to the map editor.
2023-01-23 14:13:19 +02:00
abcdefg30
5bf7fe852c
Remove the copyright year numbers
2023-01-11 11:58:54 +02:00
Paul Chote
6d438a9d61
Allow mods to customise the default rendering scale.
2022-12-31 17:11:03 +01:00
Ivaylo Draganov
a0f17b15ec
Refactor translation files
...
- Add prefixes to all message keys to provide context
- Use messages with attributes for some UI elements (dropdowns, dialogs, checkboxes, menus)
- Rename some class fields for consistency with translation keys
2022-12-19 22:04:54 +13:00
abcdefg30
0f149f1143
Fix the actor edit panel not always getting closed properly
2022-12-18 12:24:36 +13:00
Gustas
c739447598
Fix map editor sliders stealing focus
2022-12-14 23:53:28 +01:00
Matthias Mailänder
760a1245c5
Mark non-moddable translation strings as constant.
2022-12-07 18:40:26 +02:00
Zachary Schirm
1339faa5f4
Disallowed Save Map without Title and Author Input
2022-09-13 18:48:21 +03:00
penev92
378c447ded
Misc fixes in AssetBrowserLogic and MapOverlaysLogic
2022-09-02 16:16:45 +02:00
Matthias Mailänder
0b67b5bfae
Extract translation strings.
2022-09-02 14:41:24 +03:00
Gustas
11a2e6e19b
Add more confirmation dialogue to the map editor
...
When saving on top of another map, or when saving on a map that has been edited outside the map editor
2022-08-29 12:31:01 +03:00
Gustas
3ab6d3f00a
Remove map editor debug message
2022-08-17 23:29:11 +02:00
Matthias Mailänder
cc58fe1a0f
Extract translation strings.
2022-08-14 16:11:51 +02:00
Matthias Mailänder
2c8c6e50da
Code cleanup
2022-08-14 16:11:51 +02:00
Ivaylo Draganov
320228f9d9
Add hotkeys for editor map overlays
2022-06-10 18:21:57 +02:00
abcdefg30
6a31b1f9f3
Update the copyright header year
2022-05-28 00:35:10 -05:00
Eduardo Cáceres
aa998a46d9
Simplify collection initialization
2022-05-18 11:42:36 -05:00
Eduardo Cáceres
2677e9c013
Use pattern matching
2022-05-18 11:42:36 -05:00
Eduardo Cáceres
7eb64ea6fc
Use read-only autoimplemented property when possible
2022-05-18 11:42:36 -05:00
Eduardo Cáceres
79f321cb44
.Any(), .Count() -> .Count or .Length
2022-05-18 11:42:36 -05:00
Ivaylo Draganov
6a1a6b6397
Add platform override support for hotkeys and unhardcode editor hotkeys
2022-05-07 20:55:49 +01:00
Gustas
b254eb0f3d
Add dynamic map refresh
2022-04-14 16:16:38 +02:00
Matthias Mailänder
0e7ad43425
Remove unused parameters.
2022-04-01 23:30:26 +02:00
Gustas
13ee62c181
Make overlay dropdown optional
2022-02-06 19:21:43 +01:00
Gustas
addfdf50fa
Crash when EditorWorld does not have BuildableTerrainOverlay
2022-02-06 19:21:43 +01:00
Matthias Mailänder
cd1fe2d23b
Fix saving into writable system directories.
2022-01-30 11:46:42 +01:00
Gustas
04b456d6c2
Create overlays dropdown
2022-01-26 23:09:18 +01:00
penev92
bf332b6619
Fixed fields missing the readonly modifier
2022-01-22 18:47:06 +00:00
RoosterDragon
727084c5fc
Run spell check over solution
2021-12-05 19:23:43 +01:00
abc013
442752b6ba
Fix owner of selected actor not always being selected owner in editor
2021-10-24 22:54:10 +02:00
penev92
8ba6d13b2f
Removed unused using directives
2021-10-15 13:12:33 +02:00
abcdefg30
4269fc67d5
Remove hacks around checking sync while disposing the shellmap
2021-10-09 21:13:35 +02:00
abcdefg30
777d966958
Remove unnecessary server creation when creating a new map
2021-09-08 20:26:53 +02:00
Chris Harris
1c6ca394c1
Fix duplicate ActorIDs
2021-07-17 23:27:25 +02:00
Ivaylo Draganov
64e76e1a90
Make text fields yield keyboard focus on "Esc" in a consistent way
...
- search fields clear the input and yield if empty
- chat field and actor edit field yield without clearing
2021-07-04 23:37:29 +02:00