From cfadcb582d58eacf381af292f4a0f0d70fa61012 Mon Sep 17 00:00:00 2001 From: NorbiPeti Date: Mon, 15 Jun 2020 02:45:39 +0200 Subject: [PATCH] Add project files. --- GCMM.sln | 25 +++++ GCMM/Form1.Designer.cs | 211 +++++++++++++++++++++++++++++++++++++++++ GCMM/Form1.cs | 30 ++++++ GCMM/Form1.resx | 132 ++++++++++++++++++++++++++ GCMM/GCMM.csproj | 9 ++ GCMM/Program.cs | 23 +++++ 6 files changed, 430 insertions(+) create mode 100644 GCMM.sln create mode 100644 GCMM/Form1.Designer.cs create mode 100644 GCMM/Form1.cs create mode 100644 GCMM/Form1.resx create mode 100644 GCMM/GCMM.csproj create mode 100644 GCMM/Program.cs diff --git a/GCMM.sln b/GCMM.sln new file mode 100644 index 0000000..912b7ce --- /dev/null +++ b/GCMM.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30011.22 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GCMM", "GCMM\GCMM.csproj", "{4022166A-FEA4-4B26-B83F-58B4D2004976}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {4022166A-FEA4-4B26-B83F-58B4D2004976}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {4022166A-FEA4-4B26-B83F-58B4D2004976}.Debug|Any CPU.Build.0 = Debug|Any CPU + {4022166A-FEA4-4B26-B83F-58B4D2004976}.Release|Any CPU.ActiveCfg = Release|Any CPU + {4022166A-FEA4-4B26-B83F-58B4D2004976}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {20687CF2-5A53-4980-BA62-904669F05422} + EndGlobalSection +EndGlobal diff --git a/GCMM/Form1.Designer.cs b/GCMM/Form1.Designer.cs new file mode 100644 index 0000000..bc0ca0b --- /dev/null +++ b/GCMM/Form1.Designer.cs @@ -0,0 +1,211 @@ +namespace GCMM +{ + 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() + { + System.Windows.Forms.ListViewGroup listViewGroup1 = new System.Windows.Forms.ListViewGroup("Installed", System.Windows.Forms.HorizontalAlignment.Center); + System.Windows.Forms.ListViewGroup listViewGroup2 = new System.Windows.Forms.ListViewGroup("Available", System.Windows.Forms.HorizontalAlignment.Left); + System.Windows.Forms.ListViewItem listViewItem1 = new System.Windows.Forms.ListViewItem(new string[] { + "Mod", + "1.0", + "2020.06.15. 2:01:43", + "1.0"}, -1); + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1)); + this.listView1 = new System.Windows.Forms.ListView(); + this.modName = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); + this.modVersion = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); + this.modTimestamp = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); + this.latestVersion = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); + this.gamestatus = new System.Windows.Forms.Label(); + this.installbtn = new System.Windows.Forms.Button(); + this.uninstallbtn = new System.Windows.Forms.Button(); + this.modinfobox = new System.Windows.Forms.TextBox(); + this.playbtn = new System.Windows.Forms.Button(); + this.SuspendLayout(); + // + // listView1 + // + this.listView1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.listView1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(216)))), ((int)(((byte)(240)))), ((int)(((byte)(216))))); + this.listView1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.listView1.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { + this.modName, + this.modVersion, + this.modTimestamp, + this.latestVersion}); + this.listView1.ForeColor = System.Drawing.Color.Green; + this.listView1.FullRowSelect = true; + listViewGroup1.Header = "Installed"; + listViewGroup1.HeaderAlignment = System.Windows.Forms.HorizontalAlignment.Center; + listViewGroup1.Name = "installed"; + listViewGroup2.Header = "Available"; + listViewGroup2.Name = "available"; + this.listView1.Groups.AddRange(new System.Windows.Forms.ListViewGroup[] { + listViewGroup1, + listViewGroup2}); + this.listView1.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.Nonclickable; + this.listView1.HideSelection = false; + listViewItem1.Group = listViewGroup1; + this.listView1.Items.AddRange(new System.Windows.Forms.ListViewItem[] { + listViewItem1}); + this.listView1.Location = new System.Drawing.Point(12, 12); + this.listView1.Name = "listView1"; + this.listView1.Size = new System.Drawing.Size(491, 468); + this.listView1.TabIndex = 0; + this.listView1.UseCompatibleStateImageBehavior = false; + this.listView1.View = System.Windows.Forms.View.Details; + // + // modName + // + this.modName.Text = "Name"; + this.modName.Width = 203; + // + // modVersion + // + this.modVersion.Text = "Version"; + this.modVersion.Width = 65; + // + // modTimestamp + // + this.modTimestamp.Text = "Last updated"; + this.modTimestamp.Width = 129; + // + // latestVersion + // + this.latestVersion.Text = "Latest"; + this.latestVersion.Width = 86; + // + // gamestatus + // + this.gamestatus.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); + this.gamestatus.AutoSize = true; + this.gamestatus.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.gamestatus.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); + this.gamestatus.ForeColor = System.Drawing.Color.Lime; + this.gamestatus.Location = new System.Drawing.Point(8, 487); + this.gamestatus.Name = "gamestatus"; + this.gamestatus.Size = new System.Drawing.Size(105, 20); + this.gamestatus.TabIndex = 1; + this.gamestatus.Text = "Game status:"; + // + // installbtn + // + this.installbtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.installbtn.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Green; + this.installbtn.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(40)))), ((int)(((byte)(0))))); + this.installbtn.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.installbtn.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); + this.installbtn.Location = new System.Drawing.Point(509, 12); + this.installbtn.Name = "installbtn"; + this.installbtn.Size = new System.Drawing.Size(263, 49); + this.installbtn.TabIndex = 2; + this.installbtn.Text = "Install mod"; + this.installbtn.UseVisualStyleBackColor = true; + // + // uninstallbtn + // + this.uninstallbtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.uninstallbtn.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Black; + this.uninstallbtn.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Black; + this.uninstallbtn.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.uninstallbtn.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); + this.uninstallbtn.ForeColor = System.Drawing.Color.Green; + this.uninstallbtn.Location = new System.Drawing.Point(509, 67); + this.uninstallbtn.Name = "uninstallbtn"; + this.uninstallbtn.Size = new System.Drawing.Size(263, 49); + this.uninstallbtn.TabIndex = 3; + this.uninstallbtn.Text = "Uninstall mod"; + this.uninstallbtn.UseVisualStyleBackColor = true; + // + // modinfobox + // + this.modinfobox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Right))); + this.modinfobox.BackColor = System.Drawing.Color.Black; + this.modinfobox.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.modinfobox.ForeColor = System.Drawing.Color.Lime; + this.modinfobox.Location = new System.Drawing.Point(509, 122); + this.modinfobox.Multiline = true; + this.modinfobox.Name = "modinfobox"; + this.modinfobox.ReadOnly = true; + this.modinfobox.Size = new System.Drawing.Size(262, 358); + this.modinfobox.TabIndex = 4; + this.modinfobox.Text = resources.GetString("modinfobox.Text"); + // + // playbtn + // + this.playbtn.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.playbtn.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.playbtn.Font = new System.Drawing.Font("Microsoft Sans Serif", 20.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); + this.playbtn.Location = new System.Drawing.Point(250, 487); + this.playbtn.Name = "playbtn"; + this.playbtn.Size = new System.Drawing.Size(300, 62); + this.playbtn.TabIndex = 5; + this.playbtn.Text = "Play"; + this.playbtn.UseVisualStyleBackColor = true; + this.playbtn.Click += new System.EventHandler(this.playbtn_Click); + // + // Form1 + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackColor = System.Drawing.Color.Black; + this.ClientSize = new System.Drawing.Size(784, 561); + this.Controls.Add(this.playbtn); + this.Controls.Add(this.modinfobox); + this.Controls.Add(this.uninstallbtn); + this.Controls.Add(this.installbtn); + this.Controls.Add(this.gamestatus); + this.Controls.Add(this.listView1); + this.ForeColor = System.Drawing.Color.Lime; + this.Name = "Form1"; + this.Text = "Form1"; + this.Load += new System.EventHandler(this.Form1_Load); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.ListView listView1; + private System.Windows.Forms.ColumnHeader modName; + private System.Windows.Forms.ColumnHeader modVersion; + private System.Windows.Forms.ColumnHeader modTimestamp; + private System.Windows.Forms.ColumnHeader latestVersion; + private System.Windows.Forms.Label gamestatus; + private System.Windows.Forms.Button installbtn; + private System.Windows.Forms.Button uninstallbtn; + private System.Windows.Forms.TextBox modinfobox; + private System.Windows.Forms.Button playbtn; + } +} + diff --git a/GCMM/Form1.cs b/GCMM/Form1.cs new file mode 100644 index 0000000..739bc5d --- /dev/null +++ b/GCMM/Form1.cs @@ -0,0 +1,30 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace GCMM +{ + public partial class Form1 : Form + { + public Form1() + { + InitializeComponent(); + } + + private void Form1_Load(object sender, EventArgs e) + { + + } + + private void playbtn_Click(object sender, EventArgs e) + { + + } + } +} diff --git a/GCMM/Form1.resx b/GCMM/Form1.resx new file mode 100644 index 0000000..17481f4 --- /dev/null +++ b/GCMM/Form1.resx @@ -0,0 +1,132 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + + This update is backwards compatible with mods that work with GamecraftModdingAPI v1.0 and later but adds support for Gamecraft's 2020.06.11.18.50 update. + +To get started, follow the install guide: https://www.exmods.org/guides/install.html + +Changelog +- Added some simulation (time running) functionality +- Added some player hand information +- Improved API to play in-game audio + +In other news, we broke the 100 commit mark! The project is 7 months old, so that works out to just under 1 commit every 2 days, which adds about 5KB of code. + + \ No newline at end of file diff --git a/GCMM/GCMM.csproj b/GCMM/GCMM.csproj new file mode 100644 index 0000000..fef01d5 --- /dev/null +++ b/GCMM/GCMM.csproj @@ -0,0 +1,9 @@ + + + + WinExe + net461 + true + + + \ No newline at end of file diff --git a/GCMM/Program.cs b/GCMM/Program.cs new file mode 100644 index 0000000..1f0bbce --- /dev/null +++ b/GCMM/Program.cs @@ -0,0 +1,23 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace GCMM +{ + static class Program + { + /// + /// The main entry point for the application. + /// + [STAThread] + static void Main() + { + //Application.SetHighDpiMode(HighDpiMode.SystemAware); + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new Form1()); + } + } +}