Allow the cursor to be force disabled.
This commit is contained in:
@@ -39,6 +39,7 @@ namespace OpenRA
|
|||||||
public static ModData ModData;
|
public static ModData ModData;
|
||||||
public static Settings Settings;
|
public static Settings Settings;
|
||||||
public static ICursor Cursor;
|
public static ICursor Cursor;
|
||||||
|
public static bool HideCursor;
|
||||||
static WorldRenderer worldRenderer;
|
static WorldRenderer worldRenderer;
|
||||||
|
|
||||||
internal static OrderManager OrderManager;
|
internal static OrderManager OrderManager;
|
||||||
@@ -659,8 +660,13 @@ namespace OpenRA
|
|||||||
|
|
||||||
if (ModData != null && ModData.CursorProvider != null)
|
if (ModData != null && ModData.CursorProvider != null)
|
||||||
{
|
{
|
||||||
Cursor.SetCursor(Ui.Root.GetCursorOuter(Viewport.LastMousePos) ?? "default");
|
if (HideCursor)
|
||||||
Cursor.Render(Renderer);
|
Cursor.SetCursor(null);
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Cursor.SetCursor(Ui.Root.GetCursorOuter(Viewport.LastMousePos) ?? "default");
|
||||||
|
Cursor.Render(Renderer);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user