From e508eb1adcee4f9e8e4dcad00f9262a171eb0aed Mon Sep 17 00:00:00 2001 From: Hunter Rafferty Date: Mon, 5 Feb 2024 00:15:27 -0500 Subject: [PATCH] Add project files. --- .gitattributes | 63 + .gitignore | 398 +++ AC_e-Reader_Card_Creator.sln | 25 + .../AC_e-Reader_Card_Creator.csproj | 236 ++ AC_e-Reader_Card_Creator/App.config | 6 + .../CCC-Frontend.Designer.cs | 645 ++++ AC_e-Reader_Card_Creator/CCC-Frontend.cs | 513 +++ AC_e-Reader_Card_Creator/CCC-Frontend.resx | 203 ++ .../External/Source Code/headerfix.c | 151 + .../External/Source Code/nedcenc.cpp | 237 ++ .../External/Source Code/nevpk.cpp | 405 +++ .../External/Source Code/raw2bmp.cpp | 151 + .../Decompression/External/headerfix.exe | Bin 0 -> 17408 bytes .../Decompression/External/nedcenc.exe | Bin 0 -> 8192 bytes .../Decompression/External/nedclib.dll | Bin 0 -> 61440 bytes .../Decompression/External/nevpk.exe | Bin 0 -> 10240 bytes .../Decompression/External/raw2bmp.exe | Bin 0 -> 7680 bytes .../Decompression/Functions/Compress.cs | 279 ++ .../Decompression/Functions/Decompress.cs | 136 + .../Decompression/Functions/Decompressed.cs | 149 + .../Print-Frontend.Designer.cs | 177 + AC_e-Reader_Card_Creator/Print-Frontend.cs | 138 + AC_e-Reader_Card_Creator/Print-Frontend.resx | 170 + AC_e-Reader_Card_Creator/Program.cs | 22 + .../Properties/AssemblyInfo.cs | 36 + .../Properties/Resources.Designer.cs | 763 ++++ .../Properties/Resources.resx | 331 ++ .../Properties/Settings.Designer.cs | 30 + .../Properties/Settings.settings | 7 + .../References/AC_Greeting_List.txt | 181 + .../References/AC_Item_List.txt | 3078 +++++++++++++++++ .../References/AC_Sender_List.txt | 269 ++ .../References/AC_Special_Char.txt | 135 + .../References/AC_Stationery_List.txt | 64 + AC_e-Reader_Card_Creator/References/Common.cs | 158 + .../References/GBA_Blank.vpk | Bin 0 -> 1472 bytes .../References/Header_Blank.vpk | Bin 0 -> 116 bytes AC_e-Reader_Card_Creator/Resources/A.png | Bin 0 -> 1306 bytes .../Resources/Airmail_Paper_PG.png | Bin 0 -> 28155 bytes .../Resources/Aloha_Paper_PG.png | Bin 0 -> 171774 bytes .../Resources/Animal_Crossing_PAL_Font.png | Bin 0 -> 192257 bytes .../Resources/Bamboo_Paper_PG.png | Bin 0 -> 200042 bytes .../Resources/Blossom_Paper_PG.png | Bin 0 -> 94047 bytes .../Resources/Bluebell_Paper_PG.png | Bin 0 -> 116957 bytes .../Resources/Butterfly_Paper_PG.png | Bin 0 -> 116598 bytes .../Resources/Cloudy_Paper_PG.png | Bin 0 -> 26380 bytes .../Resources/Cool_Neon_Paper_PG.png | Bin 0 -> 18573 bytes .../Resources/Cool_Paper_PG.png | Bin 0 -> 98278 bytes .../Resources/Dainty_Paper_PG.png | Bin 0 -> 114831 bytes .../Resources/Daisy_Paper_PG.png | Bin 0 -> 149606 bytes .../Resources/Deep_Sea_Paper_PG.png | Bin 0 -> 141685 bytes .../Resources/Dragon_Paper_PG.png | Bin 0 -> 60118 bytes .../Resources/Elegant_Paper_PG.png | Bin 0 -> 40754 bytes .../Resources/Essay_Paper_PG.png | Bin 0 -> 22671 bytes .../Resources/FOT-Rodin Pro M.ttf | Bin 0 -> 4327256 bytes .../Resources/Fantasy_Paper_PG.png | Bin 0 -> 31942 bytes .../Resources/Felt_Paper_PG.png | Bin 0 -> 115676 bytes .../Resources/Festive_Paper_PG.png | Bin 0 -> 97371 bytes .../Resources/Fireworks_Paper_PG.png | Bin 0 -> 94158 bytes .../Resources/Fortune_Paper_PG.png | Bin 0 -> 4593 bytes .../Resources/Gingko_Paper_PG.png | Bin 0 -> 196675 bytes .../Resources/Gyroid_Paper_PG.png | Bin 0 -> 51560 bytes .../Resources/Honeybee_Paper_PG.png | Bin 0 -> 76740 bytes .../Resources/Horsetail_Paper_PG.png | Bin 0 -> 75853 bytes .../Resources/Hot_Neon_Paper_PG.png | Bin 0 -> 18071 bytes .../Resources/Inky_Paper_PG.png | Bin 0 -> 32187 bytes .../Resources/Ivy_Paper_PG.png | Bin 0 -> 85792 bytes .../Resources/Lacy_Paper_PG.png | Bin 0 -> 109361 bytes .../Resources/Lattice_Paper_PG.png | Bin 0 -> 101652 bytes .../Resources/Maple_Leaf_Paper_PG.png | Bin 0 -> 198277 bytes .../Resources/Misty_Paper_PG.png | Bin 0 -> 48975 bytes .../Resources/Museum_Paper_PG.png | Bin 0 -> 62007 bytes .../Resources/Mystic_Paper_PG.png | Bin 0 -> 218922 bytes .../Resources/Neat_Paper_PG.png | Bin 0 -> 95962 bytes .../Resources/New_Year's_Card_PG.png | Bin 0 -> 5516 bytes .../Resources/Noodle_Paper_PG.png | Bin 0 -> 64121 bytes .../Resources/Octopus_Paper_PG.png | Bin 0 -> 108965 bytes .../Resources/Orange_Paper_PG.png | Bin 0 -> 178906 bytes .../Resources/Panda_Paper_PG.png | Bin 0 -> 43992 bytes .../Resources/Parchment_PG (1).png | Bin 0 -> 100734 bytes .../Resources/Parchment_PG.png | Bin 0 -> 100734 bytes .../Resources/Petal_Paper_PG.png | Bin 0 -> 73019 bytes .../Resources/Polka-Dot_Paper_PG.png | Bin 0 -> 93394 bytes .../Resources/Rainbow_Paper_PG.png | Bin 0 -> 10423 bytes .../Resources/Rainy_Day_Paper_PG.png | Bin 0 -> 66421 bytes .../Resources/Ranch_Paper_PG.png | Bin 0 -> 132825 bytes .../Resources/Ribbon_Paper_PG.png | Bin 0 -> 50014 bytes .../Resources/Simple_Paper_PG.png | Bin 0 -> 102568 bytes .../Resources/Skyline_Paper_PG.png | Bin 0 -> 87754 bytes .../Resources/Snowy_Paper_PG.png | Bin 0 -> 113896 bytes .../Resources/Sparkly_Paper_PG.png | Bin 0 -> 10205 bytes .../Resources/Spooky_Paper_PG.png | Bin 0 -> 51870 bytes .../Resources/Stageshow_Paper_PG.png | Bin 0 -> 51902 bytes .../Resources/Starry_Sky_Paper_PG.png | Bin 0 -> 97543 bytes .../Resources/Steel_Paper_PG.png | Bin 0 -> 265932 bytes .../Resources/Sunset_Paper_PG.png | Bin 0 -> 25592 bytes .../Resources/Thick_Paper_PG.png | Bin 0 -> 29069 bytes .../Resources/Tile_Paper_PG.png | Bin 0 -> 82596 bytes .../Resources/Vine_Paper_PG (1).png | Bin 0 -> 75586 bytes .../Resources/Vine_Paper_PG.png | Bin 0 -> 75586 bytes .../Resources/Watermelon_Paper_PG.png | Bin 0 -> 38446 bytes .../Resources/Wing_Paper_PG (1).png | Bin 0 -> 72787 bytes .../Resources/Winter_Paper_PG.png | Bin 0 -> 47754 bytes .../Resources/Woodcut_Paper_PG.png | Bin 0 -> 135286 bytes .../Resources/Woodland_Paper_PG.png | Bin 0 -> 69174 bytes .../Resources/e-reader-ccc.ico | Bin 0 -> 4286 bytes .../Resources/infinity.png | Bin 0 -> 2486 bytes AC_e-Reader_Card_Creator/Resources/print.ico | Bin 0 -> 2462 bytes .../Resources/sample_dotcode.bmp | Bin 0 -> 5518 bytes AC_e-Reader_Card_Creator/e-reader-ccc.ico | Bin 0 -> 4286 bytes LICENSE.txt | 21 + README.md | 1 + 112 files changed, 9178 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 AC_e-Reader_Card_Creator.sln create mode 100644 AC_e-Reader_Card_Creator/AC_e-Reader_Card_Creator.csproj create mode 100644 AC_e-Reader_Card_Creator/App.config create mode 100644 AC_e-Reader_Card_Creator/CCC-Frontend.Designer.cs create mode 100644 AC_e-Reader_Card_Creator/CCC-Frontend.cs create mode 100644 AC_e-Reader_Card_Creator/CCC-Frontend.resx create mode 100644 AC_e-Reader_Card_Creator/Decompression/External/Source Code/headerfix.c create mode 100644 AC_e-Reader_Card_Creator/Decompression/External/Source Code/nedcenc.cpp create mode 100644 AC_e-Reader_Card_Creator/Decompression/External/Source Code/nevpk.cpp create mode 100644 AC_e-Reader_Card_Creator/Decompression/External/Source Code/raw2bmp.cpp create mode 100644 AC_e-Reader_Card_Creator/Decompression/External/headerfix.exe create mode 100644 AC_e-Reader_Card_Creator/Decompression/External/nedcenc.exe create mode 100644 AC_e-Reader_Card_Creator/Decompression/External/nedclib.dll create mode 100644 AC_e-Reader_Card_Creator/Decompression/External/nevpk.exe create mode 100644 AC_e-Reader_Card_Creator/Decompression/External/raw2bmp.exe create mode 100644 AC_e-Reader_Card_Creator/Decompression/Functions/Compress.cs create mode 100644 AC_e-Reader_Card_Creator/Decompression/Functions/Decompress.cs create mode 100644 AC_e-Reader_Card_Creator/Decompression/Functions/Decompressed.cs create mode 100644 AC_e-Reader_Card_Creator/Print-Frontend.Designer.cs create mode 100644 AC_e-Reader_Card_Creator/Print-Frontend.cs create mode 100644 AC_e-Reader_Card_Creator/Print-Frontend.resx create mode 100644 AC_e-Reader_Card_Creator/Program.cs create mode 100644 AC_e-Reader_Card_Creator/Properties/AssemblyInfo.cs create mode 100644 AC_e-Reader_Card_Creator/Properties/Resources.Designer.cs create mode 100644 AC_e-Reader_Card_Creator/Properties/Resources.resx create mode 100644 AC_e-Reader_Card_Creator/Properties/Settings.Designer.cs create mode 100644 AC_e-Reader_Card_Creator/Properties/Settings.settings create mode 100644 AC_e-Reader_Card_Creator/References/AC_Greeting_List.txt create mode 100644 AC_e-Reader_Card_Creator/References/AC_Item_List.txt create mode 100644 AC_e-Reader_Card_Creator/References/AC_Sender_List.txt create mode 100644 AC_e-Reader_Card_Creator/References/AC_Special_Char.txt create mode 100644 AC_e-Reader_Card_Creator/References/AC_Stationery_List.txt create mode 100644 AC_e-Reader_Card_Creator/References/Common.cs create mode 100644 AC_e-Reader_Card_Creator/References/GBA_Blank.vpk create mode 100644 AC_e-Reader_Card_Creator/References/Header_Blank.vpk create mode 100644 AC_e-Reader_Card_Creator/Resources/A.png create mode 100644 AC_e-Reader_Card_Creator/Resources/Airmail_Paper_PG.png create mode 100644 AC_e-Reader_Card_Creator/Resources/Aloha_Paper_PG.png create mode 100644 AC_e-Reader_Card_Creator/Resources/Animal_Crossing_PAL_Font.png create mode 100644 AC_e-Reader_Card_Creator/Resources/Bamboo_Paper_PG.png create mode 100644 AC_e-Reader_Card_Creator/Resources/Blossom_Paper_PG.png create mode 100644 AC_e-Reader_Card_Creator/Resources/Bluebell_Paper_PG.png create mode 100644 AC_e-Reader_Card_Creator/Resources/Butterfly_Paper_PG.png create mode 100644 AC_e-Reader_Card_Creator/Resources/Cloudy_Paper_PG.png create mode 100644 AC_e-Reader_Card_Creator/Resources/Cool_Neon_Paper_PG.png create mode 100644 AC_e-Reader_Card_Creator/Resources/Cool_Paper_PG.png create mode 100644 AC_e-Reader_Card_Creator/Resources/Dainty_Paper_PG.png create mode 100644 AC_e-Reader_Card_Creator/Resources/Daisy_Paper_PG.png create mode 100644 AC_e-Reader_Card_Creator/Resources/Deep_Sea_Paper_PG.png create mode 100644 AC_e-Reader_Card_Creator/Resources/Dragon_Paper_PG.png create mode 100644 AC_e-Reader_Card_Creator/Resources/Elegant_Paper_PG.png create mode 100644 AC_e-Reader_Card_Creator/Resources/Essay_Paper_PG.png create mode 100644 AC_e-Reader_Card_Creator/Resources/FOT-Rodin Pro M.ttf create mode 100644 AC_e-Reader_Card_Creator/Resources/Fantasy_Paper_PG.png create mode 100644 AC_e-Reader_Card_Creator/Resources/Felt_Paper_PG.png create mode 100644 AC_e-Reader_Card_Creator/Resources/Festive_Paper_PG.png create mode 100644 AC_e-Reader_Card_Creator/Resources/Fireworks_Paper_PG.png create mode 100644 AC_e-Reader_Card_Creator/Resources/Fortune_Paper_PG.png create mode 100644 AC_e-Reader_Card_Creator/Resources/Gingko_Paper_PG.png create mode 100644 AC_e-Reader_Card_Creator/Resources/Gyroid_Paper_PG.png create mode 100644 AC_e-Reader_Card_Creator/Resources/Honeybee_Paper_PG.png create mode 100644 AC_e-Reader_Card_Creator/Resources/Horsetail_Paper_PG.png create mode 100644 AC_e-Reader_Card_Creator/Resources/Hot_Neon_Paper_PG.png create mode 100644 AC_e-Reader_Card_Creator/Resources/Inky_Paper_PG.png create mode 100644 AC_e-Reader_Card_Creator/Resources/Ivy_Paper_PG.png create mode 100644 AC_e-Reader_Card_Creator/Resources/Lacy_Paper_PG.png create mode 100644 AC_e-Reader_Card_Creator/Resources/Lattice_Paper_PG.png create mode 100644 AC_e-Reader_Card_Creator/Resources/Maple_Leaf_Paper_PG.png create mode 100644 AC_e-Reader_Card_Creator/Resources/Misty_Paper_PG.png create mode 100644 AC_e-Reader_Card_Creator/Resources/Museum_Paper_PG.png create mode 100644 AC_e-Reader_Card_Creator/Resources/Mystic_Paper_PG.png create mode 100644 AC_e-Reader_Card_Creator/Resources/Neat_Paper_PG.png create mode 100644 AC_e-Reader_Card_Creator/Resources/New_Year's_Card_PG.png create mode 100644 AC_e-Reader_Card_Creator/Resources/Noodle_Paper_PG.png create mode 100644 AC_e-Reader_Card_Creator/Resources/Octopus_Paper_PG.png create mode 100644 AC_e-Reader_Card_Creator/Resources/Orange_Paper_PG.png create mode 100644 AC_e-Reader_Card_Creator/Resources/Panda_Paper_PG.png create mode 100644 AC_e-Reader_Card_Creator/Resources/Parchment_PG (1).png create mode 100644 AC_e-Reader_Card_Creator/Resources/Parchment_PG.png create mode 100644 AC_e-Reader_Card_Creator/Resources/Petal_Paper_PG.png create mode 100644 AC_e-Reader_Card_Creator/Resources/Polka-Dot_Paper_PG.png create mode 100644 AC_e-Reader_Card_Creator/Resources/Rainbow_Paper_PG.png create mode 100644 AC_e-Reader_Card_Creator/Resources/Rainy_Day_Paper_PG.png create mode 100644 AC_e-Reader_Card_Creator/Resources/Ranch_Paper_PG.png create mode 100644 AC_e-Reader_Card_Creator/Resources/Ribbon_Paper_PG.png create mode 100644 AC_e-Reader_Card_Creator/Resources/Simple_Paper_PG.png create mode 100644 AC_e-Reader_Card_Creator/Resources/Skyline_Paper_PG.png create mode 100644 AC_e-Reader_Card_Creator/Resources/Snowy_Paper_PG.png create mode 100644 AC_e-Reader_Card_Creator/Resources/Sparkly_Paper_PG.png create mode 100644 AC_e-Reader_Card_Creator/Resources/Spooky_Paper_PG.png create mode 100644 AC_e-Reader_Card_Creator/Resources/Stageshow_Paper_PG.png create mode 100644 AC_e-Reader_Card_Creator/Resources/Starry_Sky_Paper_PG.png create mode 100644 AC_e-Reader_Card_Creator/Resources/Steel_Paper_PG.png create mode 100644 AC_e-Reader_Card_Creator/Resources/Sunset_Paper_PG.png create mode 100644 AC_e-Reader_Card_Creator/Resources/Thick_Paper_PG.png create mode 100644 AC_e-Reader_Card_Creator/Resources/Tile_Paper_PG.png create mode 100644 AC_e-Reader_Card_Creator/Resources/Vine_Paper_PG (1).png create mode 100644 AC_e-Reader_Card_Creator/Resources/Vine_Paper_PG.png create mode 100644 AC_e-Reader_Card_Creator/Resources/Watermelon_Paper_PG.png create mode 100644 AC_e-Reader_Card_Creator/Resources/Wing_Paper_PG (1).png create mode 100644 AC_e-Reader_Card_Creator/Resources/Winter_Paper_PG.png create mode 100644 AC_e-Reader_Card_Creator/Resources/Woodcut_Paper_PG.png create mode 100644 AC_e-Reader_Card_Creator/Resources/Woodland_Paper_PG.png create mode 100644 AC_e-Reader_Card_Creator/Resources/e-reader-ccc.ico create mode 100644 AC_e-Reader_Card_Creator/Resources/infinity.png create mode 100644 AC_e-Reader_Card_Creator/Resources/print.ico create mode 100644 AC_e-Reader_Card_Creator/Resources/sample_dotcode.bmp create mode 100644 AC_e-Reader_Card_Creator/e-reader-ccc.ico create mode 100644 LICENSE.txt create mode 100644 README.md diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..1ff0c42 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,63 @@ +############################################################################### +# Set default behavior to automatically normalize line endings. +############################################################################### +* text=auto + +############################################################################### +# Set default behavior for command prompt diff. +# +# This is need for earlier builds of msysgit that does not have it on by +# default for csharp files. +# Note: This is only used by command line +############################################################################### +#*.cs diff=csharp + +############################################################################### +# Set the merge driver for project and solution files +# +# Merging from the command prompt will add diff markers to the files if there +# are conflicts (Merging from VS is not affected by the settings below, in VS +# the diff markers are never inserted). Diff markers may cause the following +# file extensions to fail to load in VS. An alternative would be to treat +# these files as binary and thus will always conflict and require user +# intervention with every merge. To do so, just uncomment the entries below +############################################################################### +#*.sln merge=binary +#*.csproj merge=binary +#*.vbproj merge=binary +#*.vcxproj merge=binary +#*.vcproj merge=binary +#*.dbproj merge=binary +#*.fsproj merge=binary +#*.lsproj merge=binary +#*.wixproj merge=binary +#*.modelproj merge=binary +#*.sqlproj merge=binary +#*.wwaproj merge=binary + +############################################################################### +# behavior for image files +# +# image files are treated as binary by default. +############################################################################### +#*.jpg binary +#*.png binary +#*.gif binary + +############################################################################### +# diff behavior for common document formats +# +# Convert binary document formats to text before diffing them. This feature +# is only available from the command line. Turn it on by uncommenting the +# entries below. +############################################################################### +#*.doc diff=astextplain +#*.DOC diff=astextplain +#*.docx diff=astextplain +#*.DOCX diff=astextplain +#*.dot diff=astextplain +#*.DOT diff=astextplain +#*.pdf diff=astextplain +#*.PDF diff=astextplain +#*.rtf diff=astextplain +#*.RTF diff=astextplain diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8a30d25 --- /dev/null +++ b/.gitignore @@ -0,0 +1,398 @@ +## 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/main/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/ +[Ww][Ii][Nn]32/ +[Aa][Rr][Mm]/ +[Aa][Rr][Mm]64/ +bld/ +[Bb]in/ +[Oo]bj/ +[Ll]og/ +[Ll]ogs/ + +# 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/ + +# ASP.NET Scaffolding +ScaffoldingReadMe.txt + +# 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 +*.tlog +*.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 + +# TeamCity is a build add-in +_TeamCity* + +# DotCover is a Code Coverage Tool +*.dotCover + +# AxoCover is a Code Coverage Tool +.axoCover/* +!.axoCover/settings.json + +# Coverlet is a free, cross platform Code Coverage Tool +coverage*.json +coverage*.xml +coverage*.info + +# 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 6 auto-generated project file (contains which files were open etc.) +*.vbp + +# Visual Studio 6 workspace and project file (working project files containing files to include in project) +*.dsw +*.dsp + +# Visual Studio 6 technical files +*.ncb +*.aps + +# 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/ + +# Visual Studio History (VSHistory) files +.vshistory/ + +# BeatPulse healthcheck temp database +healthchecksdb + +# Backup folder for Package Reference Convert tool in Visual Studio 2017 +MigrationBackup/ + +# Ionide (cross platform F# VS Code tools) working folder +.ionide/ + +# Fody - auto-generated XML schema +FodyWeavers.xsd + +# VS Code files for those working on multiple tools +.vscode/* +!.vscode/settings.json +!.vscode/tasks.json +!.vscode/launch.json +!.vscode/extensions.json +*.code-workspace + +# Local History for Visual Studio Code +.history/ + +# Windows Installer files from build outputs +*.cab +*.msi +*.msix +*.msm +*.msp + +# JetBrains Rider +*.sln.iml diff --git a/AC_e-Reader_Card_Creator.sln b/AC_e-Reader_Card_Creator.sln new file mode 100644 index 0000000..9101b25 --- /dev/null +++ b/AC_e-Reader_Card_Creator.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.6.33829.357 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AC_e-Reader_Card_Creator", "AC_e-Reader_Card_Creator\AC_e-Reader_Card_Creator.csproj", "{61E3E092-ADF9-4613-B6FB-205DD4F5A7E9}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {61E3E092-ADF9-4613-B6FB-205DD4F5A7E9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {61E3E092-ADF9-4613-B6FB-205DD4F5A7E9}.Debug|Any CPU.Build.0 = Debug|Any CPU + {61E3E092-ADF9-4613-B6FB-205DD4F5A7E9}.Release|Any CPU.ActiveCfg = Release|Any CPU + {61E3E092-ADF9-4613-B6FB-205DD4F5A7E9}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {4A36C150-C874-4AEC-BA1A-882303D129A9} + EndGlobalSection +EndGlobal diff --git a/AC_e-Reader_Card_Creator/AC_e-Reader_Card_Creator.csproj b/AC_e-Reader_Card_Creator/AC_e-Reader_Card_Creator.csproj new file mode 100644 index 0000000..a64f171 --- /dev/null +++ b/AC_e-Reader_Card_Creator/AC_e-Reader_Card_Creator.csproj @@ -0,0 +1,236 @@ + + + + + Debug + AnyCPU + {61E3E092-ADF9-4613-B6FB-205DD4F5A7E9} + WinExe + AC_e_Reader_Card_Creator + AC_e-Reader_Card_Creator + v4.7.2 + 512 + true + true + false + C:\Users\hunte\OneDrive\Desktop\e-Reader CCC\ + true + Disk + false + Foreground + 7 + Days + false + false + true + 1 + 1.0.0.%2a + false + true + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + 8C26734D6AC4E12062A9F4AF2B1C64330FB784B2 + + + AC_e-Reader_Card_Creator_TemporaryKey.pfx + + + true + + + true + + + e-reader-ccc.ico + + + + + + + + + + + + + + + + + + + + + Form + + + CCC-Frontend.cs + + + Form + + + Print-Frontend.cs + + + + + CCC-Frontend.cs + + + Print-Frontend.cs + + + PublicResXFileCodeGenerator + Designer + Resources.Designer.cs + + + + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + True + True + Resources.resx + + + True + Settings.settings + True + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + False + Microsoft .NET Framework 4.7.2 %28x86 and x64%29 + true + + + False + .NET Framework 3.5 SP1 + false + + + + \ No newline at end of file diff --git a/AC_e-Reader_Card_Creator/App.config b/AC_e-Reader_Card_Creator/App.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/AC_e-Reader_Card_Creator/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AC_e-Reader_Card_Creator/CCC-Frontend.Designer.cs b/AC_e-Reader_Card_Creator/CCC-Frontend.Designer.cs new file mode 100644 index 0000000..6ca2405 --- /dev/null +++ b/AC_e-Reader_Card_Creator/CCC-Frontend.Designer.cs @@ -0,0 +1,645 @@ +using System.Windows.Forms; + +namespace AC_e_Reader_Card_Creator +{ + partial class eReaderCCC + { + // TODO: clean up this shit - lots of unnecessary components from testing + + private System.ComponentModel.IContainer components = null; + 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() + { + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(eReaderCCC)); + this.comboBox_ItemName = new System.Windows.Forms.ComboBox(); + this.textBox_ItemID = new System.Windows.Forms.TextBox(); + this.header_ItemID = new System.Windows.Forms.Label(); + this.header_ItemName = new System.Windows.Forms.Label(); + this.header_Gift = new System.Windows.Forms.Label(); + this.header_LetterText = new System.Windows.Forms.Label(); + this.menuStrip1 = new System.Windows.Forms.MenuStrip(); + this.fileToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); + this.menu_FileNew = new System.Windows.Forms.ToolStripMenuItem(); + this.menu_NewCharCard = new System.Windows.Forms.ToolStripMenuItem(); + this.menu_FileOpen = new System.Windows.Forms.ToolStripMenuItem(); + this.menu_OpenCharCard = new System.Windows.Forms.ToolStripMenuItem(); + this.editToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); + this.menu_ClearInputs = new System.Windows.Forms.ToolStripMenuItem(); + this.menu_OpenFileDir = new System.Windows.Forms.ToolStripMenuItem(); + this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.saveToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.openToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.saveToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); + this.saveAsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.editToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.settingsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.resetToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.helpToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.tutorialToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.videoTutorialToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.gitHubRepositoryToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.label_Version = new System.Windows.Forms.Label(); + this.header_Stationery = new System.Windows.Forms.Label(); + this.comboBox_Stationery = new System.Windows.Forms.ComboBox(); + this.header_Sender = new System.Windows.Forms.Label(); + this.comboBox_Sender = new System.Windows.Forms.ComboBox(); + this.label5 = new System.Windows.Forms.Label(); + this.btn_SaveRAW = new System.Windows.Forms.Button(); + this.btn_GenDotCode = new System.Windows.Forms.Button(); + this.header_Greeting = new System.Windows.Forms.Label(); + this.header_Body = new System.Windows.Forms.Label(); + this.textBox_Body = new System.Windows.Forms.TextBox(); + this.header_Closing = new System.Windows.Forms.Label(); + this.textBox_Closing = new System.Windows.Forms.TextBox(); + this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog(); + this.label9 = new System.Windows.Forms.Label(); + this.label_Greeting = new System.Windows.Forms.Label(); + this.pictureBox_Stationery = new System.Windows.Forms.PictureBox(); + this.label_Line1 = new System.Windows.Forms.Label(); + this.label_Line2 = new System.Windows.Forms.Label(); + this.label_Line3 = new System.Windows.Forms.Label(); + this.label_Line4 = new System.Windows.Forms.Label(); + this.label_Line5 = new System.Windows.Forms.Label(); + this.label_Line6 = new System.Windows.Forms.Label(); + this.label_Closing = new System.Windows.Forms.Label(); + this.comboBox_Greeting = new System.Windows.Forms.ComboBox(); + this.menuStrip1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox_Stationery)).BeginInit(); + this.SuspendLayout(); + // + // comboBox_ItemName + // + this.comboBox_ItemName.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend; + this.comboBox_ItemName.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; + this.comboBox_ItemName.FormattingEnabled = true; + this.comboBox_ItemName.Location = new System.Drawing.Point(149, 735); + this.comboBox_ItemName.Name = "comboBox_ItemName"; + this.comboBox_ItemName.Size = new System.Drawing.Size(194, 28); + this.comboBox_ItemName.TabIndex = 0; + this.comboBox_ItemName.SelectedIndexChanged += new System.EventHandler(this.ItemNameChanged); + // + // textBox_ItemID + // + this.textBox_ItemID.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper; + this.textBox_ItemID.Location = new System.Drawing.Point(55, 735); + this.textBox_ItemID.MaxLength = 4; + this.textBox_ItemID.Name = "textBox_ItemID"; + this.textBox_ItemID.Size = new System.Drawing.Size(88, 26); + this.textBox_ItemID.TabIndex = 1; + this.textBox_ItemID.TextChanged += new System.EventHandler(this.ItemIDChanged); + this.textBox_ItemID.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.ItemIDKeyPress); + this.textBox_ItemID.KeyUp += new System.Windows.Forms.KeyEventHandler(this.ItemIDKeyUp); + // + // header_ItemID + // + this.header_ItemID.AutoSize = true; + this.header_ItemID.Location = new System.Drawing.Point(28, 712); + this.header_ItemID.Name = "header_ItemID"; + this.header_ItemID.Size = new System.Drawing.Size(62, 20); + this.header_ItemID.TabIndex = 2; + this.header_ItemID.Text = "Item ID"; + // + // header_ItemName + // + this.header_ItemName.AutoSize = true; + this.header_ItemName.Location = new System.Drawing.Point(145, 712); + this.header_ItemName.Name = "header_ItemName"; + this.header_ItemName.Size = new System.Drawing.Size(87, 20); + this.header_ItemName.TabIndex = 3; + this.header_ItemName.Text = "Item Name"; + // + // header_Gift + // + this.header_Gift.AutoSize = true; + this.header_Gift.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.header_Gift.Location = new System.Drawing.Point(25, 673); + this.header_Gift.Name = "header_Gift"; + this.header_Gift.Size = new System.Drawing.Size(164, 29); + this.header_Gift.TabIndex = 4; + this.header_Gift.Text = "Attached Gift"; + // + // header_LetterText + // + this.header_LetterText.AutoSize = true; + this.header_LetterText.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold); + this.header_LetterText.Location = new System.Drawing.Point(25, 59); + this.header_LetterText.Name = "header_LetterText"; + this.header_LetterText.Size = new System.Drawing.Size(133, 29); + this.header_LetterText.TabIndex = 6; + this.header_LetterText.Text = "Letter Text"; + // + // menuStrip1 + // + this.menuStrip1.GripMargin = new System.Windows.Forms.Padding(2, 2, 0, 2); + this.menuStrip1.ImageScalingSize = new System.Drawing.Size(24, 24); + this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.fileToolStripMenuItem1, + this.editToolStripMenuItem1}); + this.menuStrip1.Location = new System.Drawing.Point(0, 0); + this.menuStrip1.Name = "menuStrip1"; + this.menuStrip1.Size = new System.Drawing.Size(1117, 33); + this.menuStrip1.TabIndex = 8; + this.menuStrip1.Text = "menuStrip1"; + // + // fileToolStripMenuItem1 + // + this.fileToolStripMenuItem1.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.menu_FileNew, + this.menu_FileOpen}); + this.fileToolStripMenuItem1.Name = "fileToolStripMenuItem1"; + this.fileToolStripMenuItem1.Size = new System.Drawing.Size(54, 29); + this.fileToolStripMenuItem1.Text = "File"; + // + // menu_FileNew + // + this.menu_FileNew.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.menu_NewCharCard}); + this.menu_FileNew.Name = "menu_FileNew"; + this.menu_FileNew.Size = new System.Drawing.Size(158, 34); + this.menu_FileNew.Text = "New"; + // + // menu_NewCharCard + // + this.menu_NewCharCard.Name = "menu_NewCharCard"; + this.menu_NewCharCard.Size = new System.Drawing.Size(268, 34); + this.menu_NewCharCard.Text = "Character Card (AC)"; + this.menu_NewCharCard.Click += new System.EventHandler(this.MenuNewCard); + // + // menu_FileOpen + // + this.menu_FileOpen.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.menu_OpenCharCard}); + this.menu_FileOpen.Name = "menu_FileOpen"; + this.menu_FileOpen.Size = new System.Drawing.Size(158, 34); + this.menu_FileOpen.Text = "Open"; + // + // menu_OpenCharCard + // + this.menu_OpenCharCard.Name = "menu_OpenCharCard"; + this.menu_OpenCharCard.Size = new System.Drawing.Size(268, 34); + this.menu_OpenCharCard.Text = "Character Card (AC)"; + this.menu_OpenCharCard.Click += new System.EventHandler(this.OpenCharCard); + // + // editToolStripMenuItem1 + // + this.editToolStripMenuItem1.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.menu_ClearInputs, + this.menu_OpenFileDir}); + this.editToolStripMenuItem1.Name = "editToolStripMenuItem1"; + this.editToolStripMenuItem1.Size = new System.Drawing.Size(58, 29); + this.editToolStripMenuItem1.Text = "Edit"; + // + // menu_ClearInputs + // + this.menu_ClearInputs.Name = "menu_ClearInputs"; + this.menu_ClearInputs.Size = new System.Drawing.Size(266, 34); + this.menu_ClearInputs.Text = "Clear Inputs"; + this.menu_ClearInputs.Click += new System.EventHandler(this.MenuClearValues); + // + // menu_OpenFileDir + // + this.menu_OpenFileDir.Name = "menu_OpenFileDir"; + this.menu_OpenFileDir.Size = new System.Drawing.Size(266, 34); + this.menu_OpenFileDir.Text = "Open File Directory"; + this.menu_OpenFileDir.Click += new System.EventHandler(this.OpenDecompressedFileDir); + // + // fileToolStripMenuItem + // + this.fileToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.saveToolStripMenuItem, + this.openToolStripMenuItem, + this.saveToolStripMenuItem1, + this.saveAsToolStripMenuItem}); + this.fileToolStripMenuItem.Name = "fileToolStripMenuItem"; + this.fileToolStripMenuItem.Size = new System.Drawing.Size(54, 29); + this.fileToolStripMenuItem.Text = "File"; + // + // saveToolStripMenuItem + // + this.saveToolStripMenuItem.Name = "saveToolStripMenuItem"; + this.saveToolStripMenuItem.Size = new System.Drawing.Size(188, 34); + this.saveToolStripMenuItem.Text = "New"; + // + // openToolStripMenuItem + // + this.openToolStripMenuItem.Name = "openToolStripMenuItem"; + this.openToolStripMenuItem.Size = new System.Drawing.Size(188, 34); + this.openToolStripMenuItem.Text = "Open"; + // + // saveToolStripMenuItem1 + // + this.saveToolStripMenuItem1.Name = "saveToolStripMenuItem1"; + this.saveToolStripMenuItem1.Size = new System.Drawing.Size(188, 34); + this.saveToolStripMenuItem1.Text = "Save"; + // + // saveAsToolStripMenuItem + // + this.saveAsToolStripMenuItem.Name = "saveAsToolStripMenuItem"; + this.saveAsToolStripMenuItem.Size = new System.Drawing.Size(188, 34); + this.saveAsToolStripMenuItem.Text = "Save As..."; + // + // editToolStripMenuItem + // + this.editToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.settingsToolStripMenuItem, + this.resetToolStripMenuItem}); + this.editToolStripMenuItem.Name = "editToolStripMenuItem"; + this.editToolStripMenuItem.Size = new System.Drawing.Size(58, 29); + this.editToolStripMenuItem.Text = "Edit"; + // + // settingsToolStripMenuItem + // + this.settingsToolStripMenuItem.Name = "settingsToolStripMenuItem"; + this.settingsToolStripMenuItem.Size = new System.Drawing.Size(198, 34); + this.settingsToolStripMenuItem.Text = "Settings"; + // + // resetToolStripMenuItem + // + this.resetToolStripMenuItem.Name = "resetToolStripMenuItem"; + this.resetToolStripMenuItem.Size = new System.Drawing.Size(198, 34); + this.resetToolStripMenuItem.Text = "Reset Card"; + // + // helpToolStripMenuItem + // + this.helpToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.tutorialToolStripMenuItem, + this.videoTutorialToolStripMenuItem, + this.gitHubRepositoryToolStripMenuItem}); + this.helpToolStripMenuItem.Name = "helpToolStripMenuItem"; + this.helpToolStripMenuItem.Size = new System.Drawing.Size(65, 29); + this.helpToolStripMenuItem.Text = "Help"; + // + // tutorialToolStripMenuItem + // + this.tutorialToolStripMenuItem.Name = "tutorialToolStripMenuItem"; + this.tutorialToolStripMenuItem.Size = new System.Drawing.Size(260, 34); + this.tutorialToolStripMenuItem.Text = "Tutorial"; + // + // videoTutorialToolStripMenuItem + // + this.videoTutorialToolStripMenuItem.Name = "videoTutorialToolStripMenuItem"; + this.videoTutorialToolStripMenuItem.Size = new System.Drawing.Size(260, 34); + this.videoTutorialToolStripMenuItem.Text = "Video Tutorial"; + // + // gitHubRepositoryToolStripMenuItem + // + this.gitHubRepositoryToolStripMenuItem.Name = "gitHubRepositoryToolStripMenuItem"; + this.gitHubRepositoryToolStripMenuItem.Size = new System.Drawing.Size(260, 34); + this.gitHubRepositoryToolStripMenuItem.Text = "GitHub Repository"; + // + // label_Version + // + this.label_Version.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); + this.label_Version.AutoSize = true; + this.label_Version.Font = new System.Drawing.Font("Courier New", 8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label_Version.Location = new System.Drawing.Point(1017, 782); + this.label_Version.Name = "label_Version"; + this.label_Version.Size = new System.Drawing.Size(0, 18); + this.label_Version.TabIndex = 9; + // + // header_Stationery + // + this.header_Stationery.AutoSize = true; + this.header_Stationery.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold); + this.header_Stationery.Location = new System.Drawing.Point(25, 477); + this.header_Stationery.Name = "header_Stationery"; + this.header_Stationery.Size = new System.Drawing.Size(130, 29); + this.header_Stationery.TabIndex = 12; + this.header_Stationery.Text = "Stationery"; + // + // comboBox_Stationery + // + this.comboBox_Stationery.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend; + this.comboBox_Stationery.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; + this.comboBox_Stationery.FormattingEnabled = true; + this.comboBox_Stationery.Location = new System.Drawing.Point(31, 509); + this.comboBox_Stationery.Name = "comboBox_Stationery"; + this.comboBox_Stationery.Size = new System.Drawing.Size(312, 28); + this.comboBox_Stationery.TabIndex = 13; + this.comboBox_Stationery.SelectedIndexChanged += new System.EventHandler(this.StationeryChanged); + // + // header_Sender + // + this.header_Sender.AutoSize = true; + this.header_Sender.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.header_Sender.Location = new System.Drawing.Point(25, 569); + this.header_Sender.Name = "header_Sender"; + this.header_Sender.Size = new System.Drawing.Size(94, 29); + this.header_Sender.TabIndex = 14; + this.header_Sender.Text = "Sender"; + // + // comboBox_Sender + // + this.comboBox_Sender.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend; + this.comboBox_Sender.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; + this.comboBox_Sender.FormattingEnabled = true; + this.comboBox_Sender.Location = new System.Drawing.Point(31, 603); + this.comboBox_Sender.Name = "comboBox_Sender"; + this.comboBox_Sender.Size = new System.Drawing.Size(312, 28); + this.comboBox_Sender.TabIndex = 15; + // + // label5 + // + this.label5.AutoSize = true; + this.label5.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold); + this.label5.Location = new System.Drawing.Point(384, 59); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(103, 29); + this.label5.TabIndex = 16; + this.label5.Text = "Preview"; + // + // btn_SaveRAW + // + this.btn_SaveRAW.Location = new System.Drawing.Point(945, 724); + this.btn_SaveRAW.Name = "btn_SaveRAW"; + this.btn_SaveRAW.Size = new System.Drawing.Size(138, 37); + this.btn_SaveRAW.TabIndex = 17; + this.btn_SaveRAW.Text = "Save .RAW"; + this.btn_SaveRAW.UseVisualStyleBackColor = true; + this.btn_SaveRAW.Click += new System.EventHandler(this.SaveRAW); + // + // btn_GenDotCode + // + this.btn_GenDotCode.Location = new System.Drawing.Point(746, 724); + this.btn_GenDotCode.Name = "btn_GenDotCode"; + this.btn_GenDotCode.Size = new System.Drawing.Size(193, 37); + this.btn_GenDotCode.TabIndex = 18; + this.btn_GenDotCode.Text = "Generate Dot Code"; + this.btn_GenDotCode.UseVisualStyleBackColor = true; + this.btn_GenDotCode.Click += new System.EventHandler(this.GenerateDotCode); + // + // header_Greeting + // + this.header_Greeting.AutoSize = true; + this.header_Greeting.Location = new System.Drawing.Point(26, 98); + this.header_Greeting.Name = "header_Greeting"; + this.header_Greeting.Size = new System.Drawing.Size(71, 20); + this.header_Greeting.TabIndex = 19; + this.header_Greeting.Text = "Greeting"; + // + // header_Body + // + this.header_Body.AutoSize = true; + this.header_Body.Location = new System.Drawing.Point(26, 170); + this.header_Body.Name = "header_Body"; + this.header_Body.Size = new System.Drawing.Size(45, 20); + this.header_Body.TabIndex = 20; + this.header_Body.Text = "Body"; + // + // textBox_Body + // + this.textBox_Body.Location = new System.Drawing.Point(30, 193); + this.textBox_Body.MaxLength = 180; + this.textBox_Body.Multiline = true; + this.textBox_Body.Name = "textBox_Body"; + this.textBox_Body.Size = new System.Drawing.Size(312, 188); + this.textBox_Body.TabIndex = 21; + this.textBox_Body.TextChanged += new System.EventHandler(this.LetterBodyChanged); + this.textBox_Body.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.LetterBodyKeyPress); + // + // header_Closing + // + this.header_Closing.AutoSize = true; + this.header_Closing.Location = new System.Drawing.Point(28, 399); + this.header_Closing.Name = "header_Closing"; + this.header_Closing.Size = new System.Drawing.Size(61, 20); + this.header_Closing.TabIndex = 22; + this.header_Closing.Text = "Closing"; + // + // textBox_Closing + // + this.textBox_Closing.Location = new System.Drawing.Point(31, 422); + this.textBox_Closing.Name = "textBox_Closing"; + this.textBox_Closing.Size = new System.Drawing.Size(312, 26); + this.textBox_Closing.TabIndex = 23; + this.textBox_Closing.TextChanged += new System.EventHandler(this.ClosingChanged); + // + // openFileDialog1 + // + this.openFileDialog1.Filter = "RAW Files (*raw)|*raw"; + this.openFileDialog1.Title = "Open e-Reader Card RAW File"; + // + // label9 + // + this.label9.AutoSize = true; + this.label9.Location = new System.Drawing.Point(28, 741); + this.label9.Name = "label9"; + this.label9.Size = new System.Drawing.Size(25, 20); + this.label9.TabIndex = 25; + this.label9.Text = "0x"; + // + // label_Greeting + // + this.label_Greeting.AutoSize = true; + this.label_Greeting.BackColor = System.Drawing.Color.Transparent; + this.label_Greeting.Font = new System.Drawing.Font("Microsoft Sans Serif", 14F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label_Greeting.Location = new System.Drawing.Point(77, 57); + this.label_Greeting.Name = "label_Greeting"; + this.label_Greeting.Size = new System.Drawing.Size(0, 32); + this.label_Greeting.TabIndex = 27; + // + // pictureBox_Stationery + // + this.pictureBox_Stationery.BackgroundImage = global::AC_e_Reader_Card_Creator.Properties.Resources.Airmail_Paper_PG; + this.pictureBox_Stationery.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; + this.pictureBox_Stationery.Location = new System.Drawing.Point(389, 97); + this.pictureBox_Stationery.Name = "pictureBox_Stationery"; + this.pictureBox_Stationery.Size = new System.Drawing.Size(694, 605); + this.pictureBox_Stationery.TabIndex = 10; + this.pictureBox_Stationery.TabStop = false; + // + // label_Line1 + // + this.label_Line1.BackColor = System.Drawing.Color.Transparent; + this.label_Line1.Font = new System.Drawing.Font("Microsoft Sans Serif", 14F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label_Line1.Location = new System.Drawing.Point(77, 152); + this.label_Line1.Name = "label_Line1"; + this.label_Line1.Size = new System.Drawing.Size(532, 53); + this.label_Line1.TabIndex = 28; + // + // label_Line2 + // + this.label_Line2.BackColor = System.Drawing.Color.Transparent; + this.label_Line2.Font = new System.Drawing.Font("Microsoft Sans Serif", 14F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label_Line2.Location = new System.Drawing.Point(77, 205); + this.label_Line2.Name = "label_Line2"; + this.label_Line2.Size = new System.Drawing.Size(532, 56); + this.label_Line2.TabIndex = 29; + // + // label_Line3 + // + this.label_Line3.BackColor = System.Drawing.Color.Transparent; + this.label_Line3.Font = new System.Drawing.Font("Microsoft Sans Serif", 14F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label_Line3.Location = new System.Drawing.Point(77, 261); + this.label_Line3.Name = "label_Line3"; + this.label_Line3.Size = new System.Drawing.Size(532, 51); + this.label_Line3.TabIndex = 30; + // + // label_Line4 + // + this.label_Line4.BackColor = System.Drawing.Color.Transparent; + this.label_Line4.Font = new System.Drawing.Font("Microsoft Sans Serif", 14F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label_Line4.Location = new System.Drawing.Point(77, 312); + this.label_Line4.Name = "label_Line4"; + this.label_Line4.Size = new System.Drawing.Size(532, 53); + this.label_Line4.TabIndex = 31; + // + // label_Line5 + // + this.label_Line5.BackColor = System.Drawing.Color.Transparent; + this.label_Line5.Font = new System.Drawing.Font("Microsoft Sans Serif", 14F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label_Line5.Location = new System.Drawing.Point(77, 365); + this.label_Line5.Name = "label_Line5"; + this.label_Line5.Size = new System.Drawing.Size(532, 51); + this.label_Line5.TabIndex = 32; + // + // label_Line6 + // + this.label_Line6.BackColor = System.Drawing.Color.Transparent; + this.label_Line6.Font = new System.Drawing.Font("Microsoft Sans Serif", 14F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label_Line6.Location = new System.Drawing.Point(74, 416); + this.label_Line6.Name = "label_Line6"; + this.label_Line6.Size = new System.Drawing.Size(535, 61); + this.label_Line6.TabIndex = 33; + // + // label_Closing + // + this.label_Closing.BackColor = System.Drawing.Color.Transparent; + this.label_Closing.Font = new System.Drawing.Font("Microsoft Sans Serif", 14F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label_Closing.Location = new System.Drawing.Point(83, 477); + this.label_Closing.Name = "label_Closing"; + this.label_Closing.Size = new System.Drawing.Size(539, 62); + this.label_Closing.TabIndex = 34; + this.label_Closing.TextAlign = System.Drawing.ContentAlignment.BottomRight; + // + // comboBox_Greeting + // + this.comboBox_Greeting.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend; + this.comboBox_Greeting.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; + this.comboBox_Greeting.FormattingEnabled = true; + this.comboBox_Greeting.Location = new System.Drawing.Point(30, 121); + this.comboBox_Greeting.Name = "comboBox_Greeting"; + this.comboBox_Greeting.Size = new System.Drawing.Size(312, 28); + this.comboBox_Greeting.TabIndex = 35; + this.comboBox_Greeting.SelectedIndexChanged += new System.EventHandler(this.GreetingChanged); + // + // eReaderCCC + // + this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(1117, 809); + this.Controls.Add(this.label_Line1); + this.Controls.Add(this.comboBox_Greeting); + this.Controls.Add(this.label_Closing); + this.Controls.Add(this.label_Line6); + this.Controls.Add(this.label_Line5); + this.Controls.Add(this.label_Line4); + this.Controls.Add(this.label_Line3); + this.Controls.Add(this.label_Line2); + this.Controls.Add(this.label_Greeting); + this.Controls.Add(this.label9); + this.Controls.Add(this.textBox_Closing); + this.Controls.Add(this.header_Closing); + this.Controls.Add(this.textBox_Body); + this.Controls.Add(this.header_Body); + this.Controls.Add(this.header_Greeting); + this.Controls.Add(this.btn_GenDotCode); + this.Controls.Add(this.btn_SaveRAW); + this.Controls.Add(this.label5); + this.Controls.Add(this.comboBox_Sender); + this.Controls.Add(this.header_Sender); + this.Controls.Add(this.comboBox_Stationery); + this.Controls.Add(this.header_Stationery); + this.Controls.Add(this.pictureBox_Stationery); + this.Controls.Add(this.label_Version); + this.Controls.Add(this.header_LetterText); + this.Controls.Add(this.header_Gift); + this.Controls.Add(this.header_ItemName); + this.Controls.Add(this.header_ItemID); + this.Controls.Add(this.textBox_ItemID); + this.Controls.Add(this.comboBox_ItemName); + this.Controls.Add(this.menuStrip1); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D; + this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); + this.MainMenuStrip = this.menuStrip1; + this.Name = "eReaderCCC"; + this.Text = "AC e-Reader Character Card Creator"; + this.menuStrip1.ResumeLayout(false); + this.menuStrip1.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox_Stationery)).EndInit(); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.ComboBox comboBox_ItemName; + private TextBox textBox_ItemID; + private Label header_ItemID; + private Label header_ItemName; + private Label header_Gift; + private Label header_LetterText; + private MenuStrip menuStrip1; + private ToolStripMenuItem fileToolStripMenuItem; + private ToolStripMenuItem saveToolStripMenuItem; + private ToolStripMenuItem openToolStripMenuItem; + private ToolStripMenuItem saveToolStripMenuItem1; + private ToolStripMenuItem saveAsToolStripMenuItem; + private ToolStripMenuItem editToolStripMenuItem; + private ToolStripMenuItem settingsToolStripMenuItem; + private ToolStripMenuItem resetToolStripMenuItem; + private ToolStripMenuItem helpToolStripMenuItem; + private ToolStripMenuItem tutorialToolStripMenuItem; + private ToolStripMenuItem videoTutorialToolStripMenuItem; + private ToolStripMenuItem gitHubRepositoryToolStripMenuItem; + private Label label_Version; + private Label header_Stationery; + private ComboBox comboBox_Stationery; + private Label header_Sender; + private ComboBox comboBox_Sender; + private Label label5; + private Button btn_SaveRAW; + private Button btn_GenDotCode; + private PictureBox pictureBox_Stationery; + private Label header_Greeting; + private Label header_Body; + private TextBox textBox_Body; + private Label header_Closing; + private TextBox textBox_Closing; + private ToolStripMenuItem fileToolStripMenuItem1; + private ToolStripMenuItem editToolStripMenuItem1; + private ToolStripMenuItem menu_FileOpen; + private OpenFileDialog openFileDialog1; + private Label label9; + private Label label_Greeting; + private Label label_Line1; + private Label label_Line2; + private Label label_Line3; + private Label label_Line4; + private Label label_Line5; + private Label label_Line6; + private Label label_Closing; + private ComboBox comboBox_Greeting; + private ToolStripMenuItem menu_FileNew; + private ToolStripMenuItem menu_NewCharCard; + private ToolStripMenuItem menu_ClearInputs; + private ToolStripMenuItem menu_OpenCharCard; + private ToolStripMenuItem menu_OpenFileDir; + } +} + diff --git a/AC_e-Reader_Card_Creator/CCC-Frontend.cs b/AC_e-Reader_Card_Creator/CCC-Frontend.cs new file mode 100644 index 0000000..0c3ea0c --- /dev/null +++ b/AC_e-Reader_Card_Creator/CCC-Frontend.cs @@ -0,0 +1,513 @@ +using System; +using System.Collections.Generic; +using System.Drawing; +using System.Linq; +using System.Windows.Forms; +using System.IO; +using AC_e_Reader_Card_Creator.Decompression.Functions; +using System.Drawing.Text; +using System.Runtime.InteropServices; +using System.Diagnostics; +using AC_e_Reader_Card_Creator.References; + +namespace AC_e_Reader_Card_Creator +{ + public partial class eReaderCCC : Form + { + private readonly Dictionary itemIDs = new Dictionary(); + private readonly Dictionary stationeryFontRGB = new Dictionary(); + private readonly PrivateFontCollection AC_Letter_Font = new PrivateFontCollection(); + + public eReaderCCC() + { + InitializeComponent(); + LoadDirectories(); + LoadStationeryIDs(); + LoadItemIDs(); + LoadSenderIDs(); + LoadGreetings(); + HandleFonts(); + Common.LoadBlankVPKs(); + + label_Version.Text = Common.VERSION; + comboBox_Stationery.SelectedIndex = 0; + comboBox_Greeting.SelectedIndex = 5; + label_Greeting.Text = comboBox_Greeting.Text; + } + + private void LoadDirectories() + { + string[] directoryPath = { @"Project Files\Decompression\eCard", Common.RAW_OUTPUT, Common.BIN_OUTPUT, Common.VPK_OUTPUT, Common.DEC_OUTPUT, Common.BMP_OUTPUT }; + foreach(string dir in directoryPath) + { + if (!Directory.Exists(dir)) + { + Directory.CreateDirectory(dir); + } + } + } + + private void ItemIDChanged(object sender, EventArgs e) + { + string itemID = "0x" + textBox_ItemID.Text; + + if (itemID.Length == 6) + { + string item_name = Common.LookupListValue(itemID, Common.ITEM_LIST); + + if (item_name != null) + { + comboBox_ItemName.SelectedItem = item_name; + } + else + { + comboBox_ItemName.SelectedItem = "Invalid"; + } + } + else + { + comboBox_ItemName.SelectedItem = null; + } + } + + private void LetterBodyChanged(object sender, EventArgs e) + { + int currentCharCount = textBox_Body.Text.Length; + int maxCharBody = textBox_Body.MaxLength; + header_Body.Text = $"Body ( {currentCharCount} / {maxCharBody} )"; + + List