From 00ece1ba55525221f4d3591cda5dbe5ddfc8c3d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Tue, 30 Nov 2021 21:23:06 +0100 Subject: [PATCH] Add configurable tooltips to the Discord integration. --- OpenRA.Mods.Common/DiscordService.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OpenRA.Mods.Common/DiscordService.cs b/OpenRA.Mods.Common/DiscordService.cs index ff5a70e93d..055f28ae48 100644 --- a/OpenRA.Mods.Common/DiscordService.cs +++ b/OpenRA.Mods.Common/DiscordService.cs @@ -32,6 +32,7 @@ namespace OpenRA.Mods.Common public sealed class DiscordService : IGlobalModData, IDisposable { public readonly string ApplicationId = null; + public readonly string Tooltip = "Open Source real-time strategy game engine for early Westwood titles."; DiscordRpcClient client; DiscordState currentState; @@ -167,7 +168,7 @@ namespace OpenRA.Mods.Common Assets = new Assets { LargeImageKey = "large", - LargeImageText = Game.ModData.Manifest.Metadata.Title, + LargeImageText = Tooltip, }, Timestamps = timestamp.HasValue ? new Timestamps(timestamp.Value) : null, Party = party,