change version and project becouse rafael1209 is autistic

This commit is contained in:
Dima yawaflua Andreev
2024-04-30 22:06:45 +03:00
parent bd216bd8be
commit ce9719e7d4
14 changed files with 1008 additions and 862 deletions

View File

@@ -3,22 +3,22 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.4.33403.182
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Discord Custom Status", "Discord Custom Status\Discord Custom Status.csproj", "{B07BB826-E59D-4B9C-9234-9465893293A6}"
EndProject
Project("{54435603-DBB4-11D2-8724-00A0C9A8B90C}") = "Setup", "Setup\Setup.vdproj", "{76643B4C-A716-4C4C-8307-506E23C038C7}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Discord Custom Status", "Discord Custom Status\Discord Custom Status.csproj", "{64B6E288-F510-4221-9189-0AE2B26E53AA}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{B07BB826-E59D-4B9C-9234-9465893293A6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B07BB826-E59D-4B9C-9234-9465893293A6}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B07BB826-E59D-4B9C-9234-9465893293A6}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B07BB826-E59D-4B9C-9234-9465893293A6}.Release|Any CPU.Build.0 = Release|Any CPU
{76643B4C-A716-4C4C-8307-506E23C038C7}.Debug|Any CPU.ActiveCfg = Debug
{76643B4C-A716-4C4C-8307-506E23C038C7}.Release|Any CPU.ActiveCfg = Release
{64B6E288-F510-4221-9189-0AE2B26E53AA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{64B6E288-F510-4221-9189-0AE2B26E53AA}.Debug|Any CPU.Build.0 = Debug|Any CPU
{64B6E288-F510-4221-9189-0AE2B26E53AA}.Release|Any CPU.ActiveCfg = Release|Any CPU
{64B6E288-F510-4221-9189-0AE2B26E53AA}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE

View File

@@ -1,12 +1,12 @@
<?xml version="1.0" encoding="utf-8" ?>
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
<section name="Discord_Custom_Status.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<section name="Discord_Custom_Status.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false"/>
</sectionGroup>
</configSections>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/>
</startup>
<userSettings>
<Discord_Custom_Status.Properties.Settings>
@@ -64,6 +64,18 @@
<setting name="CustomState" serializeAs="String">
<value />
</setting>
<setting name="Button1Label" serializeAs="String">
<value>Check our github</value>
</setting>
<setting name="Button1Url" serializeAs="String">
<value>https://yawaflua.ru/r/gh</value>
</setting>
<setting name="Button2Label" serializeAs="String">
<value>Check our github</value>
</setting>
<setting name="Button2Url" serializeAs="String">
<value>https://github.com/rafael1209</value>
</setting>
</Discord_Custom_Status.Properties.Settings>
</userSettings>
</configuration>
</configuration>

View File

@@ -1,103 +1,36 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{B07BB826-E59D-4B9C-9234-9465893293A6}</ProjectGuid>
<TargetFramework>net8.0-windows</TargetFramework>
<OutputType>WinExe</OutputType>
<RootNamespace>Discord_Custom_Status</RootNamespace>
<AssemblyName>Discord Custom Status</AssemblyName>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<Deterministic>true</Deterministic>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<UseWindowsForms>true</UseWindowsForms>
<ImportWindowsDesktopTargets>true</ImportWindowsDesktopTargets>
</PropertyGroup>
<ItemGroup>
<Reference Include="DiscordRPC, Version=1.2.1.24, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\DiscordRichPresence.1.2.1.24\lib\net45\DiscordRPC.dll</HintPath>
</Reference>
<Reference Include="Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<HintPath>..\packages\Newtonsoft.Json.13.0.1\lib\net45\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.DirectoryServices" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Deployment" />
<Reference Include="System.Drawing" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
<Content Include="img\dslogo.ico" />
</ItemGroup>
<Target Name="CopyImageToOutput">
<Copy SourceFiles="$(ProjectDir)\img\dslogo.ico" DestinationFolder="$(TargetDir)" />
</Target>
<ItemGroup>
<PackageReference Include="DiscordRichPresence" Version="1.2.1.24" />
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
<PackageReference Include="System.Data.DataSetExtensions" Version="4.5.0" />
<PackageReference Include="System.DirectoryServices" Version="8.0.0" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
</ItemGroup>
<ItemGroup>
<Compile Include="Form1.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Form1.Designer.cs">
<DependentUpon>Form1.cs</DependentUpon>
</Compile>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Settings.cs" />
<EmbeddedResource Include="Form1.resx">
<DependentUpon>Form1.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</EmbeddedResource>
<Compile Include="Properties\Resources.Designer.cs">
<Compile Update="Properties\Settings.Designer.cs">
<DesignTimeSharedInput>True</DesignTimeSharedInput>
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
<DesignTime>True</DesignTime>
<DependentUpon>Settings.settings</DependentUpon>
</Compile>
<None Include="packages.config" />
<None Include="Properties\Settings.settings">
</ItemGroup>
<ItemGroup>
<None Update="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<ItemGroup>
<Content Include="img\dslogo.ico" />
<None Include="img\logorafael.png" />
</ItemGroup>
<ItemGroup>
<None Include="img\pplogo.png" />
</ItemGroup>
<ItemGroup>
<None Include="img\verifylogo.png" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>

View File

@@ -0,0 +1,740 @@
namespace Discord_Custom_Status
{
partial class DiscordCustomStatusForm
{
/// <summary>
/// Обязательная переменная конструктора.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Освободить все используемые ресурсы.
/// </summary>
/// <param name="disposing">истинно, если управляемый ресурс должен быть удален; иначе ложно.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Код, автоматически созданный конструктором форм Windows
/// <summary>
/// Требуемый метод для поддержки конструктора — не изменяйте
/// содержимое этого метода с помощью редактора кода.
/// </summary>
private void InitializeComponent()
{
components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(DiscordCustomStatusForm));
runButton = new System.Windows.Forms.Button();
label1 = new System.Windows.Forms.Label();
label2 = new System.Windows.Forms.Label();
detailsFild = new System.Windows.Forms.TextBox();
label3 = new System.Windows.Forms.Label();
label5 = new System.Windows.Forms.Label();
smallImgKeyFild = new System.Windows.Forms.TextBox();
label6 = new System.Windows.Forms.Label();
largeImgKeyFild = new System.Windows.Forms.TextBox();
label7 = new System.Windows.Forms.Label();
smallImgTextFild = new System.Windows.Forms.TextBox();
label8 = new System.Windows.Forms.Label();
largeImgTextFild = new System.Windows.Forms.TextBox();
checkBox1 = new System.Windows.Forms.CheckBox();
label9 = new System.Windows.Forms.Label();
stateTextFild = new System.Windows.Forms.TextBox();
label4 = new System.Windows.Forms.Label();
label10 = new System.Windows.Forms.Label();
label11 = new System.Windows.Forms.Label();
label12 = new System.Windows.Forms.Label();
label13 = new System.Windows.Forms.Label();
textBox1 = new System.Windows.Forms.TextBox();
checkBox2 = new System.Windows.Forms.CheckBox();
label14 = new System.Windows.Forms.Label();
textBox2 = new System.Windows.Forms.TextBox();
timer = new System.Windows.Forms.Timer(components);
textBox3 = new System.Windows.Forms.TextBox();
label15 = new System.Windows.Forms.Label();
label17 = new System.Windows.Forms.Label();
label18 = new System.Windows.Forms.Label();
ClientIDFild = new System.Windows.Forms.TextBox();
pictureBox2 = new System.Windows.Forms.PictureBox();
pictureBox1 = new System.Windows.Forms.PictureBox();
isAddButtonsChecked = new System.Windows.Forms.CheckBox();
textBox4 = new System.Windows.Forms.TextBox();
label16 = new System.Windows.Forms.Label();
label19 = new System.Windows.Forms.Label();
label20 = new System.Windows.Forms.Label();
textBox5 = new System.Windows.Forms.TextBox();
label21 = new System.Windows.Forms.Label();
textBox6 = new System.Windows.Forms.TextBox();
label22 = new System.Windows.Forms.Label();
textBox7 = new System.Windows.Forms.TextBox();
checkBox3 = new System.Windows.Forms.CheckBox();
button1 = new System.Windows.Forms.Button();
((System.ComponentModel.ISupportInitialize)pictureBox2).BeginInit();
((System.ComponentModel.ISupportInitialize)pictureBox1).BeginInit();
SuspendLayout();
//
// runButton
//
runButton.Anchor = System.Windows.Forms.AnchorStyles.Bottom;
runButton.BackColor = System.Drawing.SystemColors.WindowFrame;
runButton.ForeColor = System.Drawing.SystemColors.ControlLightLight;
runButton.Location = new System.Drawing.Point(327, 547);
runButton.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
runButton.Name = "runButton";
runButton.Size = new System.Drawing.Size(118, 44);
runButton.TabIndex = 0;
runButton.Text = "UPDATE";
runButton.UseVisualStyleBackColor = false;
runButton.Click += runButton_Click;
//
// label1
//
label1.AutoSize = true;
label1.ForeColor = System.Drawing.SystemColors.ControlLightLight;
label1.Location = new System.Drawing.Point(11, 117);
label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
label1.Name = "label1";
label1.Size = new System.Drawing.Size(52, 15);
label1.TabIndex = 2;
label1.Text = "Client ID";
//
// label2
//
label2.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right;
label2.AutoSize = true;
label2.ForeColor = System.Drawing.SystemColors.ControlLightLight;
label2.Location = new System.Drawing.Point(251, 117);
label2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
label2.Name = "label2";
label2.Size = new System.Drawing.Size(49, 15);
label2.TabIndex = 4;
label2.Text = "DETAILS";
//
// detailsFild
//
detailsFild.Anchor = System.Windows.Forms.AnchorStyles.None;
detailsFild.BackColor = System.Drawing.SystemColors.WindowFrame;
detailsFild.Cursor = System.Windows.Forms.Cursors.IBeam;
detailsFild.ForeColor = System.Drawing.SystemColors.ControlLightLight;
detailsFild.Location = new System.Drawing.Point(251, 127);
detailsFild.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
detailsFild.MaxLength = 100;
detailsFild.Name = "detailsFild";
detailsFild.Size = new System.Drawing.Size(195, 23);
detailsFild.TabIndex = 3;
detailsFild.Text = "Premium Plus";
detailsFild.TextChanged += detailsFild_TextChanged;
//
// label3
//
label3.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right;
label3.AutoSize = true;
label3.ForeColor = System.Drawing.SystemColors.ControlLightLight;
label3.Location = new System.Drawing.Point(251, 323);
label3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
label3.Name = "label3";
label3.Size = new System.Drawing.Size(104, 15);
label3.TabIndex = 6;
label3.Text = "START TIMESTAMP";
//
// label5
//
label5.AutoSize = true;
label5.ForeColor = System.Drawing.SystemColors.ControlLightLight;
label5.Location = new System.Drawing.Point(8, 322);
label5.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
label5.Name = "label5";
label5.Size = new System.Drawing.Size(106, 15);
label5.TabIndex = 16;
label5.Text = "SMALL IMAGE KEY";
//
// smallImgKeyFild
//
smallImgKeyFild.BackColor = System.Drawing.SystemColors.WindowFrame;
smallImgKeyFild.Cursor = System.Windows.Forms.Cursors.IBeam;
smallImgKeyFild.ForeColor = System.Drawing.SystemColors.ControlLightLight;
smallImgKeyFild.Location = new System.Drawing.Point(11, 341);
smallImgKeyFild.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
smallImgKeyFild.MaxLength = 100;
smallImgKeyFild.Name = "smallImgKeyFild";
smallImgKeyFild.Size = new System.Drawing.Size(195, 23);
smallImgKeyFild.TabIndex = 15;
smallImgKeyFild.Text = "verified";
//
// label6
//
label6.AutoSize = true;
label6.ForeColor = System.Drawing.SystemColors.ControlLightLight;
label6.Location = new System.Drawing.Point(11, 187);
label6.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
label6.Name = "label6";
label6.Size = new System.Drawing.Size(104, 15);
label6.TabIndex = 14;
label6.Text = "LARGE IMAGE KEY";
//
// largeImgKeyFild
//
largeImgKeyFild.BackColor = System.Drawing.SystemColors.WindowFrame;
largeImgKeyFild.Cursor = System.Windows.Forms.Cursors.IBeam;
largeImgKeyFild.ForeColor = System.Drawing.SystemColors.ControlLightLight;
largeImgKeyFild.Location = new System.Drawing.Point(11, 208);
largeImgKeyFild.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
largeImgKeyFild.MaxLength = 100;
largeImgKeyFild.Name = "largeImgKeyFild";
largeImgKeyFild.Size = new System.Drawing.Size(195, 23);
largeImgKeyFild.TabIndex = 13;
largeImgKeyFild.Text = "_premium_";
//
// label7
//
label7.Location = new System.Drawing.Point(0, 0);
label7.Name = "label7";
label7.Size = new System.Drawing.Size(100, 23);
label7.TabIndex = 49;
//
// smallImgTextFild
//
smallImgTextFild.BackColor = System.Drawing.SystemColors.WindowFrame;
smallImgTextFild.Cursor = System.Windows.Forms.Cursors.IBeam;
smallImgTextFild.ForeColor = System.Drawing.SystemColors.ControlLightLight;
smallImgTextFild.Location = new System.Drawing.Point(11, 404);
smallImgTextFild.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
smallImgTextFild.MaxLength = 100;
smallImgTextFild.Name = "smallImgTextFild";
smallImgTextFild.Size = new System.Drawing.Size(195, 23);
smallImgTextFild.TabIndex = 11;
smallImgTextFild.Text = "Verified";
//
// label8
//
label8.AutoSize = true;
label8.ForeColor = System.Drawing.SystemColors.ControlLightLight;
label8.Location = new System.Drawing.Point(11, 257);
label8.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
label8.Name = "label8";
label8.Size = new System.Drawing.Size(109, 15);
label8.TabIndex = 10;
label8.Text = "LARGE IMAGE TEXT";
//
// largeImgTextFild
//
largeImgTextFild.BackColor = System.Drawing.SystemColors.WindowFrame;
largeImgTextFild.Cursor = System.Windows.Forms.Cursors.IBeam;
largeImgTextFild.ForeColor = System.Drawing.SystemColors.ControlLightLight;
largeImgTextFild.Location = new System.Drawing.Point(11, 277);
largeImgTextFild.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
largeImgTextFild.MaxLength = 100;
largeImgTextFild.Name = "largeImgTextFild";
largeImgTextFild.Size = new System.Drawing.Size(195, 23);
largeImgTextFild.TabIndex = 9;
largeImgTextFild.Text = "Premium Plus";
//
// checkBox1
//
checkBox1.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right;
checkBox1.AutoSize = true;
checkBox1.ForeColor = System.Drawing.SystemColors.ControlLightLight;
checkBox1.Location = new System.Drawing.Point(392, 318);
checkBox1.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
checkBox1.Name = "checkBox1";
checkBox1.Size = new System.Drawing.Size(64, 19);
checkBox1.TabIndex = 17;
checkBox1.Text = "Disable";
checkBox1.UseVisualStyleBackColor = true;
checkBox1.CheckedChanged += checkBox1_CheckedChanged;
//
// label9
//
label9.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right;
label9.AutoSize = true;
label9.ForeColor = System.Drawing.SystemColors.ControlLightLight;
label9.Location = new System.Drawing.Point(251, 187);
label9.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
label9.Name = "label9";
label9.Size = new System.Drawing.Size(37, 15);
label9.TabIndex = 24;
label9.Text = "STATE";
//
// stateTextFild
//
stateTextFild.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right;
stateTextFild.BackColor = System.Drawing.SystemColors.WindowFrame;
stateTextFild.Cursor = System.Windows.Forms.Cursors.IBeam;
stateTextFild.ForeColor = System.Drawing.SystemColors.ControlLightLight;
stateTextFild.Location = new System.Drawing.Point(251, 208);
stateTextFild.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
stateTextFild.MaxLength = 100;
stateTextFild.Name = "stateTextFild";
stateTextFild.Size = new System.Drawing.Size(195, 23);
stateTextFild.TabIndex = 23;
stateTextFild.Text = "https://premiumplus-il.com/";
stateTextFild.TextChanged += stateTextFild_TextChanged;
//
// label4
//
label4.AutoSize = true;
label4.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 204);
label4.ForeColor = System.Drawing.SystemColors.ControlLightLight;
label4.Location = new System.Drawing.Point(108, 9);
label4.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
label4.Name = "label4";
label4.Size = new System.Drawing.Size(128, 20);
label4.TabIndex = 27;
label4.Text = "Custom Status";
//
// label10
//
label10.AutoSize = true;
label10.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 204);
label10.ForeColor = System.Drawing.SystemColors.ControlLightLight;
label10.Location = new System.Drawing.Point(108, 32);
label10.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
label10.Name = "label10";
label10.Size = new System.Drawing.Size(173, 20);
label10.TabIndex = 28;
label10.Text = "Discord Custom Status";
//
// label11
//
label11.AutoSize = true;
label11.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 204);
label11.ForeColor = System.Drawing.SystemColors.ControlLightLight;
label11.Location = new System.Drawing.Point(108, 55);
label11.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
label11.Name = "label11";
label11.Size = new System.Drawing.Size(204, 20);
label11.TabIndex = 29;
label11.Text = "By rafael1209 and yawaflua";
//
// label12
//
label12.AutoSize = true;
label12.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 204);
label12.ForeColor = System.Drawing.SystemColors.ControlLightLight;
label12.Location = new System.Drawing.Point(108, 80);
label12.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
label12.Name = "label12";
label12.Size = new System.Drawing.Size(110, 20);
label12.TabIndex = 30;
label12.Text = "Passed: 00:00";
//
// label13
//
label13.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right;
label13.AutoSize = true;
label13.ForeColor = System.Drawing.SystemColors.ControlLightLight;
label13.Location = new System.Drawing.Point(251, 257);
label13.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
label13.Name = "label13";
label13.Size = new System.Drawing.Size(40, 15);
label13.TabIndex = 31;
label13.Text = "PARTY";
//
// textBox1
//
textBox1.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right;
textBox1.BackColor = System.Drawing.SystemColors.WindowFrame;
textBox1.Cursor = System.Windows.Forms.Cursors.IBeam;
textBox1.ForeColor = System.Drawing.SystemColors.ControlLightLight;
textBox1.Location = new System.Drawing.Point(251, 277);
textBox1.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
textBox1.MaxLength = 4;
textBox1.Name = "textBox1";
textBox1.Size = new System.Drawing.Size(46, 23);
textBox1.TabIndex = 32;
textBox1.Text = "1";
textBox1.TextChanged += textBox1_TextChanged;
//
// checkBox2
//
checkBox2.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right;
checkBox2.AutoSize = true;
checkBox2.ForeColor = System.Drawing.SystemColors.ControlLightLight;
checkBox2.Location = new System.Drawing.Point(315, 256);
checkBox2.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
checkBox2.Name = "checkBox2";
checkBox2.Size = new System.Drawing.Size(64, 19);
checkBox2.TabIndex = 33;
checkBox2.Text = "Disable";
checkBox2.UseVisualStyleBackColor = true;
checkBox2.CheckedChanged += checkBox2_CheckedChanged;
//
// label14
//
label14.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right;
label14.AutoSize = true;
label14.ForeColor = System.Drawing.SystemColors.ControlLightLight;
label14.Location = new System.Drawing.Point(305, 280);
label14.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
label14.Name = "label14";
label14.Size = new System.Drawing.Size(22, 15);
label14.TabIndex = 34;
label14.Text = "OF";
//
// textBox2
//
textBox2.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right;
textBox2.BackColor = System.Drawing.SystemColors.WindowFrame;
textBox2.Cursor = System.Windows.Forms.Cursors.IBeam;
textBox2.ForeColor = System.Drawing.SystemColors.ControlLightLight;
textBox2.Location = new System.Drawing.Point(340, 277);
textBox2.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
textBox2.MaxLength = 4;
textBox2.Name = "textBox2";
textBox2.Size = new System.Drawing.Size(46, 23);
textBox2.TabIndex = 35;
textBox2.Text = "10";
textBox2.TextChanged += textBox2_TextChanged;
//
// timer
//
timer.Enabled = true;
timer.Interval = 1000;
timer.Tick += timer_Tick;
//
// textBox3
//
textBox3.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right;
textBox3.BackColor = System.Drawing.SystemColors.WindowFrame;
textBox3.Cursor = System.Windows.Forms.Cursors.IBeam;
textBox3.ForeColor = System.Drawing.SystemColors.ControlLightLight;
textBox3.Location = new System.Drawing.Point(329, 341);
textBox3.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
textBox3.MaxLength = 2;
textBox3.Name = "textBox3";
textBox3.Size = new System.Drawing.Size(33, 23);
textBox3.TabIndex = 36;
textBox3.Text = "0";
//
// label15
//
label15.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right;
label15.AutoSize = true;
label15.ForeColor = System.Drawing.SystemColors.ControlLightLight;
label15.Location = new System.Drawing.Point(370, 344);
label15.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
label15.Name = "label15";
label15.Size = new System.Drawing.Size(65, 15);
label15.TabIndex = 37;
label15.Text = "hour/s ago";
//
// label17
//
label17.AutoSize = true;
label17.ForeColor = System.Drawing.SystemColors.ControlLightLight;
label17.Location = new System.Drawing.Point(244, 13);
label17.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
label17.Name = "label17";
label17.Size = new System.Drawing.Size(37, 15);
label17.TabIndex = 39;
label17.Text = "v6.0.0";
//
// label18
//
label18.AutoSize = true;
label18.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F);
label18.Location = new System.Drawing.Point(474, 9);
label18.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
label18.Name = "label18";
label18.Size = new System.Drawing.Size(15, 15);
label18.TabIndex = 40;
label18.Text = "X";
label18.Click += label18_Click;
label18.MouseEnter += label18_MouseEnter;
label18.MouseLeave += label18_MouseLeave;
//
// ClientIDFild
//
ClientIDFild.BackColor = System.Drawing.SystemColors.WindowFrame;
ClientIDFild.Cursor = System.Windows.Forms.Cursors.IBeam;
ClientIDFild.ForeColor = System.Drawing.SystemColors.ControlLightLight;
ClientIDFild.Location = new System.Drawing.Point(15, 139);
ClientIDFild.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
ClientIDFild.MaxLength = 100;
ClientIDFild.Name = "ClientIDFild";
ClientIDFild.Size = new System.Drawing.Size(191, 23);
ClientIDFild.TabIndex = 45;
ClientIDFild.Text = "1168313472384249986";
//
// pictureBox2
//
pictureBox2.Image = Properties.Resources.verifylogo;
pictureBox2.Location = new System.Drawing.Point(78, 80);
pictureBox2.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
pictureBox2.Name = "pictureBox2";
pictureBox2.Size = new System.Drawing.Size(23, 23);
pictureBox2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
pictureBox2.TabIndex = 26;
pictureBox2.TabStop = false;
//
// pictureBox1
//
pictureBox1.Image = Properties.Resources.logorafael;
pictureBox1.Location = new System.Drawing.Point(8, 9);
pictureBox1.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
pictureBox1.Name = "pictureBox1";
pictureBox1.Size = new System.Drawing.Size(93, 92);
pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
pictureBox1.TabIndex = 25;
pictureBox1.TabStop = false;
//
// isAddButtonsChecked
//
isAddButtonsChecked.AutoSize = true;
isAddButtonsChecked.Checked = true;
isAddButtonsChecked.CheckState = System.Windows.Forms.CheckState.Checked;
isAddButtonsChecked.ForeColor = System.Drawing.SystemColors.ControlLightLight;
isAddButtonsChecked.Location = new System.Drawing.Point(251, 406);
isAddButtonsChecked.Name = "isAddButtonsChecked";
isAddButtonsChecked.Size = new System.Drawing.Size(93, 19);
isAddButtonsChecked.TabIndex = 46;
isAddButtonsChecked.Text = "Add button1";
isAddButtonsChecked.UseVisualStyleBackColor = true;
isAddButtonsChecked.CheckedChanged += checkBox4_CheckedChanged;
//
// textBox4
//
textBox4.BackColor = System.Drawing.SystemColors.WindowFrame;
textBox4.Cursor = System.Windows.Forms.Cursors.IBeam;
textBox4.ForeColor = System.Drawing.SystemColors.ControlLightLight;
textBox4.Location = new System.Drawing.Point(11, 453);
textBox4.MaxLength = 32;
textBox4.Name = "textBox4";
textBox4.Size = new System.Drawing.Size(195, 23);
textBox4.TabIndex = 48;
textBox4.Text = "https://yawaflua.ru/";
//
// label16
//
label16.AutoSize = true;
label16.ForeColor = System.Drawing.SystemColors.ControlLightLight;
label16.Location = new System.Drawing.Point(11, 383);
label16.Name = "label16";
label16.Size = new System.Drawing.Size(111, 15);
label16.TabIndex = 50;
label16.Text = "SMALL IMAGE TEXT";
//
// label19
//
label19.AutoSize = true;
label19.ForeColor = System.Drawing.SystemColors.ControlLightLight;
label19.Location = new System.Drawing.Point(8, 435);
label19.Name = "label19";
label19.Size = new System.Drawing.Size(67, 15);
label19.TabIndex = 51;
label19.Text = "Button Text";
//
// label20
//
label20.AutoSize = true;
label20.ForeColor = System.Drawing.SystemColors.ControlLightLight;
label20.Location = new System.Drawing.Point(8, 489);
label20.Name = "label20";
label20.Size = new System.Drawing.Size(67, 15);
label20.TabIndex = 53;
label20.Text = "Button URL";
//
// textBox5
//
textBox5.BackColor = System.Drawing.SystemColors.WindowFrame;
textBox5.Cursor = System.Windows.Forms.Cursors.IBeam;
textBox5.ForeColor = System.Drawing.SystemColors.ControlLightLight;
textBox5.Location = new System.Drawing.Point(11, 510);
textBox5.MaxLength = 32;
textBox5.Name = "textBox5";
textBox5.Size = new System.Drawing.Size(195, 23);
textBox5.TabIndex = 52;
textBox5.Text = "https://yawaflua.ru/";
//
// label21
//
label21.AutoSize = true;
label21.ForeColor = System.Drawing.SystemColors.ControlLightLight;
label21.Location = new System.Drawing.Point(251, 489);
label21.Name = "label21";
label21.Size = new System.Drawing.Size(73, 15);
label21.TabIndex = 57;
label21.Text = "Button2 URL";
//
// textBox6
//
textBox6.BackColor = System.Drawing.SystemColors.WindowFrame;
textBox6.Cursor = System.Windows.Forms.Cursors.IBeam;
textBox6.ForeColor = System.Drawing.SystemColors.ControlLightLight;
textBox6.Location = new System.Drawing.Point(251, 510);
textBox6.MaxLength = 32;
textBox6.Name = "textBox6";
textBox6.Size = new System.Drawing.Size(194, 23);
textBox6.TabIndex = 56;
textBox6.Text = "https://rafaelchasman.ru/";
//
// label22
//
label22.AutoSize = true;
label22.ForeColor = System.Drawing.SystemColors.ControlLightLight;
label22.Location = new System.Drawing.Point(251, 435);
label22.Name = "label22";
label22.Size = new System.Drawing.Size(73, 15);
label22.TabIndex = 55;
label22.Text = "Button2 Text";
//
// textBox7
//
textBox7.BackColor = System.Drawing.SystemColors.WindowFrame;
textBox7.Cursor = System.Windows.Forms.Cursors.IBeam;
textBox7.ForeColor = System.Drawing.SystemColors.ControlLightLight;
textBox7.Location = new System.Drawing.Point(251, 453);
textBox7.MaxLength = 32;
textBox7.Name = "textBox7";
textBox7.Size = new System.Drawing.Size(194, 23);
textBox7.TabIndex = 54;
textBox7.Text = "https://rafaelchasman.ru/";
//
// checkBox3
//
checkBox3.AutoSize = true;
checkBox3.Checked = true;
checkBox3.CheckState = System.Windows.Forms.CheckState.Checked;
checkBox3.ForeColor = System.Drawing.SystemColors.ControlLightLight;
checkBox3.Location = new System.Drawing.Point(353, 406);
checkBox3.Name = "checkBox3";
checkBox3.Size = new System.Drawing.Size(93, 19);
checkBox3.TabIndex = 58;
checkBox3.Text = "Add button2";
checkBox3.UseVisualStyleBackColor = true;
checkBox3.CheckedChanged += checkBox3_CheckedChanged;
//
// button1
//
button1.Anchor = System.Windows.Forms.AnchorStyles.Bottom;
button1.BackColor = System.Drawing.SystemColors.WindowFrame;
button1.ForeColor = System.Drawing.SystemColors.ControlLightLight;
button1.Location = new System.Drawing.Point(11, 547);
button1.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
button1.Name = "button1";
button1.Size = new System.Drawing.Size(118, 44);
button1.TabIndex = 59;
button1.Text = "Save settings";
button1.UseVisualStyleBackColor = false;
button1.Click += SaveSettings;
//
// DiscordCustomStatusForm
//
AcceptButton = runButton;
AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
BackColor = System.Drawing.SystemColors.ControlDarkDark;
ClientSize = new System.Drawing.Size(463, 603);
ControlBox = false;
Controls.Add(button1);
Controls.Add(checkBox3);
Controls.Add(label21);
Controls.Add(textBox6);
Controls.Add(label22);
Controls.Add(textBox7);
Controls.Add(label20);
Controls.Add(textBox5);
Controls.Add(label19);
Controls.Add(label16);
Controls.Add(textBox4);
Controls.Add(isAddButtonsChecked);
Controls.Add(ClientIDFild);
Controls.Add(label18);
Controls.Add(label17);
Controls.Add(label15);
Controls.Add(textBox3);
Controls.Add(textBox2);
Controls.Add(label14);
Controls.Add(checkBox2);
Controls.Add(textBox1);
Controls.Add(label13);
Controls.Add(label12);
Controls.Add(label11);
Controls.Add(label10);
Controls.Add(label4);
Controls.Add(pictureBox2);
Controls.Add(pictureBox1);
Controls.Add(label9);
Controls.Add(stateTextFild);
Controls.Add(checkBox1);
Controls.Add(label5);
Controls.Add(smallImgKeyFild);
Controls.Add(label6);
Controls.Add(largeImgKeyFild);
Controls.Add(label7);
Controls.Add(smallImgTextFild);
Controls.Add(label8);
Controls.Add(largeImgTextFild);
Controls.Add(label3);
Controls.Add(label2);
Controls.Add(detailsFild);
Controls.Add(label1);
Controls.Add(runButton);
Icon = (System.Drawing.Icon)resources.GetObject("$this.Icon");
Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
MaximumSize = new System.Drawing.Size(479, 642);
MinimumSize = new System.Drawing.Size(479, 642);
Name = "DiscordCustomStatusForm";
Text = "Discord Custom Status";
((System.ComponentModel.ISupportInitialize)pictureBox2).EndInit();
((System.ComponentModel.ISupportInitialize)pictureBox1).EndInit();
ResumeLayout(false);
PerformLayout();
}
#endregion
private System.Windows.Forms.Button runButton;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.TextBox detailsFild;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.TextBox smallImgKeyFild;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.TextBox largeImgKeyFild;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.TextBox smallImgTextFild;
private System.Windows.Forms.Label label8;
private System.Windows.Forms.TextBox largeImgTextFild;
private System.Windows.Forms.CheckBox checkBox1;
private System.Windows.Forms.Label label9;
private System.Windows.Forms.TextBox stateTextFild;
private System.Windows.Forms.PictureBox pictureBox1;
private System.Windows.Forms.PictureBox pictureBox2;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Label label10;
private System.Windows.Forms.Label label11;
private System.Windows.Forms.Label label12;
private System.Windows.Forms.Label label13;
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.CheckBox checkBox2;
private System.Windows.Forms.Label label14;
private System.Windows.Forms.TextBox textBox2;
private System.Windows.Forms.Timer timer;
private System.Windows.Forms.TextBox textBox3;
private System.Windows.Forms.Label label15;
private System.Windows.Forms.Label label17;
private System.Windows.Forms.Label label18;
private System.Windows.Forms.TextBox ClientIDFild;
private System.Windows.Forms.CheckBox isAddButtonsChecked;
private System.Windows.Forms.TextBox textBox4;
private System.Windows.Forms.Label label16;
private System.Windows.Forms.Label label19;
private System.Windows.Forms.Label label20;
private System.Windows.Forms.TextBox textBox5;
private System.Windows.Forms.Label label21;
private System.Windows.Forms.TextBox textBox6;
private System.Windows.Forms.Label label22;
private System.Windows.Forms.TextBox textBox7;
private System.Windows.Forms.CheckBox checkBox3;
private System.Windows.Forms.Button button1;
}
}

