Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More room editor changes. #888

Merged
merged 20 commits into from
May 11, 2022
Merged

Conversation

VladiStep
Copy link
Member

@VladiStep VladiStep commented May 5, 2022

  1. UndertaleBackground and UndertaleSprite items can be drag-and-dropped to the room (UndertaleSprite will work only on GMS 2 games).
  2. Fixed persistent room editor vertical scroll bar.
  3. Fixed bug that caused errors on game saving if there are some SpriteInstance copies with auto-generated name ("graphic_XXXXXXXX").
  4. Added SpriteInstance.GenerateRandomName().
  5. Added insertIndex argument to AddObjectCopy() (if defined, it inserts an object to the list).
  6. Improved Rectangle_MouseDown() so it uses AddObjectCopy().
  7. Fixed room object moving while zooming in/out.
  8. Following layer properties are now properly working/displayed: depth, offset, visibility.
  9. If layer is selected, all its objects also will flash.
  10. New layer is visible by default.
  11. Fixed adding and removing of layers.
  12. Fixed saving game data with newly created asset layers (AssetsData.NineSlices was null).
  13. Depth of new layer automatically increases.
  14. VisualUpwardSearch() and FindNearestParent() methods of MainWindow are public.
  15. Added Layer.ToString() override for ease of debugging.
  16. Fixed background layer tiling with offset.
  17. New layer name is increasing: "name" -> "name1", "name9" -> "name10".
  18. If layers of opened room are not depth-ordered, it will be suggested to rearrange them.
  19. Removed redundant BGLayerVisConverter.
  20. Following new background layer data properties are properly set: visibility, color.
  21. Removed redundant "flashAnimation" resource from the room editor.
  22. Flashing animation error message is more precise.
  23. Fixed potentional crash on layer adding/removing.
  24. Applied WPF error ("Cannot find governing FrameworkElement or FrameworkContentElement for target element.") fix to UndertaleRoomRenderer.
  25. Fixed wrong offset display of tile layer with a lot non-transparent tiles (more than 1000) and size larger than room (TileLayerImage stretch mode wasn't specified).

Closes #880.
Here's the link to final builds for testing: artifacts

@VladiStep VladiStep marked this pull request as draft May 5, 2022 15:05
@VladiStep VladiStep marked this pull request as ready for review May 10, 2022 20:01
…atic "GenerateRandomName()" method to |SpriteInstance"
…on game data save; updated "AddObjectCopy()" so that it can insert the object
1) Room editor now binds to GMS 2 room layer list without the "LayerFlattenerConverter".
2) Following layer properties are now properly working/displayed: depth, offset, visibility.
3) When layer is selected, all its object will also flash.
4) New layer is visible by default.
5) Fixed adding/removing layers.
6) Fixed saving data with newly created layers ("AssetsData.NineSlices").
7) Depth of new layer automatically increases.
8) "VisualUpwardSearch()" and "FindNearestParent()" methods of "MainWindow" are public.
9) Added "Layer.ToString()" override for ease of debugging.
10) "CanvasWithDict" class has been refactored to "LayerCanvas".
1) Layer list will rearrange on layer depth change.
2) If layers of opened room are not depth-ordered, it will be suggested to rearrange them.
3) Removed redundant "BGLayerVisConverter".
4) Following new background layer data properties are properly set: visibility, color.
5) Removed redundant "flashAnimation" resource from the room editor.
6) Flashing animation error message is more precise.
UndertaleModLib/Models/UndertaleRoom.cs Outdated Show resolved Hide resolved
UndertaleModLib/Models/UndertaleRoom.cs Show resolved Hide resolved
UndertaleModLib/Models/UndertaleRoom.cs Show resolved Hide resolved
UndertaleModTool/Editors/UndertaleRoomEditor.xaml.cs Outdated Show resolved Hide resolved
UndertaleModTool/Editors/UndertaleRoomEditor.xaml.cs Outdated Show resolved Hide resolved
UndertaleModTool/Editors/UndertaleRoomEditor.xaml.cs Outdated Show resolved Hide resolved
UndertaleModTool/Editors/UndertaleRoomEditor.xaml.cs Outdated Show resolved Hide resolved
UndertaleModTool/Editors/UndertaleRoomEditor.xaml.cs Outdated Show resolved Hide resolved
@Miepee
Copy link
Contributor

Miepee commented May 11, 2022

You forgot to note that it fixes #880. Otherwise everything seems fine.

Co-authored-by: Miepee <38186597+Miepee@users.noreply.github.com>
@VladiStep
Copy link
Member Author

You forgot to note that it fixes #880. Otherwise everything seems fine.

I've just forgot about my issue. LOL.

@Grossley Grossley merged commit 37915a6 into UnderminersTeam:master May 11, 2022
@VladiStep VladiStep deleted the roomEditorChanges branch May 11, 2022 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug with zooming in/out in the room editor.
3 participants