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)
|
||||
{
|
||||
if (ClickThrough || !RenderBounds.Contains(mi.Location))
|
||||
return false;
|
||||
|
||||
return true;
|
||||
return !ClickThrough && EventBounds.Contains(mi.Location);
|
||||
}
|
||||
|
||||
protected BackgroundWidget(BackgroundWidget other)
|
||||
|
||||
Reference in New Issue
Block a user