Add configurable tooltips to the Discord integration.
This commit is contained in:
committed by
reaperrr
parent
c9022bcb73
commit
00ece1ba55
@@ -32,6 +32,7 @@ namespace OpenRA.Mods.Common
|
|||||||
public sealed class DiscordService : IGlobalModData, IDisposable
|
public sealed class DiscordService : IGlobalModData, IDisposable
|
||||||
{
|
{
|
||||||
public readonly string ApplicationId = null;
|
public readonly string ApplicationId = null;
|
||||||
|
public readonly string Tooltip = "Open Source real-time strategy game engine for early Westwood titles.";
|
||||||
DiscordRpcClient client;
|
DiscordRpcClient client;
|
||||||
DiscordState currentState;
|
DiscordState currentState;
|
||||||
|
|
||||||
@@ -167,7 +168,7 @@ namespace OpenRA.Mods.Common
|
|||||||
Assets = new Assets
|
Assets = new Assets
|
||||||
{
|
{
|
||||||
LargeImageKey = "large",
|
LargeImageKey = "large",
|
||||||
LargeImageText = Game.ModData.Manifest.Metadata.Title,
|
LargeImageText = Tooltip,
|
||||||
},
|
},
|
||||||
Timestamps = timestamp.HasValue ? new Timestamps(timestamp.Value) : null,
|
Timestamps = timestamp.HasValue ? new Timestamps(timestamp.Value) : null,
|
||||||
Party = party,
|
Party = party,
|
||||||
|
|||||||
Reference in New Issue
Block a user