-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathAutoLoad.cs
More file actions
34 lines (31 loc) · 718 Bytes
/
Copy pathAutoLoad.cs
File metadata and controls
34 lines (31 loc) · 718 Bytes
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
using Godot;
using System;
#if WINDOWS
using Microsoft.Toolkit.Uwp.Notifications;
#endif
public partial class AutoLoad : Node
{
internal string name="";
internal string ip="127.0.0.1";
internal int port=1145;
internal int popup=0;
internal bool is_connection_lost=false;
internal string version="v"+ProjectSettings.GetSetting("application/config/version");
internal bool notification=true;
public override void _Ready()
{
}
public override void _Process(double delta)
{
}
public override void _Notification(int what)
{
if (what == NotificationWMCloseRequest)
{
#if WINDOWS
ToastNotificationManagerCompat.History.Clear();
ToastNotificationManagerCompat.Uninstall();
#endif
}
}
}