rude hack to stop invisible chrome bits from grabbing input

This commit is contained in:
Chris Forbes
2010-03-16 20:19:49 +13:00
parent 2dde4eff07
commit 22be9597ca

View File

@@ -29,6 +29,7 @@ using OpenRA.Orders;
using OpenRA.Support;
using OpenRA.Traits;
using OpenRA.Widgets;
using OpenRA.Network;
namespace OpenRA
{
@@ -1065,8 +1066,11 @@ namespace OpenRA
public bool HitTest(int2 mousePos)
{
return rootWidget.EventBounds.Contains(mousePos.X, mousePos.Y)
|| buttons.Any(a => a.First.Contains(mousePos.ToPoint()));
if (Game.orderManager.Connection.ConnectionState == ConnectionState.PreConnecting)
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)