Add project files.
This commit is contained in:
1 parent
e1e28b7238
commit
53b172095f
12 files changed
+7632
No files matched your search
@@ -0,0 +1,17 @@
|
||||
using System.Diagnostics;
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Runtime.Versioning;
|
||||
|
||||
[assembly: AssemblyTitle("XPS")]
|
||||
[assembly: AssemblyDescription("Xytriza's Geometry Dash Private Server")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("XPS")]
|
||||
[assembly: AssemblyCopyright("Copyright © Xytriza 2024")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: ComVisible(false)]
|
||||
[assembly: Guid("1dfb73e7-c99e-43e8-a0ab-f271d8f36c80")]
|
||||
[assembly: AssemblyFileVersion("2.6.1")]
|
||||
[assembly: AssemblyVersion("2.6.1.0")]
|
||||
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,77 @@
|
||||
using System.CodeDom.Compiler;
|
||||
using System.ComponentModel;
|
||||
using System.Diagnostics;
|
||||
using System.Drawing;
|
||||
using System.Globalization;
|
||||
using System.Resources;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace XPS.Properties;
|
||||
|
||||
[GeneratedCode("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
|
||||
[DebuggerNonUserCode]
|
||||
[CompilerGenerated]
|
||||
internal class Resources
|
||||
{
|
||||
private static ResourceManager resourceMan;
|
||||
|
||||
private static CultureInfo resourceCulture;
|
||||
|
||||
[EditorBrowsable(EditorBrowsableState.Advanced)]
|
||||
internal static ResourceManager ResourceManager
|
||||
{
|
||||
get
|
||||
{
|
||||
if (resourceMan == null)
|
||||
{
|
||||
resourceMan = new ResourceManager("XPS.Properties.Resources", typeof(Resources).Assembly);
|
||||
}
|
||||
return resourceMan;
|
||||
}
|
||||
}
|
||||
|
||||
[EditorBrowsable(EditorBrowsableState.Advanced)]
|
||||
internal static CultureInfo Culture
|
||||
{
|
||||
get
|
||||
{
|
||||
return resourceCulture;
|
||||
}
|
||||
set
|
||||
{
|
||||
resourceCulture = value;
|
||||
}
|
||||
}
|
||||
|
||||
internal static Bitmap Checked => (Bitmap)ResourceManager.GetObject("Checked", resourceCulture);
|
||||
|
||||
internal static Bitmap Dashboard => (Bitmap)ResourceManager.GetObject("Dashboard", resourceCulture);
|
||||
|
||||
internal static Bitmap Discord => (Bitmap)ResourceManager.GetObject("Discord", resourceCulture);
|
||||
|
||||
internal static Bitmap Exit => (Bitmap)ResourceManager.GetObject("Exit", resourceCulture);
|
||||
|
||||
internal static Bitmap logoIco => (Bitmap)ResourceManager.GetObject("logoIco", resourceCulture);
|
||||
|
||||
internal static Bitmap logoIcoTransparent => (Bitmap)ResourceManager.GetObject("logoIcoTransparent", resourceCulture);
|
||||
|
||||
internal static Bitmap logoPng => (Bitmap)ResourceManager.GetObject("logoPng", resourceCulture);
|
||||
|
||||
internal static Bitmap logoPngTransparent => (Bitmap)ResourceManager.GetObject("logoPngTransparent", resourceCulture);
|
||||
|
||||
internal static Bitmap Settings => (Bitmap)ResourceManager.GetObject("Settings", resourceCulture);
|
||||
|
||||
internal static Bitmap Twitch => (Bitmap)ResourceManager.GetObject("Twitch", resourceCulture);
|
||||
|
||||
internal static Bitmap Twitter => (Bitmap)ResourceManager.GetObject("Twitter", resourceCulture);
|
||||
|
||||
internal static Bitmap Unchecked => (Bitmap)ResourceManager.GetObject("Unchecked", resourceCulture);
|
||||
|
||||
internal static Bitmap Website => (Bitmap)ResourceManager.GetObject("Website", resourceCulture);
|
||||
|
||||
internal static Bitmap YouTube => (Bitmap)ResourceManager.GetObject("YouTube", resourceCulture);
|
||||
|
||||
internal Resources()
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
using System.CodeDom.Compiler;
|
||||
using System.Configuration;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace XPS.Properties;
|
||||
|
||||
[CompilerGenerated]
|
||||
[GeneratedCode("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.8.0.0")]
|
||||
internal sealed class Settings : ApplicationSettingsBase
|
||||
{
|
||||
private static Settings defaultInstance = (Settings)SettingsBase.Synchronized(new Settings());
|
||||
|
||||
public static Settings Default => defaultInstance;
|
||||
}
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">
|
||||
<PropertyGroup>
|
||||
<AssemblyName>XPS</AssemblyName>
|
||||
<GenerateAssemblyInfo>False</GenerateAssemblyInfo>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<UseWindowsForms>True</UseWindowsForms>
|
||||
<TargetFramework>net472</TargetFramework>
|
||||
<Prefer32Bit>True</Prefer32Bit>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<LangVersion>12.0</LangVersion>
|
||||
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<ApplicationIcon>app.ico</ApplicationIcon>
|
||||
<RootNamespace />
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.Web.WebView2" Version="1.0.2957.106" />
|
||||
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System.Net.Http" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="Newtonsoft.Json">
|
||||
<HintPath>..\..\AppData\Roaming\Xytriza\XPS\Newtonsoft.Json.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.Web.WebView2.WinForms">
|
||||
<HintPath>..\..\AppData\Roaming\Xytriza\XPS\Microsoft.Web.WebView2.WinForms.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System.IO.Compression.FileSystem" />
|
||||
<Reference Include="Microsoft.Web.WebView2.Core">
|
||||
<HintPath>..\..\AppData\Roaming\Xytriza\XPS\Microsoft.Web.WebView2.Core.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,22 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 17
|
||||
VisualStudioVersion = 17.12.35707.178 d17.12
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "XPS", "XPS.csproj", "{3F4788CC-BC3B-4C6B-803D-FBA1992060C1}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{3F4788CC-BC3B-4C6B-803D-FBA1992060C1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{3F4788CC-BC3B-4C6B-803D-FBA1992060C1}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{3F4788CC-BC3B-4C6B-803D-FBA1992060C1}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{3F4788CC-BC3B-4C6B-803D-FBA1992060C1}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
@@ -0,0 +1,95 @@
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using System.Windows.Forms;
|
||||
using Microsoft.Web.WebView2.WinForms;
|
||||
|
||||
namespace XPS;
|
||||
|
||||
public class BrowserForm : Form
|
||||
{
|
||||
private static BrowserForm instance;
|
||||
|
||||
private WebView2 webView;
|
||||
|
||||
private IContainer components;
|
||||
|
||||
public string FormName { get; private set; }
|
||||
|
||||
private BrowserForm(string url, string formname)
|
||||
{
|
||||
InitializeComponent();
|
||||
InitializeBrowser();
|
||||
LoadUrl(url);
|
||||
SetFormName(formname);
|
||||
}
|
||||
|
||||
public static BrowserForm GetInstance(string url, string formname)
|
||||
{
|
||||
if (instance == null || instance.IsDisposed)
|
||||
{
|
||||
instance = new BrowserForm(url, formname);
|
||||
}
|
||||
else
|
||||
{
|
||||
instance.LoadUrl(url);
|
||||
instance.SetFormName(formname);
|
||||
}
|
||||
return instance;
|
||||
}
|
||||
|
||||
private void InitializeBrowser()
|
||||
{
|
||||
webView = new WebView2
|
||||
{
|
||||
Dock = DockStyle.Fill
|
||||
};
|
||||
base.Controls.Add(webView);
|
||||
base.StartPosition = FormStartPosition.CenterScreen;
|
||||
base.WindowState = FormWindowState.Maximized;
|
||||
}
|
||||
|
||||
private async void LoadUrl(string url)
|
||||
{
|
||||
if (webView.CoreWebView2 == null)
|
||||
{
|
||||
await webView.EnsureCoreWebView2Async(null);
|
||||
}
|
||||
webView.CoreWebView2.Navigate(url);
|
||||
}
|
||||
|
||||
private void SetFormName(string formname)
|
||||
{
|
||||
FormName = formname;
|
||||
Text = formname;
|
||||
}
|
||||
|
||||
public new void Show()
|
||||
{
|
||||
if (!base.Visible)
|
||||
{
|
||||
base.Show();
|
||||
}
|
||||
BringToFront();
|
||||
}
|
||||
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && components != null)
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
private void InitializeComponent()
|
||||
{
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(XPS.BrowserForm));
|
||||
base.SuspendLayout();
|
||||
base.AutoScaleDimensions = new System.Drawing.SizeF(8f, 16f);
|
||||
base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
base.ClientSize = new System.Drawing.Size(1262, 673);
|
||||
base.Icon = (System.Drawing.Icon)resources.GetObject("$this.Icon");
|
||||
base.Name = "BrowserForm";
|
||||
base.ResumeLayout(false);
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace XPSLauncher;
|
||||
|
||||
internal static class Program
|
||||
{
|
||||
[STAThread]
|
||||
private static void Main()
|
||||
{
|
||||
Application.EnableVisualStyles();
|
||||
Application.SetCompatibleTextRenderingDefault(defaultValue: false);
|
||||
Application.Run(new MainForm());
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user