escape actually deselects tools

This commit is contained in:
haven1433
2022-10-31 13:22:54 -05:00
parent 50cf90c9e6
commit 94a73e76fd
2 changed files with 1 additions and 2 deletions

View File

@@ -96,7 +96,7 @@ namespace HavenSoft.HexManiac.Core.ViewModels.Map {
set {
Set(ref drawBlockIndex, value, old => {
DrawMultipleTiles = false;
BlockEditorVisible = true;
if (drawBlockIndex >= 0) BlockEditorVisible = true;
PrimaryMap.BlockEditor.BlockIndex = drawBlockIndex;
drawBlockIndex = Math.Min(drawBlockIndex, PrimaryMap.BlockEditor.BlockIndex);
selectionFromBlock = false;

View File

@@ -5,7 +5,6 @@
xmlns:res="clr-namespace:HavenSoft.HexManiac.WPF.Resources"
>
<Grid>
<!-- TODO add button for showing tiles -->
<Grid.ColumnDefinitions>
<ColumnDefinition />
<ColumnDefinition Width="Auto" />