rude hack to stop invisible chrome bits from grabbing input
This commit is contained in:
@@ -29,6 +29,7 @@ using OpenRA.Orders;
|
|||||||
using OpenRA.Support;
|
using OpenRA.Support;
|
||||||
using OpenRA.Traits;
|
using OpenRA.Traits;
|
||||||
using OpenRA.Widgets;
|
using OpenRA.Widgets;
|
||||||
|
using OpenRA.Network;
|
||||||
|
|
||||||
namespace OpenRA
|
namespace OpenRA
|
||||||
{
|
{
|
||||||
@@ -1065,8 +1066,11 @@ namespace OpenRA
|
|||||||
|
|
||||||
public bool HitTest(int2 mousePos)
|
public bool HitTest(int2 mousePos)
|
||||||
{
|
{
|
||||||
return rootWidget.EventBounds.Contains(mousePos.X, mousePos.Y)
|
if (Game.orderManager.Connection.ConnectionState == ConnectionState.PreConnecting)
|
||||||
|| buttons.Any(a => a.First.Contains(mousePos.ToPoint()));
|
if (rootWidget.EventBounds.Contains(mousePos.X, mousePos.Y))
|
||||||
|
return true;
|
||||||
|
|
||||||
|
return buttons.Any(a => a.First.Contains(mousePos.ToPoint()));
|
||||||
}
|
}
|
||||||
|
|
||||||
void DrawRightAligned(string text, int2 pos, Color c)
|
void DrawRightAligned(string text, int2 pos, Color c)
|
||||||
|
|||||||
Reference in New Issue
Block a user