Skip to content

Commit

Permalink
Add support for a button for toggling 2D mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Rampastring committed Aug 27, 2023
1 parent d9b9701 commit 458e0f7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/TSMapEditor/UI/TopBar/EditorControlsPanel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,10 @@ public override void Initialize()
if (btnFrameworkMode != null)
btnFrameworkMode.LeftClick += (s, e) => editorState.IsMarbleMadness = !editorState.IsMarbleMadness;

var btn2DMode = FindChild<EditorButton>("btn2DMode", true);
if (btn2DMode != null)
btn2DMode.LeftClick += (s, e) => editorState.Is2DMode = !editorState.Is2DMode;

KeyboardCommands.Instance.NextBrushSize.Triggered += NextBrushSize_Triggered;
KeyboardCommands.Instance.PreviousBrushSize.Triggered += PreviousBrushSize_Triggered;
KeyboardCommands.Instance.ToggleAutoLAT.Triggered += ToggleAutoLAT_Triggered;
Expand Down

0 comments on commit 458e0f7

Please sign in to comment.