Refactoring on GetEventBounds in Widget

This commit is contained in:
teinarss
2020-02-15 09:43:08 +01:00
committed by abcdefg30
parent 1a9f707d18
commit 2cf6b74295
3 changed files with 14 additions and 17 deletions

View File

@@ -238,9 +238,9 @@ namespace OpenRA.Mods.Common.Widgets
}
}
public override Rectangle GetEventBounds()
public override bool EventBoundsContains(int2 location)
{
return EventBounds;
return EventBounds.Contains(location);
}
void Scroll(int amount, bool smooth = false)