Skip to content

Commit

Permalink
Improvements to README.md, and more GUI changes (such as a fancy new …
Browse files Browse the repository at this point in the history
…About dialog)
  • Loading branch information
TauAkiou committed Oct 5, 2020
1 parent 752a678 commit 4725804
Show file tree
Hide file tree
Showing 6 changed files with 57 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ ipch/
*.sdf
*.cachefile

version.txt

# Visual Studio profiler
*.psess
*.vsp
Expand Down
1 change: 1 addition & 0 deletions AmongUsCapture/AmongUsCapture.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
<ItemGroup>
<EmbeddedResource Include="icon.ico" />
<EmbeddedResource Include="version.txt" />
<EmbeddedResource Include="master.txt" />
</ItemGroup>

<ItemGroup>
Expand Down
19 changes: 18 additions & 1 deletion AmongUsCapture/UserForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ private void _primaryWindowMenuItemAbout_Activated(object o, EventArgs e)
about.Name = "_amonguscaptureGtkAboutDialog";
about.ProgramName = "Among Us Capture (GTK)";
string version = String.Empty;
string master = String.Empty;

using(Stream stream = Assembly.GetExecutingAssembly()
.GetManifestResourceStream("amonguscapture_gtk.version.txt"))
if (stream == null)
Expand All @@ -104,13 +106,28 @@ private void _primaryWindowMenuItemAbout_Activated(object o, EventArgs e)
version = sreader.ReadToEnd();
}
}

using(Stream stream = Assembly.GetExecutingAssembly()
.GetManifestResourceStream("amonguscapture_gtk.master.txt"))
{
// Contains the original tag/hash from the source build.
using (StreamReader sreader = new StreamReader(stream))
{
master = sreader.ReadToEnd();
}
}

about.Icon = abouticon;
about.Version = version;
about.Comments = "amonguscapture_gtk is a GTK version of the Among Us Capture utility made by denverquane.";
about.Authors = new[] {"TauAkiou (GTK Port)", "denverquane (Original Version)", "Other Contributors"};
about.Comments = "amonguscapture_gtk is a GTK version of the Among Us Capture utility." +
$"\n\nBased on amonguscapture {master}";
about.Website = "https://github.com/TauAkiou/amonguscapture-gtk";
about.Logo = abouticon;

about.Present();
about.Run();


about.Dispose();

Expand Down
2 changes: 2 additions & 0 deletions AmongUsCapture/Userform.Gtk.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ public void InitializeWindow()

_primaryWindowMenuFile = new Menu();
_primaryWindowMenuQuitItem = new MenuItem();
_primaryMenuItemAbout = new MenuItem();


// Top level window pane.
Expand Down Expand Up @@ -130,6 +131,7 @@ public void InitializeWindow()

_primaryWindowMenuBar.Name = "_primaryWindowMenuBar";
_primaryWindowMenuBar.Append(_primaryMenuItemFile);
_primaryWindowMenuBar.Append(_primaryMenuItemAbout);

_primaryMenuItemFile.Name = "_primaryMenuItemFile";
_primaryMenuItemFile.Label = "File";
Expand Down
1 change: 1 addition & 0 deletions AmongUsCapture/master.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2.0.7-83-g127ced7
35 changes: 33 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,43 @@

Capture of the local Among Us executable state

The amonguscapture-gtk project brings the amonguscapture utility to other platforms by removing the Windows dependent WinForms framework and replacing it with the open-source GTK framework (https://www.gtk.org/).
The amonguscapture-gtk project brings the amonguscapture utility to other platforms by removing the Windows dependent WinForms framework and replacing it with the open-source GTK framework (https://www.gtk.org/).

AmongusCapture-gtk is currently supported under:
* Windows
* Linux

While AmongUsCapture-gtk works under Windows, we recommmend using the [official release](https://github.com/denverquane/amonguscapture).
##Requirements:

###Windows:

While you can use amonguscapture-gtk under Windows, we recommend using the [official release](https://github.com/denverquane/amonguscapture).

* .NET Core 3.1 Runtime: https://dotnet.microsoft.com/download/dotnet-core/current/runtime
* GTK For Windows Runtime: https://github.com/tschoonj/GTK-for-Windows-Runtime-Environment-Installer

###Linux:

* .NET Core 3.1: https://docs.microsoft.com/en-us/dotnet/core/install/linux
* GTK3: Check your distribution's packaging manager for information on how to install. If you already have Gnome installed, you likely already have gtk3.

##Building



###Windows


* .NET Core SDK: https://dotnet.microsoft.com/download
* Visual Studio
- Loading the 'AmongUsCapture.sln' file and building should be sufficient enough - all packages should be downloaded from NuGet.

###Linux
* .NET Core 3.1 SDK: https://docs.microsoft.com/en-us/dotnet/core/install/linux
* GTK3 development libraries: Check your distribution's packaging manager for information on how to install.

####Instructions:
- git clone https://github.com/TauAkiou/amonguscapture-gtk/tree/linux-mem-new

If you are using a non-master repository, switch to the correct

0 comments on commit 4725804

Please sign in to comment.