Skip to content

Make map editor brush rendering self-contained - #21529

Merged
pchote merged 6 commits into
OpenRA:bleedfrom
PunkPun:brushes
Sep 16, 2024
Merged

Make map editor brush rendering self-contained#21529
pchote merged 6 commits into
OpenRA:bleedfrom
PunkPun:brushes

Conversation

@PunkPun

@PunkPun PunkPun commented Aug 5, 2024

Copy link
Copy Markdown
Member

Fixes #20920 and contains other polish that I didn't bikeshed earlier

This makes adding new brushes much easier as the code is no longer scattered all over the place.
The PR is based on the change to the IEditorBrush interface.

Comment thread OpenRA.Mods.Common/Widgets/EditorViewportControllerWidget.cs Outdated
@PunkPun
PunkPun force-pushed the brushes branch 2 times, most recently from efb566b to 464fc1a Compare August 10, 2024 13:54

@RoosterDragon RoosterDragon left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Solid refactoring and I gave all the editor tabs a go to check they were still operating.

Comment thread mods/ts/chrome/editor.yaml Outdated
Comment thread mods/ts/chrome/editor.yaml Outdated
@PunkPun
PunkPun force-pushed the brushes branch 2 times, most recently from 527abb4 to 7c95dc7 Compare September 14, 2024 18:45
@PunkPun PunkPun added this to the Next Release milestone Sep 14, 2024
Comment thread OpenRA.Mods.Common/Traits/World/EditorCursorLayer.cs Outdated
Comment thread OpenRA.Mods.Common/Traits/World/EditorCursorLayer.cs Outdated
@pchote

pchote commented Sep 15, 2024

Copy link
Copy Markdown
Member

LGTM otherwise

Comment thread OpenRA.Mods.Common/Widgets/Logic/Editor/ActorEditLogic.cs Outdated
@pchote

pchote commented Sep 15, 2024

Copy link
Copy Markdown
Member

Sorry to say that something is off with the TD editor UI: the selection panel is more opaque than the others, which suggests that the background is being drawn twice. The height of the panel also jumps around when changing tabs, partially covering the debug text.

@pchote
pchote merged commit b09c4f3 into OpenRA:bleed Sep 16, 2024
@PunkPun
PunkPun deleted the brushes branch September 16, 2024 11:01
@pchote

pchote commented Sep 16, 2024

Copy link
Copy Markdown
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Map editor Tile/Actor search bar steals your inputs if you don't press escape

3 participants