Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

Commit

Permalink
31.01.2023
Browse files Browse the repository at this point in the history
> Added some packages
> Fixed loading screen
> Added discord activity
  • Loading branch information
NaysKutzu committed Jan 31, 2023
1 parent fde3d92 commit 712073d
Show file tree
Hide file tree
Showing 395 changed files with 284,426 additions and 415 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified .vs/MythicalLauncher/v17/.suo
Binary file not shown.
30 changes: 29 additions & 1 deletion App.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,34 @@
<?xml version="1.0" encoding="utf-8" ?>
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
</startup>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-13.0.0.0" newVersion="13.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="ICSharpCode.SharpZipLib" publicKeyToken="1b03e6acf1164f73" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-1.4.2.13" newVersion="1.4.2.13" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Buffers" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.3.0" newVersion="4.0.3.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Threading.Tasks.Extensions" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.2.0.1" newVersion="4.2.0.1" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Memory" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.1.2" newVersion="4.0.1.2" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
18 changes: 0 additions & 18 deletions Form1.cs

This file was deleted.

63 changes: 40 additions & 23 deletions Form1.Designer.cs → FrmLoading.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

85 changes: 85 additions & 0 deletions FrmLoading.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
using System;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.IO;
using System.Net;
using System.Text;
using DiscordRPC;
using DiscordRPC.Logging;

namespace MythicalLauncher
{
public partial class FrmLoading : Form
{
public FrmLoading()
{
InitializeRPC();
InitializeComponent();
}
public DiscordRpcClient client;
void InitializeRPC()
{
client = new DiscordRpcClient("1038164770244788254");

client.Logger = new ConsoleLogger() { Level = LogLevel.Warning };

client.OnReady += (sender, e) =>
{
Console.WriteLine("Received Ready from user {0}", e.User.Username);
};

client.OnPresenceUpdate += (sender, e) =>
{
Console.WriteLine("Received Update! {0}", e.Presence);
};

client.Initialize();

DiscordRPC.Button btns = new DiscordRPC.Button();
DiscordRPC.Button btns2 = new DiscordRPC.Button();
btns.Label = "Github";
btns.Url = "https://github.com/MythicalLTD/MythicalLauncher";
btns2.Label = "Free Hosting";
btns2.Url = "https://my.mythicalnodes.xyz";

client.SetPresence(new RichPresence()
{
Details = "MythicalSystems",
State = "Free custom minecraft launcher!",
Assets = new Assets()
{
LargeImageKey = "logo",
LargeImageText = "MythicalSystems",
},
Buttons = new DiscordRPC.Button[]
{
btns,
btns2
},
});
}

private void lblexit_Click(object sender, EventArgs e)
{
Application.Exit();
}

private async void FrmLoading_Load(object sender, EventArgs e)
{
await Task.Delay(10000);
FrmLogin x = new FrmLogin();
x.Show();
this.Hide();
}

private void logo_Click(object sender, EventArgs e)
{

}

private void bunifuLoader1_Click(object sender, EventArgs e)
{

}
}
}
Loading

0 comments on commit 712073d

Please sign in to comment.