only change editor brushes on mouseup
let other uses of the right mouse button bubble up
This commit is contained in:
@@ -89,8 +89,13 @@ namespace OpenRA.Mods.Common.Widgets
|
|||||||
|
|
||||||
if (mi.Button == MouseButton.Right)
|
if (mi.Button == MouseButton.Right)
|
||||||
{
|
{
|
||||||
editorWidget.ClearBrush();
|
if (mi.Event == MouseInputEvent.Up)
|
||||||
return true;
|
{
|
||||||
|
editorWidget.ClearBrush();
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
var cell = worldRenderer.Viewport.ViewToWorld(mi.Location);
|
var cell = worldRenderer.Viewport.ViewToWorld(mi.Location);
|
||||||
|
|||||||
@@ -64,8 +64,13 @@ namespace OpenRA.Mods.Common.Widgets
|
|||||||
|
|
||||||
if (mi.Button == MouseButton.Right)
|
if (mi.Button == MouseButton.Right)
|
||||||
{
|
{
|
||||||
editorWidget.ClearBrush();
|
if (mi.Event == MouseInputEvent.Up)
|
||||||
return true;
|
{
|
||||||
|
editorWidget.ClearBrush();
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
var cell = worldRenderer.Viewport.ViewToWorld(mi.Location);
|
var cell = worldRenderer.Viewport.ViewToWorld(mi.Location);
|
||||||
|
|||||||
@@ -64,8 +64,13 @@ namespace OpenRA.Mods.Common.Widgets
|
|||||||
|
|
||||||
if (mi.Button == MouseButton.Right)
|
if (mi.Button == MouseButton.Right)
|
||||||
{
|
{
|
||||||
editorWidget.ClearBrush();
|
if (mi.Event == MouseInputEvent.Up)
|
||||||
return true;
|
{
|
||||||
|
editorWidget.ClearBrush();
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mi.Button == MouseButton.Left)
|
if (mi.Button == MouseButton.Left)
|
||||||
|
|||||||
Reference in New Issue
Block a user