View File

@@ -1,6 +1,7 @@
using DiscordRPC;
using Microsoft.Win32;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Reflection.Emit;
using System.Windows.Forms;
@@ -8,20 +9,42 @@ using static System.Windows.Forms.VisualStyles.VisualStyleElement;
namespace Discord_Custom_Status
{
public partial class Form1 : Form
public partial class DiscordCustomStatusForm : Form
{
private DiscordRpcClient discordRpcClient;
private NotifyIcon trayIcon;
public int secondss;
public string customClientID, customLargeImgKey, customSmallImgKey, customLargeImgText, customSmallImgText, customDetails, customState;
public Form1()
public DiscordCustomStatusForm()
{
InitializeComponent();
LoadSettings(); // Load saved settings on form initialization
InitializeDiscordRpc();
AddToStartup();
InitializeTrayIcon();
}
private void InitializeTrayIcon()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(DiscordCustomStatusForm));
trayIcon = new NotifyIcon();
trayIcon.Text = "DCS v6";
trayIcon.Icon = (System.Drawing.Icon)resources.GetObject("$this.Icon"); ; // Путь к иконке вашего приложения
trayIcon.Visible = true;
// Добавление обработчика щелчка на иконке в лотке
trayIcon.MouseClick += TrayIcon_MouseClick;
}
private void TrayIcon_MouseClick(object sender, MouseEventArgs e)
{
// Показать/скрыть форму приложения по щелчку на иконке
if (e.Button == MouseButtons.Left)
{
// Пример:
Visible = !Visible;
}
}
private void AddToStartup()
{
try
@@ -29,7 +52,7 @@ namespace Discord_Custom_Status
RegistryKey registryKey = Registry.CurrentUser.OpenSubKey("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run", true);
// Specify the name you want to give to your program in the registry
string appName = "Discord_Custom_Status";
string appName = "Discord Custom Status";
// Specify the path to your executable
string appPath = Application.ExecutablePath;
@@ -43,6 +66,36 @@ namespace Discord_Custom_Status
Console.WriteLine($"Error adding to startup: {ex.Message}");
}
}
private void SaveSettings(object l, EventArgs e)
{
// Save settings
Properties.Settings.Default.ClientID = ClientIDFild.Text;
Properties.Settings.Default.LargeImageKey = largeImgKeyFild.Text;
Properties.Settings.Default.LargeImageText = largeImgTextFild.Text;
Properties.Settings.Default.SmallImageKey = smallImgKeyFild.Text;
Properties.Settings.Default.SmallImageText = smallImgTextFild.Text;
Properties.Settings.Default.Details = detailsFild.Text;
Properties.Settings.Default.State = stateTextFild.Text;
Properties.Settings.Default.PartyIn = textBox1.Text;
Properties.Settings.Default.PartyMax = textBox2.Text;
Properties.Settings.Default.Timer = checkBox1.Checked;
Properties.Settings.Default.Party = checkBox2.Checked;
Properties.Settings.Default.CustomClientID = customClientID;
Properties.Settings.Default.CustomLargeImgKey = customLargeImgKey;
Properties.Settings.Default.CustomLargeImgText = customLargeImgText;
Properties.Settings.Default.CustomSmallImgText = customSmallImgKey;
Properties.Settings.Default.CustomSmallImgText = customSmallImgText;
Properties.Settings.Default.CustomDetails = customDetails;
Properties.Settings.Default.CustomState = customState;
Properties.Settings.Default.Button1Label = textBox4.Text;
Properties.Settings.Default.Button1Url = textBox5.Text;
Properties.Settings.Default.Button2Url = textBox6.Text;
Properties.Settings.Default.Button2Label = textBox7.Text;
MessageBox.Show("Setting saved to next start!");
Properties.Settings.Default.Save();
}
private void LoadSettings()
{
// Load saved settings
@@ -64,38 +117,12 @@ namespace Discord_Custom_Status
customSmallImgKey = Properties.Settings.Default.SmallImageKey;
customSmallImgText = Properties.Settings.Default.SmallImageText;
customDetails = Properties.Settings.Default.CustomDetails;
customState= Properties.Settings.Default.CustomState;
}
private void SaveSettings()
{
// Save settings
Properties.Settings.Default.ClientID = ClientIDFild.Text;
Properties.Settings.Default.LargeImageKey = largeImgKeyFild.Text;
Properties.Settings.Default.LargeImageText = largeImgTextFild.Text;
Properties.Settings.Default.SmallImageKey = smallImgKeyFild.Text;
Properties.Settings.Default.SmallImageText = smallImgTextFild.Text;
Properties.Settings.Default.Details = detailsFild.Text;
Properties.Settings.Default.State = stateTextFild.Text;
Properties.Settings.Default.PartyIn = textBox1.Text;
Properties.Settings.Default.PartyMax = textBox2.Text;
Properties.Settings.Default.Timer= checkBox1.Checked;
Properties.Settings.Default.Party = checkBox2.Checked;
Properties.Settings.Default.CustomClientID = customClientID;
Properties.Settings.Default.CustomLargeImgKey = customLargeImgKey;
Properties.Settings.Default.CustomLargeImgText= customLargeImgText;
Properties.Settings.Default.CustomSmallImgText = customSmallImgKey;
Properties.Settings.Default.CustomSmallImgText= customSmallImgText;
Properties.Settings.Default.CustomDetails = customDetails;
Properties.Settings.Default.CustomState= customState;
Properties.Settings.Default.Save();
customState = Properties.Settings.Default.CustomState;
}
private void InitializeDiscordRpc()
{
discordRpcClient = new DiscordRpcClient(ClientIDFild.Text);
discordRpcClient ??= new DiscordRpcClient(ClientIDFild.Text);
discordRpcClient.OnReady += (sender, e) =>
{
@@ -107,7 +134,8 @@ namespace Discord_Custom_Status
Console.WriteLine($"Presence updated: {e.Presence}");
};
discordRpcClient.Initialize();
if (!discordRpcClient.IsInitialized)
discordRpcClient.Initialize();
// Set initial presence
UpdatePresence();
@@ -117,48 +145,73 @@ namespace Discord_Custom_Status
{
DateTime startTime = DateTime.UtcNow;
discordRpcClient.SetPresence(new RichPresence
var buttons = new List<DiscordRPC.Button>();
if (checkBox3.Checked)
buttons.Add(new()
{
Label = textBox7.Text ?? "rafaelchasman.ru",
Url = textBox6.Text ?? "https://rafaelchasman.ru"
});
if (isAddButtonsChecked.Checked)
buttons.Add(new()
{
Label = textBox4.Text ?? "yawaflua.ru",
Url = textBox5.Text ?? "https://yawaflua.ru"
});
if (!discordRpcClient.IsInitialized)
discordRpcClient.SetPresence(new RichPresence
{
Details = detailsFild.Text,
State = stateTextFild.Text,
Assets = new Assets
{
LargeImageKey = largeImgKeyFild.Text,
LargeImageText = largeImgTextFild.Text,
SmallImageKey = smallImgKeyFild.Text,
SmallImageText = smallImgTextFild.Text
},
Buttons = buttons.ToArray(),
Party = checkBox2.Checked ? null : new Party
{
ID = new Random().Next(9999).ToString(),
Size = int.Parse(textBox1.Text),
Max = int.Parse(textBox2.Text)
},
Timestamps = checkBox1.Checked ? null : new Timestamps { Start = DateTime.Now.AddHours(-(int.Parse(textBox3.Text) + 2)) }
});
else
{
Details = detailsFild.Text,
State = stateTextFild.Text,
Assets = new Assets
discordRpcClient.UpdateButtons(buttons.ToArray());
discordRpcClient.UpdateDetails(detailsFild.Text);
discordRpcClient.UpdateState(stateTextFild.Text);
discordRpcClient.UpdateLargeAsset(largeImgKeyFild.Text, largeImgTextFild.Text);
discordRpcClient.UpdateSmallAsset(smallImgKeyFild.Text, smallImgTextFild.Text);
discordRpcClient.UpdateParty(checkBox2.Checked ? null : new Party
{
LargeImageKey = largeImgKeyFild.Text,
LargeImageText = largeImgTextFild.Text,
SmallImageKey = smallImgKeyFild.Text,
SmallImageText = smallImgTextFild.Text
},
Party = checkBox2.Checked ? null : new Party
{
ID = "123",
ID = new Random().Next(9999).ToString(),
Size = int.Parse(textBox1.Text),
Max = int.Parse(textBox2.Text)
},
Timestamps = checkBox1.Checked ? null : new Timestamps { Start = DateTime.Now.AddHours(-(int.Parse(textBox3.Text)+2)) }
});
});
if (checkBox1.Checked)
discordRpcClient.UpdateStartTime(DateTime.Now.AddHours(-(int.Parse(textBox3.Text) + 2)));
}
}
private void runButton_Click(object sender, EventArgs e)
{
// Dispose of the existing DiscordRpcClient
discordRpcClient.Dispose();
// Create a new DiscordRpcClient with the updated client ID
discordRpcClient = new DiscordRpcClient(ClientIDFild.Text);
discordRpcClient ??= new DiscordRpcClient(ClientIDFild.Text);
// Initialize the new client
InitializeDiscordRpc();
// Update the presence details
UpdatePresence();
// Save the settings after the update
SaveSettings();
if (checkBox1.Checked)
{
timer.Enabled = false;
secondss = int.Parse(textBox3.Text)*3600;
secondss = int.Parse(textBox3.Text) * 3600;
label12.Text = "Passed 00:00";
}
else
@@ -172,9 +225,9 @@ namespace Discord_Custom_Status
private void checkBox1_CheckedChanged(object sender, EventArgs e)
{
label12.Visible = !checkBox1.Checked;
label16.Enabled= !checkBox1.Checked;
label16.Enabled = !checkBox1.Checked;
textBox3.Enabled = !checkBox1.Checked;
label15.Enabled= !checkBox1.Checked;
label15.Enabled = !checkBox1.Checked;
}
private void detailsFild_TextChanged(object sender, EventArgs e)
@@ -196,34 +249,23 @@ namespace Discord_Custom_Status
private void textBox1_TextChanged(object sender, EventArgs e)
{
label11.Text = stateTextFild.Text+" ("+textBox1.Text+" of "+textBox2.Text+")";
label11.Text = stateTextFild.Text + " (" + textBox1.Text + " of " + textBox2.Text + ")";
if (textBox1.Text == "" || textBox2.Text == "")
{
textBox1.Text = "1";
textBox2.Text = "2";
}
else if (int.Parse(textBox1.Text)>int.Parse(textBox2.Text))
{
MessageBox.Show("The size of the group must be larger than the size of the participants!");
textBox1.ForeColor = Color.Red;
textBox1.Text = 0.ToString();
}
}
private void textBox2_TextChanged(object sender, EventArgs e)
{
label11.Text = stateTextFild.Text + " (" + textBox1.Text + " of " + textBox2.Text + ")";
if (textBox1.Text==""||textBox2.Text=="")
if (textBox1.Text == "" || textBox2.Text == "")
{
textBox1.Text = "1";
textBox2.Text = "2";
}
else if (int.Parse(textBox1.Text) > int.Parse(textBox2.Text))
{
MessageBox.Show("The size of the group must be larger than the size of the participants!");
textBox2.ForeColor = Color.Red;
textBox2.Text = 9999.ToString();
}
}
private void checkBox2_CheckedChanged(object sender, EventArgs e)
@@ -240,7 +282,7 @@ namespace Discord_Custom_Status
label11.Text = stateTextFild.Text;
textBox1.Enabled = false;
textBox2.Enabled = false;
label14.Enabled= false;
label14.Enabled = false;
}
}
@@ -255,7 +297,7 @@ namespace Discord_Custom_Status
int minutes = remainingSeconds / 60;
int seconds = remainingSeconds % 60;
if (secondss>3600)
if (secondss > 3600)
{
label12.Text = String.Format("Passed {0:D2}:{1:D2}:{2:D2}", hours, minutes, seconds);
}
@@ -268,6 +310,7 @@ namespace Discord_Custom_Status
private void label18_Click(object sender, EventArgs e)
{
this.Hide();
}
private void label18_MouseEnter(object sender, EventArgs e)
@@ -280,85 +323,17 @@ namespace Discord_Custom_Status
label18.BackColor = Color.White;
}
private void button1_Click(object sender, EventArgs e)
private void checkBox3_CheckedChanged(object sender, EventArgs e)
{
customClientID = ClientIDFild.Text;
customLargeImgKey = largeImgKeyFild.Text;
customLargeImgText = largeImgTextFild.Text;
customSmallImgKey = smallImgKeyFild.Text;
customSmallImgText = smallImgTextFild.Text;
customDetails = detailsFild.Text;
customState = stateTextFild.Text;
SaveSettings();
textBox7.Enabled = checkBox3.Checked;
textBox6.Enabled = checkBox3.Checked;
}
private void checkBox4_CheckedChanged(object sender, EventArgs e)
{
textBox4.Enabled = isAddButtonsChecked.Checked;
textBox5.Enabled = isAddButtonsChecked.Checked;
}
private void comboBox2_SelectedIndexChanged(object sender, EventArgs e)
{
if (comboBox2.SelectedIndex==0)
{
label4.Text = "Premium Plus";
ClientIDFild.Text = "1166755301312180294";
largeImgKeyFild.Text = "_premium_";
largeImgTextFild.Text = "Premium Plus IL";
smallImgKeyFild.Text = "verified";
smallImgTextFild.Text = "Verified";
detailsFild.Text = "Buy cheap premium services";
stateTextFild.Text = "premiumplus-il.com";
pictureBox1.Load("https://cdn.discordapp.com/app-assets/1166755301312180294/1166769710742917190.png");
pictureBox2.Load("https://cdn.discordapp.com/app-assets/1166755301312180294/1166772103626895441.png");
}
else if (comboBox2.SelectedIndex == 1)
{
label4.Text = "Lionel Messi";
ClientIDFild.Text = "1168172477839589436";
largeImgKeyFild.Text = "messi";
largeImgTextFild.Text = "Lionel Messi";
smallImgKeyFild.Text = "goldball";
smallImgTextFild.Text = "Gold Ball";
detailsFild.Text = "Messi🐐";
stateTextFild.Text = "The best soccer player in the world!";
pictureBox1.Load("https://cdn.discordapp.com/app-assets/1168172477839589436/1168322339348414604.png");
pictureBox2.Load("https://cdn.discordapp.com/app-assets/1168172477839589436/1168173347436249178.png");
}
else if (comboBox2.SelectedIndex == 2)
{
label4.Text = "Brawl Stars";
ClientIDFild.Text = "1168312406804537414";
largeImgKeyFild.Text = "brawlstars";
largeImgTextFild.Text = "Brawl Stars";
smallImgKeyFild.Text = "ball";
smallImgTextFild.Text = "BrawlBall";
detailsFild.Text = "In Lobby with Rafaello";
stateTextFild.Text = "BrawlBall";
pictureBox1.Load("https://cdn.discordapp.com/app-assets/1168312406804537414/1168312752851402852.png");
pictureBox2.Load("https://cdn.discordapp.com/app-assets/1168312406804537414/1168332012755615824.png");
}
else if (comboBox2.SelectedIndex == 3)
{
label4.Text = "Binance";
ClientIDFild.Text = "1168313472384249986";
largeImgKeyFild.Text = "binance";
largeImgTextFild.Text = "Binance";
smallImgKeyFild.Text = "bitcoin";
smallImgTextFild.Text = "Bitcoin";
detailsFild.Text = "Trading";
stateTextFild.Text = "Bitcoin";
pictureBox1.Load("https://cdn.discordapp.com/app-assets/1168313472384249986/1168313517422682144.png");
pictureBox2.Load("https://cdn.discordapp.com/app-assets/1168313472384249986/1168324184213037136.png");
}
else if (comboBox2.SelectedIndex == 4)
{
label4.Text = "Custom";
ClientIDFild.Text = customClientID;
largeImgKeyFild.Text = customLargeImgKey;
largeImgTextFild.Text = customLargeImgText;
smallImgKeyFild.Text = customSmallImgKey;
smallImgTextFild.Text = customSmallImgText;
detailsFild.Text = customDetails;
stateTextFild.Text = customState;
pictureBox1.Load("https://htmlcolorcodes.com/assets/images/colors/steel-gray-color-solid-background-1920x1080.png");
pictureBox2.Load("https://images.unsplash.com/flagged/photo-1593005510329-8a4035a7238f?q=80&w=1000&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxleHBsb3JlLWZlZWR8NXx8fGVufDB8fHx8fA%3D%3D");
}
}
}
}

