Add Rich Presence button with link to website

This commit is contained in:
teinarss
2021-09-21 18:34:58 +02:00
committed by abcdefg30
parent 2424ddc79a
commit 9eab92e90a
2 changed files with 10 additions and 2 deletions

View File

@@ -168,7 +168,15 @@ namespace OpenRA.Mods.Common
},
Timestamps = timestamp.HasValue ? new Timestamps(timestamp.Value) : null,
Party = party,
Secrets = secrets
Secrets = secrets,
Buttons = new[]
{
new Button
{
Label = "Visit Website",
Url = Game.ModData.Manifest.Metadata.Website
}
}
};
client.SetPresence(richPresence);