This repository has been archived by the owner on Sep 8, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
App.xaml.cs
75 lines (72 loc) · 2.85 KB
/
App.xaml.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
using System;
using System.Media;
using System.Windows;
using DiscordRPC;
using DiscordRPC.Logging;
using Inferno_Mod_Manager.Utils;
using Steamworks;
namespace Inferno_Mod_Manager {
/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App : Application {
public static DiscordRpcClient client;
protected override void OnStartup(StartupEventArgs se)
{
client = new("790509732561551402");
client.Initialize();
client.SetPresence(new()
{
Timestamps = Timestamps.Now,
Details = "Playing Inferno Omnia",
State = "Idle",
Assets = new () {LargeImageKey = "main", LargeImageText = "Inferno - Omnia"}
});
SoundPlayer sp = new SoundPlayer(Get.FireWhoosh());
sp.Play();
var splashScreen = new SplashScreen("Resources/Inferno Splash Screen.png");
splashScreen.Show(true);
base.OnStartup(se);
}
protected override void OnExit(ExitEventArgs e) {
client.Deinitialize();
client.Dispose();
base.OnExit(e);
}
public static RichPresence defaultRP = new ()
{
Timestamps = Timestamps.Now,
Details = "Playing Inferno Omnia",
State = "Idle",
Assets = new () {LargeImageKey = "main", LargeImageText = "Inferno - Omnia"}
};
public static RichPresence btd6RP = new ()
{
Timestamps = Timestamps.Now,
Details = "Playing Inferno Omnia",
State = "In-Game",
Assets = new () { LargeImageKey = "main", LargeImageText = "Inferno - Omnia", SmallImageKey = "btd6", SmallImageText = "Bloons TD 6" }
};
public static RichPresence battdRP = new ()
{
Timestamps = Timestamps.Now,
Details = "Playing Inferno Omnia",
State = "In-Game",
Assets = new () { LargeImageKey = "main", LargeImageText = "Inferno - Omnia", SmallImageKey = "battd", SmallImageText = "Bloons Adventure Time TD" }
};
public static RichPresence btd6ModdedRP = new ()
{
Timestamps = Timestamps.Now,
Details = "Playing Inferno Omnia",
State = "In-Game",
Assets = new () { LargeImageKey = "main", LargeImageText = "Inferno - Omnia", SmallImageKey = "btd6", SmallImageText = "Bloons TD 6 (Modded)" }
};
public static RichPresence battdModdedRP = new ()
{
Timestamps = Timestamps.Now,
Details = "Playing Inferno Omnia",
State = "In-Game",
Assets = new () { LargeImageKey = "main", LargeImageText = "Inferno - Omnia", SmallImageKey = "battd", SmallImageText = "Bloons Adventure Time TD (Modded)" }
};
}
}