Add configurable tooltips to the Discord integration.

This commit is contained in:
Matthias Mailänder
2021-11-30 21:23:06 +01:00
committed by reaperrr
parent c9022bcb73
commit 00ece1ba55

View File

@@ -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,