From 9e7ee0857201d5cea680e81430f63414f4ebadab Mon Sep 17 00:00:00 2001 From: CreepyCrafter24 <33260128+CreepyCrafter24@users.noreply.github.com> Date: Sun, 29 Sep 2019 13:21:34 +0200 Subject: [PATCH] first commit --- .gitignore | 512 ++++++++++++++++++++++++ README.md | 2 + Zalgen.sln | 30 ++ Zalgen/App.config | 6 + Zalgen/Form1.Designer.cs | 181 +++++++++ Zalgen/Form1.cs | 60 +++ Zalgen/Form1.resx | 120 ++++++ Zalgen/Program.cs | 22 + Zalgen/Properties/AssemblyInfo.cs | 36 ++ Zalgen/Properties/Resources.Designer.cs | 68 ++++ Zalgen/Properties/Resources.resx | 117 ++++++ Zalgen/Properties/Settings.Designer.cs | 29 ++ Zalgen/Properties/Settings.settings | 7 + Zalgen/Zalgen.csproj | 83 ++++ 14 files changed, 1273 insertions(+) create mode 100644 .gitignore create mode 100644 README.md create mode 100644 Zalgen.sln create mode 100644 Zalgen/App.config create mode 100644 Zalgen/Form1.Designer.cs create mode 100644 Zalgen/Form1.cs create mode 100644 Zalgen/Form1.resx create mode 100644 Zalgen/Program.cs create mode 100644 Zalgen/Properties/AssemblyInfo.cs create mode 100644 Zalgen/Properties/Resources.Designer.cs create mode 100644 Zalgen/Properties/Resources.resx create mode 100644 Zalgen/Properties/Settings.Designer.cs create mode 100644 Zalgen/Properties/Settings.settings create mode 100644 Zalgen/Zalgen.csproj diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4a4d13c --- /dev/null +++ b/.gitignore @@ -0,0 +1,512 @@ + +# Created by https://www.gitignore.io/api/csharp,visualstudio +# Edit at https://www.gitignore.io/?templates=csharp,visualstudio + +### Csharp ### +## Ignore Visual Studio temporary files, build results, and +## files generated by popular Visual Studio add-ons. +## +## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore + +# User-specific files +*.rsuser +*.suo +*.user +*.userosscache +*.sln.docstates + +# User-specific files (MonoDevelop/Xamarin Studio) +*.userprefs + +# Mono auto generated files +mono_crash.* + +# Build results +[Dd]ebug/ +[Dd]ebugPublic/ +[Rr]elease/ +[Rr]eleases/ +x64/ +x86/ +[Aa][Rr][Mm]/ +[Aa][Rr][Mm]64/ +bld/ +[Bb]in/ +[Oo]bj/ +[Ll]og/ + +# Visual Studio 2015/2017 cache/options directory +.vs/ +# Uncomment if you have tasks that create the project's static files in wwwroot +#wwwroot/ + +# Visual Studio 2017 auto generated files +Generated\ Files/ + +# MSTest test Results +[Tt]est[Rr]esult*/ +[Bb]uild[Ll]og.* + +# NUnit +*.VisualState.xml +TestResult.xml +nunit-*.xml + +# Build Results of an ATL Project +[Dd]ebugPS/ +[Rr]eleasePS/ +dlldata.c + +# Benchmark Results +BenchmarkDotNet.Artifacts/ + +# .NET Core +project.lock.json +project.fragment.lock.json +artifacts/ + +# StyleCop +StyleCopReport.xml + +# Files built by Visual Studio +*_i.c +*_p.c +*_h.h +*.ilk +*.meta +*.obj +*.iobj +*.pch +*.pdb +*.ipdb +*.pgc +*.pgd +*.rsp +*.sbr +*.tlb +*.tli +*.tlh +*.tmp +*.tmp_proj +*_wpftmp.csproj +*.log +*.vspscc +*.vssscc +.builds +*.pidb +*.svclog +*.scc + +# Chutzpah Test files +_Chutzpah* + +# Visual C++ cache files +ipch/ +*.aps +*.ncb +*.opendb +*.opensdf +*.sdf +*.cachefile +*.VC.db +*.VC.VC.opendb + +# Visual Studio profiler +*.psess +*.vsp +*.vspx +*.sap + +# Visual Studio Trace Files +*.e2e + +# TFS 2012 Local Workspace +$tf/ + +# Guidance Automation Toolkit +*.gpState + +# ReSharper is a .NET coding add-in +_ReSharper*/ +*.[Rr]e[Ss]harper +*.DotSettings.user + +# JustCode is a .NET coding add-in +.JustCode + +# TeamCity is a build add-in +_TeamCity* + +# DotCover is a Code Coverage Tool +*.dotCover + +# AxoCover is a Code Coverage Tool +.axoCover/* +!.axoCover/settings.json + +# Visual Studio code coverage results +*.coverage +*.coveragexml + +# NCrunch +_NCrunch_* +.*crunch*.local.xml +nCrunchTemp_* + +# MightyMoose +*.mm.* +AutoTest.Net/ + +# Web workbench (sass) +.sass-cache/ + +# Installshield output folder +[Ee]xpress/ + +# DocProject is a documentation generator add-in +DocProject/buildhelp/ +DocProject/Help/*.HxT +DocProject/Help/*.HxC +DocProject/Help/*.hhc +DocProject/Help/*.hhk +DocProject/Help/*.hhp +DocProject/Help/Html2 +DocProject/Help/html + +# Click-Once directory +publish/ + +# Publish Web Output +*.[Pp]ublish.xml +*.azurePubxml +# Note: Comment the next line if you want to checkin your web deploy settings, +# but database connection strings (with potential passwords) will be unencrypted +*.pubxml +*.publishproj + +# Microsoft Azure Web App publish settings. Comment the next line if you want to +# checkin your Azure Web App publish settings, but sensitive information contained +# in these scripts will be unencrypted +PublishScripts/ + +# NuGet Packages +*.nupkg +# NuGet Symbol Packages +*.snupkg +# The packages folder can be ignored because of Package Restore +**/[Pp]ackages/* +# except build/, which is used as an MSBuild target. +!**/[Pp]ackages/build/ +# Uncomment if necessary however generally it will be regenerated when needed +#!**/[Pp]ackages/repositories.config +# NuGet v3's project.json files produces more ignorable files +*.nuget.props +*.nuget.targets + +# Microsoft Azure Build Output +csx/ +*.build.csdef + +# Microsoft Azure Emulator +ecf/ +rcf/ + +# Windows Store app package directories and files +AppPackages/ +BundleArtifacts/ +Package.StoreAssociation.xml +_pkginfo.txt +*.appx +*.appxbundle +*.appxupload + +# Visual Studio cache files +# files ending in .cache can be ignored +*.[Cc]ache +# but keep track of directories ending in .cache +!?*.[Cc]ache/ + +# Others +ClientBin/ +~$* +*~ +*.dbmdl +*.dbproj.schemaview +*.jfm +*.pfx +*.publishsettings +orleans.codegen.cs + +# Including strong name files can present a security risk +# (https://github.com/github/gitignore/pull/2483#issue-259490424) +#*.snk + +# Since there are multiple workflows, uncomment next line to ignore bower_components +# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) +#bower_components/ + +# RIA/Silverlight projects +Generated_Code/ + +# Backup & report files from converting an old project file +# to a newer Visual Studio version. Backup files are not needed, +# because we have git ;-) +_UpgradeReport_Files/ +Backup*/ +UpgradeLog*.XML +UpgradeLog*.htm +ServiceFabricBackup/ +*.rptproj.bak + +# SQL Server files +*.mdf +*.ldf +*.ndf + +# Business Intelligence projects +*.rdl.data +*.bim.layout +*.bim_*.settings +*.rptproj.rsuser +*- [Bb]ackup.rdl +*- [Bb]ackup ([0-9]).rdl +*- [Bb]ackup ([0-9][0-9]).rdl + +# Microsoft Fakes +FakesAssemblies/ + +# GhostDoc plugin setting file +*.GhostDoc.xml + +# Node.js Tools for Visual Studio +.ntvs_analysis.dat +node_modules/ + +# Visual Studio 6 build log +*.plg + +# Visual Studio 6 workspace options file +*.opt + +# Visual Studio 6 auto-generated workspace file (contains which files were open etc.) +*.vbw + +# Visual Studio LightSwitch build output +**/*.HTMLClient/GeneratedArtifacts +**/*.DesktopClient/GeneratedArtifacts +**/*.DesktopClient/ModelManifest.xml +**/*.Server/GeneratedArtifacts +**/*.Server/ModelManifest.xml +_Pvt_Extensions + +# Paket dependency manager +.paket/paket.exe +paket-files/ + +# FAKE - F# Make +.fake/ + +# CodeRush personal settings +.cr/personal + +# Python Tools for Visual Studio (PTVS) +__pycache__/ +*.pyc + +# Cake - Uncomment if you are using it +# tools/** +# !tools/packages.config + +# Tabs Studio +*.tss + +# Telerik's JustMock configuration file +*.jmconfig + +# BizTalk build output +*.btp.cs +*.btm.cs +*.odx.cs +*.xsd.cs + +# OpenCover UI analysis results +OpenCover/ + +# Azure Stream Analytics local run output +ASALocalRun/ + +# MSBuild Binary and Structured Log +*.binlog + +# NVidia Nsight GPU debugger configuration file +*.nvuser + +# MFractors (Xamarin productivity tool) working folder +.mfractor/ + +# Local History for Visual Studio +.localhistory/ + +# BeatPulse healthcheck temp database +healthchecksdb + +# Backup folder for Package Reference Convert tool in Visual Studio 2017 +MigrationBackup/ + +### VisualStudio ### + +# User-specific files + +# User-specific files (MonoDevelop/Xamarin Studio) + +# Mono auto generated files + +# Build results + +# Visual Studio 2015/2017 cache/options directory +# Uncomment if you have tasks that create the project's static files in wwwroot + +# Visual Studio 2017 auto generated files + +# MSTest test Results + +# NUnit + +# Build Results of an ATL Project + +# Benchmark Results + +# .NET Core + +# StyleCop + +# Files built by Visual Studio + +# Chutzpah Test files + +# Visual C++ cache files + +# Visual Studio profiler + +# Visual Studio Trace Files + +# TFS 2012 Local Workspace + +# Guidance Automation Toolkit + +# ReSharper is a .NET coding add-in + +# JustCode is a .NET coding add-in + +# TeamCity is a build add-in + +# DotCover is a Code Coverage Tool + +# AxoCover is a Code Coverage Tool + +# Visual Studio code coverage results + +# NCrunch + +# MightyMoose + +# Web workbench (sass) + +# Installshield output folder + +# DocProject is a documentation generator add-in + +# Click-Once directory + +# Publish Web Output +# Note: Comment the next line if you want to checkin your web deploy settings, +# but database connection strings (with potential passwords) will be unencrypted + +# Microsoft Azure Web App publish settings. Comment the next line if you want to +# checkin your Azure Web App publish settings, but sensitive information contained +# in these scripts will be unencrypted + +# NuGet Packages +# NuGet Symbol Packages +# The packages folder can be ignored because of Package Restore +# except build/, which is used as an MSBuild target. +# Uncomment if necessary however generally it will be regenerated when needed +# NuGet v3's project.json files produces more ignorable files + +# Microsoft Azure Build Output + +# Microsoft Azure Emulator + +# Windows Store app package directories and files + +# Visual Studio cache files +# files ending in .cache can be ignored +# but keep track of directories ending in .cache + +# Others + +# Including strong name files can present a security risk +# (https://github.com/github/gitignore/pull/2483#issue-259490424) + +# Since there are multiple workflows, uncomment next line to ignore bower_components +# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) + +# RIA/Silverlight projects + +# Backup & report files from converting an old project file +# to a newer Visual Studio version. Backup files are not needed, +# because we have git ;-) + +# SQL Server files + +# Business Intelligence projects + +# Microsoft Fakes + +# GhostDoc plugin setting file + +# Node.js Tools for Visual Studio + +# Visual Studio 6 build log + +# Visual Studio 6 workspace options file + +# Visual Studio 6 auto-generated workspace file (contains which files were open etc.) + +# Visual Studio LightSwitch build output + +# Paket dependency manager + +# FAKE - F# Make + +# CodeRush personal settings + +# Python Tools for Visual Studio (PTVS) + +# Cake - Uncomment if you are using it +# tools/** +# !tools/packages.config + +# Tabs Studio + +# Telerik's JustMock configuration file + +# BizTalk build output + +# OpenCover UI analysis results + +# Azure Stream Analytics local run output + +# MSBuild Binary and Structured Log + +# NVidia Nsight GPU debugger configuration file + +# MFractors (Xamarin productivity tool) working folder + +# Local History for Visual Studio + +# BeatPulse healthcheck temp database + +# Backup folder for Package Reference Convert tool in Visual Studio 2017 + +# End of https://www.gitignore.io/api/csharp,visualstudio diff --git a/README.md b/README.md new file mode 100644 index 0000000..aa67607 --- /dev/null +++ b/README.md @@ -0,0 +1,2 @@ +# ZalGen +Generate cool Zalgo-Text diff --git a/Zalgen.sln b/Zalgen.sln new file mode 100644 index 0000000..00d5db9 --- /dev/null +++ b/Zalgen.sln @@ -0,0 +1,30 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.29324.140 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Zalgen", "Zalgen\Zalgen.csproj", "{5F66EB15-54FD-4B45-92E7-EDA1070D867F}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{C11CFC18-C557-435A-A049-FD6A797B03DA}" + ProjectSection(SolutionItems) = preProject + TextFile1.txt = TextFile1.txt + EndProjectSection +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {5F66EB15-54FD-4B45-92E7-EDA1070D867F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {5F66EB15-54FD-4B45-92E7-EDA1070D867F}.Debug|Any CPU.Build.0 = Debug|Any CPU + {5F66EB15-54FD-4B45-92E7-EDA1070D867F}.Release|Any CPU.ActiveCfg = Release|Any CPU + {5F66EB15-54FD-4B45-92E7-EDA1070D867F}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {8CA82A8A-6B0F-4A54-95BD-9BCF3C0E9ED3} + EndGlobalSection +EndGlobal diff --git a/Zalgen/App.config b/Zalgen/App.config new file mode 100644 index 0000000..193aecc --- /dev/null +++ b/Zalgen/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Zalgen/Form1.Designer.cs b/Zalgen/Form1.Designer.cs new file mode 100644 index 0000000..4798306 --- /dev/null +++ b/Zalgen/Form1.Designer.cs @@ -0,0 +1,181 @@ +namespace Zalgen +{ + partial class Form1 + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.text = new System.Windows.Forms.TextBox(); + this.run = new System.Windows.Forms.Button(); + this.controlPanel = new System.Windows.Forms.Panel(); + this.strengthLabel = new System.Windows.Forms.Label(); + this.strengthBar = new System.Windows.Forms.TrackBar(); + this.refSheet = new System.Windows.Forms.Button(); + this.fuck_down = new System.Windows.Forms.CheckBox(); + this.fuck_up = new System.Windows.Forms.CheckBox(); + this.fuck_mid = new System.Windows.Forms.CheckBox(); + this.controlPanel.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.strengthBar)).BeginInit(); + this.SuspendLayout(); + // + // text + // + this.text.Dock = System.Windows.Forms.DockStyle.Fill; + this.text.Location = new System.Drawing.Point(0, 0); + this.text.Multiline = true; + this.text.Name = "text"; + this.text.Size = new System.Drawing.Size(800, 450); + this.text.TabIndex = 0; + this.text.Text = "To invoke the hive-mind representing chaos.\r\nInvoking the feeling of chaos.\r\nWith" + + " out order.\r\nThe Nezperdian hive-mind of chaos. Zalgo.\r\nHe who Waits Behind The " + + "Wall.\r\nZALGO!"; + // + // run + // + this.run.Anchor = System.Windows.Forms.AnchorStyles.Left; + this.run.Location = new System.Drawing.Point(700, 2); + this.run.Name = "run"; + this.run.Size = new System.Drawing.Size(98, 23); + this.run.TabIndex = 1; + this.run.Text = "HE COMES..."; + this.run.UseVisualStyleBackColor = true; + this.run.Click += new System.EventHandler(this.button1_Click); + // + // controlPanel + // + this.controlPanel.Controls.Add(this.strengthLabel); + this.controlPanel.Controls.Add(this.strengthBar); + this.controlPanel.Controls.Add(this.refSheet); + this.controlPanel.Controls.Add(this.fuck_down); + this.controlPanel.Controls.Add(this.fuck_up); + this.controlPanel.Controls.Add(this.fuck_mid); + this.controlPanel.Controls.Add(this.run); + this.controlPanel.Dock = System.Windows.Forms.DockStyle.Bottom; + this.controlPanel.Location = new System.Drawing.Point(0, 398); + this.controlPanel.Name = "controlPanel"; + this.controlPanel.Size = new System.Drawing.Size(800, 52); + this.controlPanel.TabIndex = 2; + // + // strengthLabel + // + this.strengthLabel.AutoSize = true; + this.strengthLabel.Location = new System.Drawing.Point(141, 18); + this.strengthLabel.Name = "strengthLabel"; + this.strengthLabel.Size = new System.Drawing.Size(50, 13); + this.strengthLabel.TabIndex = 10; + this.strengthLabel.Text = "Strength:"; + // + // strengthBar + // + this.strengthBar.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); + this.strengthBar.Location = new System.Drawing.Point(197, 13); + this.strengthBar.Maximum = 20; + this.strengthBar.Minimum = 1; + this.strengthBar.Name = "strengthBar"; + this.strengthBar.Size = new System.Drawing.Size(499, 45); + this.strengthBar.TabIndex = 9; + this.strengthBar.Value = 5; + // + // refSheet + // + this.refSheet.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); + this.refSheet.Location = new System.Drawing.Point(700, 27); + this.refSheet.Name = "refSheet"; + this.refSheet.Size = new System.Drawing.Size(98, 23); + this.refSheet.TabIndex = 8; + this.refSheet.Text = "Reference Sheet"; + this.refSheet.UseVisualStyleBackColor = true; + this.refSheet.Click += new System.EventHandler(this.refSheet_Click); + // + // fuck_down + // + this.fuck_down.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); + this.fuck_down.AutoSize = true; + this.fuck_down.Checked = true; + this.fuck_down.CheckState = System.Windows.Forms.CheckState.Checked; + this.fuck_down.Location = new System.Drawing.Point(4, 34); + this.fuck_down.Name = "fuck_down"; + this.fuck_down.Size = new System.Drawing.Size(120, 17); + this.fuck_down.TabIndex = 7; + this.fuck_down.Text = "fuck up going down"; + this.fuck_down.UseVisualStyleBackColor = true; + // + // fuck_up + // + this.fuck_up.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); + this.fuck_up.AutoSize = true; + this.fuck_up.Location = new System.Drawing.Point(4, 3); + this.fuck_up.Name = "fuck_up"; + this.fuck_up.Size = new System.Drawing.Size(106, 17); + this.fuck_up.TabIndex = 6; + this.fuck_up.Text = "fuck up going up"; + this.fuck_up.UseVisualStyleBackColor = true; + // + // fuck_mid + // + this.fuck_mid.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); + this.fuck_mid.AutoSize = true; + this.fuck_mid.Checked = true; + this.fuck_mid.CheckState = System.Windows.Forms.CheckState.Checked; + this.fuck_mid.Location = new System.Drawing.Point(4, 19); + this.fuck_mid.Name = "fuck_mid"; + this.fuck_mid.Size = new System.Drawing.Size(113, 17); + this.fuck_mid.TabIndex = 5; + this.fuck_mid.Text = "fuck up the middle"; + this.fuck_mid.UseVisualStyleBackColor = true; + // + // Form1 + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(800, 450); + this.Controls.Add(this.controlPanel); + this.Controls.Add(this.text); + this.Name = "Form1"; + this.ShowIcon = false; + this.Text = "ZalGen"; + this.controlPanel.ResumeLayout(false); + this.controlPanel.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.strengthBar)).EndInit(); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.TextBox text; + private System.Windows.Forms.Button run; + private System.Windows.Forms.Panel controlPanel; + private System.Windows.Forms.CheckBox fuck_down; + private System.Windows.Forms.CheckBox fuck_up; + private System.Windows.Forms.CheckBox fuck_mid; + private System.Windows.Forms.Button refSheet; + private System.Windows.Forms.TrackBar strengthBar; + private System.Windows.Forms.Label strengthLabel; + } +} + diff --git a/Zalgen/Form1.cs b/Zalgen/Form1.cs new file mode 100644 index 0000000..2904452 --- /dev/null +++ b/Zalgen/Form1.cs @@ -0,0 +1,60 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace Zalgen +{ + public partial class Form1 : Form + { + public Form1() => InitializeComponent(); + char[] upChars = new char[] { '\u0300', '\u0301', '\u0301', '\u0302', '\u0303', '\u0304', '\u0305', '\u0306', '\u0307', '\u0308', '\u0309', '\u030A', '\u030B', '\u030C', '\u030D', '\u030E', + '\u030F', '\u0310', '\u0311', '\u0312', '\u0313', '\u0314', '\u0315', '\u031A', '\u031B', '\u033D', '\u033E', '\u033F', '\u0340', '\u0341', '\u0342', '\u0343', '\u0344', '\u0346', + '\u034A', '\u034B', '\u034C', '\u0350', '\u0351', '\u0352', '\u0357', '\u0358', '\u035B', '\u035D', '\u035E', '\u0360', '\u0361', '\u0363', '\u0364', '\u0365', '\u0366', '\u0367', + '\u0368', '\u0369', '\u036A', '\u036B', '\u036C', '\u036D', '\u036E', '\u036F', '\u1DC0', '\uFE20', '\u0483', '\u0486', '\u0670' }; + char[] midChars = new char[] { '\u0730', '\u073F', '\u0743', '\u074A', '\u0F18', '\u0F19', '\u0F35', '\u0F37', '\u0F72', '\u0F73', '\u0F7A', '\u0F81', '\u0F84', '\uFC5E', '\uFC62', '\u0334', + '\u0335', '\u0336', '\u0337', '\u0338', '\u05C7', '\u0610', '\u061A', '\u06D6', '\u06ED', '\u0711' }; + char[] downChars = new char[] { '\u0316', '\u0317', '\u0318', '\u0319', '\u031C', '\u031D', '\u031E', '\u031F', '\u0320', '\u0321', '\u0322', '\u0323', '\u0324', '\u0325', '\u0326', '\u0327', + '\u0328', '\u0329', '\u032A', '\u032B', '\u032C', '\u032D', '\u032E', '\u032F', '\u0330', '\u0331', '\u0332', '\u0333', '\u0339', '\u033A', '\u033B', '\u033C', '\u0345', '\u0347', + '\u0348', '\u0349', '\u034D', '\u034E', '\u0353', '\u0354', '\u0355', '\u0356', '\u0359', '\u035A', '\u035C', '\u035F', '\u0362', '\u1DFF', '\u0656', '\u065F' }; + + private void button1_Click(object sender, EventArgs e) + { + new Thread(() => MessageBox.Show("...to your clipboard")).Start(); + string[] f = text.Text.Replace("\r\n", "\r").ToCharArray().Select(s => s.ToString()).ToArray(); + Random rnd = new Random(); + if (fuck_up.Checked) + { + for (int i = 0; i < f.Length; i++) + for (int j = 0; j < strengthBar.Value; j++) + f[i] = upChars[rnd.Next(upChars.Length)].ToString() + f[i]; + } + if (fuck_mid.Checked) + { + for (int i = 0; i < f.Length; i++) + if (rnd.Next(strengthBar.Value) > 4) + f[i] = midChars[rnd.Next(midChars.Length)].ToString() + f[i]; + } + if (fuck_down.Checked) + { + for (int i = 0; i < f.Length; i++) + for (int j = 0; j < strengthBar.Value; j++) + f[i] = downChars[rnd.Next(downChars.Length)].ToString() + f[i]; + } + Clipboard.SetText(string.Join("", f).Replace("\r", "\r\n")); + } + + private void refSheet_Click(object sender, EventArgs e) + { + MessageBox.Show("Going up: " + string.Join(", ", upChars.Select(s => "a" + s.ToString())) + + "\r\n\r\nMiddle: " + string.Join(", ", midChars.Select(s => "a" + s.ToString())) + + "\r\n\r\nGoing down: " + string.Join(", ", downChars.Select(s => "a" + s.ToString()))); + } + } +} diff --git a/Zalgen/Form1.resx b/Zalgen/Form1.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/Zalgen/Form1.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/Zalgen/Program.cs b/Zalgen/Program.cs new file mode 100644 index 0000000..0509019 --- /dev/null +++ b/Zalgen/Program.cs @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace Zalgen +{ + static class Program + { + /// + /// The main entry point for the application. + /// + [STAThread] + static void Main() + { + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new Form1()); + } + } +} diff --git a/Zalgen/Properties/AssemblyInfo.cs b/Zalgen/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..c6247a5 --- /dev/null +++ b/Zalgen/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Zalgen")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Zalgen")] +[assembly: AssemblyCopyright("Copyright © 2019")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("5f66eb15-54fd-4b45-92e7-eda1070d867f")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/Zalgen/Properties/Resources.Designer.cs b/Zalgen/Properties/Resources.Designer.cs new file mode 100644 index 0000000..3d7971b --- /dev/null +++ b/Zalgen/Properties/Resources.Designer.cs @@ -0,0 +1,68 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Zalgen.Properties +{ + + + /// + /// A strongly-typed resource class, for looking up localized strings, etc. + /// + // This class was auto-generated by the StronglyTypedResourceBuilder + // class via a tool like ResGen or Visual Studio. + // To add or remove a member, edit your .ResX file then rerun ResGen + // with the /str option, or rebuild your VS project. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources + { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() + { + } + + /// + /// Returns the cached ResourceManager instance used by this class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager + { + get { + if ((resourceMan == null)) + { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Zalgen.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Overrides the current thread's CurrentUICulture property for all + /// resource lookups using this strongly typed resource class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture + { + get { + return resourceCulture; + } + set { + resourceCulture = value; + } + } + } +} diff --git a/Zalgen/Properties/Resources.resx b/Zalgen/Properties/Resources.resx new file mode 100644 index 0000000..af7dbeb --- /dev/null +++ b/Zalgen/Properties/Resources.resx @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/Zalgen/Properties/Settings.Designer.cs b/Zalgen/Properties/Settings.Designer.cs new file mode 100644 index 0000000..8070c4a --- /dev/null +++ b/Zalgen/Properties/Settings.Designer.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Zalgen.Properties +{ + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase + { + + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); + + public static Settings Default + { + get { + return defaultInstance; + } + } + } +} diff --git a/Zalgen/Properties/Settings.settings b/Zalgen/Properties/Settings.settings new file mode 100644 index 0000000..3964565 --- /dev/null +++ b/Zalgen/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + diff --git a/Zalgen/Zalgen.csproj b/Zalgen/Zalgen.csproj new file mode 100644 index 0000000..062689e --- /dev/null +++ b/Zalgen/Zalgen.csproj @@ -0,0 +1,83 @@ + + + + + Debug + AnyCPU + {5F66EB15-54FD-4B45-92E7-EDA1070D867F} + WinExe + Zalgen + Zalgen + v4.8 + 512 + true + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + Form + + + Form1.cs + + + + + Form1.cs + + + ResXFileCodeGenerator + Resources.Designer.cs + Designer + + + True + Resources.resx + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + True + Settings.settings + True + + + + + + + \ No newline at end of file