Simplify mouse input handling check in BakgroundWidget
Make it the same as in `ContainerWidget`.
This commit is contained in:
@@ -27,10 +27,7 @@ namespace OpenRA.Mods.Common.Widgets
|
|||||||
|
|
||||||
public override bool HandleMouseInput(MouseInput mi)
|
public override bool HandleMouseInput(MouseInput mi)
|
||||||
{
|
{
|
||||||
if (ClickThrough || !RenderBounds.Contains(mi.Location))
|
return !ClickThrough && EventBounds.Contains(mi.Location);
|
||||||
return false;
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected BackgroundWidget(BackgroundWidget other)
|
protected BackgroundWidget(BackgroundWidget other)
|
||||||
|
|||||||
Reference in New Issue
Block a user