From 9a6fdfa1800b9d2c09afea75acb74198a1595128 Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Sun, 2 Oct 2016 12:59:41 +0100 Subject: [PATCH] Expose setting clipboard text to mod code. --- OpenRA.Game/Game.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/OpenRA.Game/Game.cs b/OpenRA.Game/Game.cs index abd8c1b100..b80e37c86e 100644 --- a/OpenRA.Game/Game.cs +++ b/OpenRA.Game/Game.cs @@ -882,5 +882,10 @@ namespace OpenRA { return OrderManager != null && OrderManager.World == world && !world.Disposing; } + + public static bool SetClipboardText(string text) + { + return Renderer.Window.SetClipboardText(text); + } } }