View File

@@ -1,17 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
@@ -26,36 +26,36 @@
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
@@ -121,7 +121,7 @@
<value>17, 17</value>
</metadata>
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>114</value>
<value>46</value>
</metadata>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">

View File

@@ -1,541 +0,0 @@
namespace Discord_Custom_Status
{
partial class Form1
{
/// <summary>
/// Обязательная переменная конструктора.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Освободить все используемые ресурсы.
/// </summary>
/// <param name="disposing">истинно, если управляемый ресурс должен быть удален; иначе ложно.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Код, автоматически созданный конструктором форм Windows
/// <summary>
/// Требуемый метод для поддержки конструктора — не изменяйте
/// содержимое этого метода с помощью редактора кода.
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
this.runButton = new System.Windows.Forms.Button();
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.detailsFild = new System.Windows.Forms.TextBox();
this.label3 = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
this.smallImgKeyFild = new System.Windows.Forms.TextBox();
this.label6 = new System.Windows.Forms.Label();
this.largeImgKeyFild = new System.Windows.Forms.TextBox();
this.label7 = new System.Windows.Forms.Label();
this.smallImgTextFild = new System.Windows.Forms.TextBox();
this.label8 = new System.Windows.Forms.Label();
this.largeImgTextFild = new System.Windows.Forms.TextBox();
this.checkBox1 = new System.Windows.Forms.CheckBox();
this.label9 = new System.Windows.Forms.Label();
this.stateTextFild = new System.Windows.Forms.TextBox();
this.label4 = new System.Windows.Forms.Label();
this.label10 = new System.Windows.Forms.Label();
this.label11 = new System.Windows.Forms.Label();
this.label12 = new System.Windows.Forms.Label();
this.label13 = new System.Windows.Forms.Label();
this.textBox1 = new System.Windows.Forms.TextBox();
this.checkBox2 = new System.Windows.Forms.CheckBox();
this.label14 = new System.Windows.Forms.Label();
this.textBox2 = new System.Windows.Forms.TextBox();
this.timer = new System.Windows.Forms.Timer(this.components);
this.textBox3 = new System.Windows.Forms.TextBox();
this.label15 = new System.Windows.Forms.Label();
this.label16 = new System.Windows.Forms.Label();
this.label17 = new System.Windows.Forms.Label();
this.label18 = new System.Windows.Forms.Label();
this.button1 = new System.Windows.Forms.Button();
this.comboBox2 = new System.Windows.Forms.ComboBox();
this.ClientIDFild = new System.Windows.Forms.TextBox();
this.pictureBox2 = new System.Windows.Forms.PictureBox();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.SuspendLayout();
//
// runButton
//
this.runButton.Anchor = System.Windows.Forms.AnchorStyles.Bottom;
this.runButton.Location = new System.Drawing.Point(318, 381);
this.runButton.Name = "runButton";
this.runButton.Size = new System.Drawing.Size(101, 38);
this.runButton.TabIndex = 0;
this.runButton.Text = "UPDATE";
this.runButton.UseVisualStyleBackColor = true;
this.runButton.Click += new System.EventHandler(this.runButton_Click);
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(9, 150);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(47, 13);
this.label1.TabIndex = 2;
this.label1.Text = "Client ID";
//
// label2
//
this.label2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Right)));
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(251, 150);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(52, 13);
this.label2.TabIndex = 4;
this.label2.Text = "DETAILS";
//
// detailsFild
//
this.detailsFild.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Right)));
this.detailsFild.Location = new System.Drawing.Point(251, 169);
this.detailsFild.MaxLength = 100;
this.detailsFild.Name = "detailsFild";
this.detailsFild.Size = new System.Drawing.Size(168, 20);
this.detailsFild.TabIndex = 3;
this.detailsFild.Text = "Premium Plus";
this.detailsFild.TextChanged += new System.EventHandler(this.detailsFild_TextChanged);
//
// label3
//
this.label3.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Right)));
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(251, 328);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(109, 13);
this.label3.TabIndex = 6;
this.label3.Text = "START TIMESTAMP";
//
// label5
//
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(6, 328);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(103, 13);
this.label5.TabIndex = 16;
this.label5.Text = "SMALL IMAGE KEY";
//
// smallImgKeyFild
//
this.smallImgKeyFild.Location = new System.Drawing.Point(9, 344);
this.smallImgKeyFild.MaxLength = 100;
this.smallImgKeyFild.Name = "smallImgKeyFild";
this.smallImgKeyFild.Size = new System.Drawing.Size(168, 20);
this.smallImgKeyFild.TabIndex = 15;
this.smallImgKeyFild.Text = "verified";
//
// label6
//
this.label6.AutoSize = true;
this.label6.Location = new System.Drawing.Point(9, 211);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(104, 13);
this.label6.TabIndex = 14;
this.label6.Text = "LARGE IMAGE KEY";
//
// largeImgKeyFild
//
this.largeImgKeyFild.Location = new System.Drawing.Point(9, 229);
this.largeImgKeyFild.MaxLength = 100;
this.largeImgKeyFild.Name = "largeImgKeyFild";
this.largeImgKeyFild.Size = new System.Drawing.Size(168, 20);
this.largeImgKeyFild.TabIndex = 13;
this.largeImgKeyFild.Text = "_premium_";
//
// label7
//
this.label7.AutoSize = true;
this.label7.Location = new System.Drawing.Point(9, 383);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(110, 13);
this.label7.TabIndex = 12;
this.label7.Text = "SMALL IMAGE TEXT";
//
// smallImgTextFild
//
this.smallImgTextFild.Location = new System.Drawing.Point(12, 400);
this.smallImgTextFild.MaxLength = 100;
this.smallImgTextFild.Name = "smallImgTextFild";
this.smallImgTextFild.Size = new System.Drawing.Size(168, 20);
this.smallImgTextFild.TabIndex = 11;
this.smallImgTextFild.Text = "Verified";
//
// label8
//
this.label8.AutoSize = true;
this.label8.Location = new System.Drawing.Point(9, 271);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(111, 13);
this.label8.TabIndex = 10;
this.label8.Text = "LARGE IMAGE TEXT";
//
// largeImgTextFild
//
this.largeImgTextFild.Location = new System.Drawing.Point(12, 289);
this.largeImgTextFild.MaxLength = 100;
this.largeImgTextFild.Name = "largeImgTextFild";
this.largeImgTextFild.Size = new System.Drawing.Size(168, 20);
this.largeImgTextFild.TabIndex = 9;
this.largeImgTextFild.Text = "Premium Plus";
//
// checkBox1
//
this.checkBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Right)));
this.checkBox1.AutoSize = true;
this.checkBox1.Location = new System.Drawing.Point(366, 324);
this.checkBox1.Name = "checkBox1";
this.checkBox1.Size = new System.Drawing.Size(61, 17);
this.checkBox1.TabIndex = 17;
this.checkBox1.Text = "Disable";
this.checkBox1.UseVisualStyleBackColor = true;
this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged);
//
// label9
//
this.label9.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Right)));
this.label9.AutoSize = true;
this.label9.Location = new System.Drawing.Point(251, 211);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(42, 13);
this.label9.TabIndex = 24;
this.label9.Text = "STATE";
//
// stateTextFild
//
this.stateTextFild.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Right)));
this.stateTextFild.Location = new System.Drawing.Point(251, 229);
this.stateTextFild.MaxLength = 100;
this.stateTextFild.Name = "stateTextFild";
this.stateTextFild.Size = new System.Drawing.Size(168, 20);
this.stateTextFild.TabIndex = 23;
this.stateTextFild.Text = "https://premiumplus-il.com/";
this.stateTextFild.TextChanged += new System.EventHandler(this.stateTextFild_TextChanged);
//
// label4
//
this.label4.AutoSize = true;
this.label4.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.label4.Location = new System.Drawing.Point(93, 8);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(128, 20);
this.label4.TabIndex = 27;
this.label4.Text = "Custom Status";
//
// label10
//
this.label10.AutoSize = true;
this.label10.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.label10.Location = new System.Drawing.Point(93, 28);
this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(173, 20);
this.label10.TabIndex = 28;
this.label10.Text = "Discord Custom Status";
//
// label11
//
this.label11.AutoSize = true;
this.label11.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.label11.Location = new System.Drawing.Point(93, 48);
this.label11.Name = "label11";
this.label11.Size = new System.Drawing.Size(105, 20);
this.label11.TabIndex = 29;
this.label11.Text = "By mr.rafaello";
//
// label12
//
this.label12.AutoSize = true;
this.label12.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.label12.Location = new System.Drawing.Point(93, 69);
this.label12.Name = "label12";
this.label12.Size = new System.Drawing.Size(110, 20);
this.label12.TabIndex = 30;
this.label12.Text = "Passed: 00:00";
//
// label13
//
this.label13.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Right)));
this.label13.AutoSize = true;
this.label13.Location = new System.Drawing.Point(251, 271);
this.label13.Name = "label13";
this.label13.Size = new System.Drawing.Size(43, 13);
this.label13.TabIndex = 31;
this.label13.Text = "PARTY";
//
// textBox1
//
this.textBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Right)));
this.textBox1.Location = new System.Drawing.Point(254, 289);
this.textBox1.MaxLength = 4;
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(40, 20);
this.textBox1.TabIndex = 32;
this.textBox1.Text = "1";
this.textBox1.TextChanged += new System.EventHandler(this.textBox1_TextChanged);
//
// checkBox2
//
this.checkBox2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Right)));
this.checkBox2.AutoSize = true;
this.checkBox2.Location = new System.Drawing.Point(300, 270);
this.checkBox2.Name = "checkBox2";
this.checkBox2.Size = new System.Drawing.Size(61, 17);
this.checkBox2.TabIndex = 33;
this.checkBox2.Text = "Disable";
this.checkBox2.UseVisualStyleBackColor = true;
this.checkBox2.CheckedChanged += new System.EventHandler(this.checkBox2_CheckedChanged);
//
// label14
//
this.label14.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Right)));
this.label14.AutoSize = true;
this.label14.Location = new System.Drawing.Point(300, 292);
this.label14.Name = "label14";
this.label14.Size = new System.Drawing.Size(21, 13);
this.label14.TabIndex = 34;
this.label14.Text = "OF";
//
// textBox2
//
this.textBox2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Right)));
this.textBox2.Location = new System.Drawing.Point(327, 289);
this.textBox2.MaxLength = 4;
this.textBox2.Name = "textBox2";
this.textBox2.Size = new System.Drawing.Size(40, 20);
this.textBox2.TabIndex = 35;
this.textBox2.Text = "10";
this.textBox2.TextChanged += new System.EventHandler(this.textBox2_TextChanged);
//
// timer
//
this.timer.Enabled = true;
this.timer.Interval = 1000;
this.timer.Tick += new System.EventHandler(this.timer_Tick);
//
// textBox3
//
this.textBox3.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Right)));
this.textBox3.Location = new System.Drawing.Point(318, 344);
this.textBox3.MaxLength = 2;
this.textBox3.Name = "textBox3";
this.textBox3.Size = new System.Drawing.Size(29, 20);
this.textBox3.TabIndex = 36;
this.textBox3.Text = "0";
//
// label15
//
this.label15.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Right)));
this.label15.AutoSize = true;
this.label15.Location = new System.Drawing.Point(353, 347);
this.label15.Name = "label15";
this.label15.Size = new System.Drawing.Size(59, 13);
this.label15.TabIndex = 37;
this.label15.Text = "hour/s ago";
//
// label16
//
this.label16.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Right)));
this.label16.AutoSize = true;
this.label16.Location = new System.Drawing.Point(251, 347);
this.label16.Name = "label16";
this.label16.Size = new System.Drawing.Size(61, 13);
this.label16.TabIndex = 38;
this.label16.Text = "You started";
//
// label17
//
this.label17.AutoSize = true;
this.label17.Location = new System.Drawing.Point(227, 13);
this.label17.Name = "label17";
this.label17.Size = new System.Drawing.Size(37, 13);
this.label17.TabIndex = 39;
this.label17.Text = "v5.0.5";
//
// label18
//
this.label18.AutoSize = true;
this.label18.Location = new System.Drawing.Point(416, 8);
this.label18.Name = "label18";
this.label18.Size = new System.Drawing.Size(14, 13);
this.label18.TabIndex = 40;
this.label18.Text = "X";
this.label18.Click += new System.EventHandler(this.label18_Click);
this.label18.MouseEnter += new System.EventHandler(this.label18_MouseEnter);
this.label18.MouseLeave += new System.EventHandler(this.label18_MouseLeave);
//
// button1
//
this.button1.Location = new System.Drawing.Point(251, 381);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(61, 38);
this.button1.TabIndex = 42;
this.button1.Text = "Set Custom";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// comboBox2
//
this.comboBox2.FormattingEnabled = true;
this.comboBox2.Items.AddRange(new object[] {
"Premium Plus",
"Lionel Messi",
"Brawl Stars",
"Binance",
"custom app"});
this.comboBox2.Location = new System.Drawing.Point(7, 95);
this.comboBox2.Name = "comboBox2";
this.comboBox2.Size = new System.Drawing.Size(143, 21);
this.comboBox2.TabIndex = 44;
this.comboBox2.Text = "Select template";
this.comboBox2.SelectedIndexChanged += new System.EventHandler(this.comboBox2_SelectedIndexChanged);
//
// ClientIDFild
//
this.ClientIDFild.Location = new System.Drawing.Point(12, 169);
this.ClientIDFild.MaxLength = 100;
this.ClientIDFild.Name = "ClientIDFild";
this.ClientIDFild.Size = new System.Drawing.Size(138, 20);
this.ClientIDFild.TabIndex = 45;
this.ClientIDFild.Text = "1168313472384249986";
//
// pictureBox2
//
this.pictureBox2.Image = global::Discord_Custom_Status.Properties.Resources.verifylogo;
this.pictureBox2.Location = new System.Drawing.Point(67, 69);
this.pictureBox2.Name = "pictureBox2";
this.pictureBox2.Size = new System.Drawing.Size(20, 20);
this.pictureBox2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.pictureBox2.TabIndex = 26;
this.pictureBox2.TabStop = false;
//
// pictureBox1
//
this.pictureBox1.Image = global::Discord_Custom_Status.Properties.Resources.logorafael;
this.pictureBox1.Location = new System.Drawing.Point(7, 8);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(80, 80);
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.pictureBox1.TabIndex = 25;
this.pictureBox1.TabStop = false;
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(434, 441);
this.Controls.Add(this.ClientIDFild);
this.Controls.Add(this.comboBox2);
this.Controls.Add(this.button1);
this.Controls.Add(this.label18);
this.Controls.Add(this.label17);
this.Controls.Add(this.label16);
this.Controls.Add(this.label15);
this.Controls.Add(this.textBox3);
this.Controls.Add(this.textBox2);
this.Controls.Add(this.label14);
this.Controls.Add(this.checkBox2);
this.Controls.Add(this.textBox1);
this.Controls.Add(this.label13);
this.Controls.Add(this.label12);
this.Controls.Add(this.label11);
this.Controls.Add(this.label10);
this.Controls.Add(this.label4);
this.Controls.Add(this.pictureBox2);
this.Controls.Add(this.pictureBox1);
this.Controls.Add(this.label9);
this.Controls.Add(this.stateTextFild);
this.Controls.Add(this.checkBox1);
this.Controls.Add(this.label5);
this.Controls.Add(this.smallImgKeyFild);
this.Controls.Add(this.label6);
this.Controls.Add(this.largeImgKeyFild);
this.Controls.Add(this.label7);
this.Controls.Add(this.smallImgTextFild);
this.Controls.Add(this.label8);
this.Controls.Add(this.largeImgTextFild);
this.Controls.Add(this.label3);
this.Controls.Add(this.label2);
this.Controls.Add(this.detailsFild);
this.Controls.Add(this.label1);
this.Controls.Add(this.runButton);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximumSize = new System.Drawing.Size(450, 480);
this.MinimumSize = new System.Drawing.Size(450, 480);
this.Name = "Form1";
this.Text = "Discord Custom Status";
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Button runButton;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.TextBox detailsFild;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.TextBox smallImgKeyFild;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.TextBox largeImgKeyFild;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.TextBox smallImgTextFild;
private System.Windows.Forms.Label label8;
private System.Windows.Forms.TextBox largeImgTextFild;
private System.Windows.Forms.CheckBox checkBox1;
private System.Windows.Forms.Label label9;
private System.Windows.Forms.TextBox stateTextFild;
private System.Windows.Forms.PictureBox pictureBox1;
private System.Windows.Forms.PictureBox pictureBox2;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Label label10;
private System.Windows.Forms.Label label11;
private System.Windows.Forms.Label label12;
private System.Windows.Forms.Label label13;
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.CheckBox checkBox2;
private System.Windows.Forms.Label label14;
private System.Windows.Forms.TextBox textBox2;
private System.Windows.Forms.Timer timer;
private System.Windows.Forms.TextBox textBox3;
private System.Windows.Forms.Label label15;
private System.Windows.Forms.Label label16;
private System.Windows.Forms.Label label17;
private System.Windows.Forms.Label label18;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.ComboBox comboBox2;
private System.Windows.Forms.TextBox ClientIDFild;
}
}

