mirror of
https://github.com/haven1433/HexManiacAdvance.git
synced 2026-10-02 13:16:35 -05:00
improve editing
This commit is contained in:
@@ -382,11 +382,12 @@ namespace HavenSoft.HexManiac.Core.ViewModels.Map {
|
||||
Point drawSource;
|
||||
private void DrawDown(double x, double y, int clickCount) {
|
||||
interactionType = PrimaryInteractionType.Draw;
|
||||
var map = MapUnderCursor(x, y);
|
||||
if (clickCount == 2) {
|
||||
var map = MapUnderCursor(x, y);
|
||||
if (map != null) map.PaintBlock(history.CurrentChange, drawBlockIndex, collisionIndex, x, y);
|
||||
Hover(x, y);
|
||||
} else {
|
||||
PrimaryMap = map;
|
||||
drawSource = ToTilePosition(x, y);
|
||||
DrawMove(x, y);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user