View File

@@ -1,5 +1,8 @@
using System;
using Discord_Custom_Status.Properties;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
@@ -14,9 +17,11 @@ namespace Discord_Custom_Status
[STAThread]
static void Main()
{
Application.SetHighDpiMode(HighDpiMode.SystemAware);
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
Application.Run(new DiscordCustomStatusForm());
}
}
}

View File

@@ -1,36 +0,0 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// Общие сведения об этой сборке предоставляются следующим набором
// набора атрибутов. Измените значения этих атрибутов для изменения сведений,
// связанных со сборкой.
[assembly: AssemblyTitle("Discord Custom Status")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Discord Custom Status")]
[assembly: AssemblyCopyright("Copyright © 2023")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Установка значения False для параметра ComVisible делает типы в этой сборке невидимыми
// для компонентов COM. Если необходимо обратиться к типу в этой сборке через
// COM, следует установить атрибут ComVisible в TRUE для этого типа.
[assembly: ComVisible(false)]
// Следующий GUID служит для идентификации библиотеки типов, если этот проект будет видимым для COM
[assembly: Guid("b07bb826-e59d-4b9c-9234-9465893293a6")]
// Сведения о версии сборки состоят из указанных ниже четырех значений:
//
// Основной номер версии
// Дополнительный номер версии
// Номер сборки
// Редакция
//
// Можно задать все значения или принять номера сборки и редакции по умолчанию
// используя "*", как показано ниже:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

View File

@@ -127,4 +127,7 @@
<data name="logorafael" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\img\logorafael.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="dslogo1" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\img\dslogo.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
</root>

View File

@@ -12,7 +12,7 @@ namespace Discord_Custom_Status.Properties {
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.4.0.0")]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.9.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
@@ -238,5 +238,53 @@ namespace Discord_Custom_Status.Properties {
this["CustomState"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("Check our github")]
public string Button1Label {
get {
return ((string)(this["Button1Label"]));
}
set {
this["Button1Label"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("https://yawaflua.ru/r/gh")]
public string Button1Url {
get {
return ((string)(this["Button1Url"]));
}
set {
this["Button1Url"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("Check our github")]
public string Button2Label {
get {
return ((string)(this["Button2Label"]));
}
set {
this["Button2Label"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("https://github.com/rafael1209")]
public string Button2Url {
get {
return ((string)(this["Button2Url"]));
}
set {
this["Button2Url"] = value;
}
}
}
}

View File

@@ -56,5 +56,17 @@
<Setting Name="CustomState" Type="System.String" Scope="User">
<Value Profile="(Default)" />
</Setting>
<Setting Name="Button1Label" Type="System.String" Scope="User">
<Value Profile="(Default)">Check our github</Value>
</Setting>
<Setting Name="Button1Url" Type="System.String" Scope="User">
<Value Profile="(Default)">https://yawaflua.ru/r/gh</Value>
</Setting>
<Setting Name="Button2Label" Type="System.String" Scope="User">
<Value Profile="(Default)">Check our github</Value>
</Setting>
<Setting Name="Button2Url" Type="System.String" Scope="User">
<Value Profile="(Default)">https://github.com/rafael1209</Value>
</Setting>
</Settings>
</SettingsFile>

Binary file not shown.

View File

@@ -1,5 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="DiscordRichPresence" version="1.2.1.24" targetFramework="net472" />
<package id="Newtonsoft.Json" version="13.0.1" targetFramework="net472" />
</packages>