├── BlackFlash
├── App.config
├── packages.config
├── Properties
│ ├── Settings.settings
│ ├── Settings.Designer.cs
│ ├── AssemblyInfo.cs
│ ├── Resources.Designer.cs
│ └── Resources.resx
├── Program.cs
├── MainForm.cs
├── BlackFlash.csproj
├── MainForm.resx
└── MainForm.Designer.cs
├── BlackFlash.sln
├── LICENSE
├── README.md
├── .gitattributes
└── .gitignore
/BlackFlash/App.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/BlackFlash/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/BlackFlash/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/BlackFlash/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Windows.Forms;
3 |
4 | namespace BlackFlash
5 | {
6 | static class Program
7 | {
8 | ///
9 | /// Der Haupteinstiegspunkt für die Anwendung.
10 | ///
11 | [STAThread]
12 | static void Main()
13 | {
14 | Application.EnableVisualStyles();
15 | Application.SetCompatibleTextRenderingDefault(false);
16 | Application.Run(new MainForm());
17 | }
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/BlackFlash.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 15
4 | VisualStudioVersion = 15.0.26730.12
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BlackFlash", "BlackFlash\BlackFlash.csproj", "{8FAFB06D-C5A9-4D35-95D3-167034D683EB}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Release|Any CPU = Release|Any CPU
12 | EndGlobalSection
13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
14 | {8FAFB06D-C5A9-4D35-95D3-167034D683EB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15 | {8FAFB06D-C5A9-4D35-95D3-167034D683EB}.Debug|Any CPU.Build.0 = Debug|Any CPU
16 | {8FAFB06D-C5A9-4D35-95D3-167034D683EB}.Release|Any CPU.ActiveCfg = Release|Any CPU
17 | {8FAFB06D-C5A9-4D35-95D3-167034D683EB}.Release|Any CPU.Build.0 = Release|Any CPU
18 | EndGlobalSection
19 | GlobalSection(SolutionProperties) = preSolution
20 | HideSolutionNode = FALSE
21 | EndGlobalSection
22 | GlobalSection(ExtensibilityGlobals) = postSolution
23 | SolutionGuid = {9498A4AE-1103-4D4C-944A-FD00685A549E}
24 | EndGlobalSection
25 | EndGlobal
26 |
--------------------------------------------------------------------------------
/BlackFlash/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.42000
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace BlackFlash.Properties
12 | {
13 |
14 |
15 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
16 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
17 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
18 | {
19 |
20 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
21 |
22 | public static Settings Default
23 | {
24 | get
25 | {
26 | return defaultInstance;
27 | }
28 | }
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | This is free and unencumbered software released into the public domain.
2 |
3 | Anyone is free to copy, modify, publish, use, compile, sell, or
4 | distribute this software, either in source code form or as a compiled
5 | binary, for any purpose, commercial or non-commercial, and by any
6 | means.
7 |
8 | In jurisdictions that recognize copyright laws, the author or authors
9 | of this software dedicate any and all copyright interest in the
10 | software to the public domain. We make this dedication for the benefit
11 | of the public at large and to the detriment of our heirs and
12 | successors. We intend this dedication to be an overt act of
13 | relinquishment in perpetuity of all present and future rights to this
14 | software under copyright law.
15 |
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19 | IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
20 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
21 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22 | OTHER DEALINGS IN THE SOFTWARE.
23 |
24 | For more information, please refer to
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Black-Flash
2 |
3 | Inverts Screen to make the Flashbang effect in CS:GO black. That helps people who are very photosensitive.
4 |
5 | # What is this?
6 |
7 | Video for Demonstration and History of this little Project.
8 |
9 | There is another Program that was made after mine. Its better in most ways so I recommend using this:
10 | csgo_dont_blind_me
11 |
12 | # Installation for people who can not build from source:
13 |
14 | Donwload the latest Installer from https://palone.top/blackflash/bf.exe and execute it.
15 |
16 | You now will have the shortcuts for the BlackFlash.exe and the NegativeScreen.exe on your Desktop. You also will have a shortcut for the gamestate_integration_pl.cfg on there as well.
17 |
18 | You have to put the .cfg in (your steam directory)\steamapps\common\Counter-Strike Global Offensive\csgo\cfg
19 |
20 | Then start the NegativeScreen.exe and after that the BlackFlash.exe.
21 |
22 | (When you start NegativeScreen it will make the Screen Negative once. Click on your system tray and right click on the NegativScreen -> Toggle Inversion)
23 |
24 | This program only works on windowed or Fullscreen windowed mode.
25 |
26 | NegativeScreen requires a 64-bit OS.
27 |
28 | # Licenses
29 |
30 | This program uses https://github.com/mlaily/NegativeScreen to function properly. Credits go to https://github.com/mlaily/
31 |
--------------------------------------------------------------------------------
/BlackFlash/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // Allgemeine Informationen über eine Assembly werden über die folgenden
6 | // Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern,
7 | // die einer Assembly zugeordnet sind.
8 | [assembly: AssemblyTitle("BlackFlash")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("BlackFlash")]
13 | [assembly: AssemblyCopyright("Copyright © 2017")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Durch Festlegen von ComVisible auf FALSE werden die Typen in dieser Assembly
18 | // für COM-Komponenten unsichtbar. Wenn Sie auf einen Typ in dieser Assembly von
19 | // COM aus zugreifen müssen, sollten Sie das ComVisible-Attribut für diesen Typ auf "True" festlegen.
20 | [assembly: ComVisible(false)]
21 |
22 | // Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird
23 | [assembly: Guid("8fafb06d-c5a9-4d35-95d3-167034d683eb")]
24 |
25 | // Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten:
26 | //
27 | // Hauptversion
28 | // Nebenversion
29 | // Buildnummer
30 | // Revision
31 | //
32 | // Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden,
33 | // übernehmen, indem Sie "*" eingeben:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/.gitattributes:
--------------------------------------------------------------------------------
1 | ###############################################################################
2 | # Set default behavior to automatically normalize line endings.
3 | ###############################################################################
4 | * text=auto
5 |
6 | ###############################################################################
7 | # Set default behavior for command prompt diff.
8 | #
9 | # This is need for earlier builds of msysgit that does not have it on by
10 | # default for csharp files.
11 | # Note: This is only used by command line
12 | ###############################################################################
13 | #*.cs diff=csharp
14 |
15 | ###############################################################################
16 | # Set the merge driver for project and solution files
17 | #
18 | # Merging from the command prompt will add diff markers to the files if there
19 | # are conflicts (Merging from VS is not affected by the settings below, in VS
20 | # the diff markers are never inserted). Diff markers may cause the following
21 | # file extensions to fail to load in VS. An alternative would be to treat
22 | # these files as binary and thus will always conflict and require user
23 | # intervention with every merge. To do so, just uncomment the entries below
24 | ###############################################################################
25 | #*.sln merge=binary
26 | #*.csproj merge=binary
27 | #*.vbproj merge=binary
28 | #*.vcxproj merge=binary
29 | #*.vcproj merge=binary
30 | #*.dbproj merge=binary
31 | #*.fsproj merge=binary
32 | #*.lsproj merge=binary
33 | #*.wixproj merge=binary
34 | #*.modelproj merge=binary
35 | #*.sqlproj merge=binary
36 | #*.wwaproj merge=binary
37 |
38 | ###############################################################################
39 | # behavior for image files
40 | #
41 | # image files are treated as binary by default.
42 | ###############################################################################
43 | #*.jpg binary
44 | #*.png binary
45 | #*.gif binary
46 |
47 | ###############################################################################
48 | # diff behavior for common document formats
49 | #
50 | # Convert binary document formats to text before diffing them. This feature
51 | # is only available from the command line. Turn it on by uncommenting the
52 | # entries below.
53 | ###############################################################################
54 | #*.doc diff=astextplain
55 | #*.DOC diff=astextplain
56 | #*.docx diff=astextplain
57 | #*.DOCX diff=astextplain
58 | #*.dot diff=astextplain
59 | #*.DOT diff=astextplain
60 | #*.pdf diff=astextplain
61 | #*.PDF diff=astextplain
62 | #*.rtf diff=astextplain
63 | #*.RTF diff=astextplain
64 |
--------------------------------------------------------------------------------
/BlackFlash/Properties/Resources.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // Dieser Code wurde von einem Tool generiert.
4 | // Laufzeitversion: 4.0.30319.42000
5 | //
6 | // Änderungen an dieser Datei können fehlerhaftes Verhalten verursachen und gehen verloren, wenn
7 | // der Code neu generiert wird.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace BlackFlash.Properties
12 | {
13 |
14 |
15 | ///
16 | /// Eine stark typisierte Ressourcenklasse zum Suchen von lokalisierten Zeichenfolgen usw.
17 | ///
18 | // Diese Klasse wurde von der StronglyTypedResourceBuilder-Klasse
19 | // über ein Tool wie ResGen oder Visual Studio automatisch generiert.
20 | // Um einen Member hinzuzufügen oder zu entfernen, bearbeiten Sie die .ResX-Datei und führen dann ResGen
21 | // mit der Option /str erneut aus, oder erstellen Sie Ihr VS-Projekt neu.
22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
25 | internal class Resources
26 | {
27 |
28 | private static global::System.Resources.ResourceManager resourceMan;
29 |
30 | private static global::System.Globalization.CultureInfo resourceCulture;
31 |
32 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
33 | internal Resources()
34 | {
35 | }
36 |
37 | ///
38 | /// Gibt die zwischengespeicherte ResourceManager-Instanz zurück, die von dieser Klasse verwendet wird.
39 | ///
40 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
41 | internal static global::System.Resources.ResourceManager ResourceManager
42 | {
43 | get
44 | {
45 | if ((resourceMan == null))
46 | {
47 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("BlackFlash.Properties.Resources", typeof(Resources).Assembly);
48 | resourceMan = temp;
49 | }
50 | return resourceMan;
51 | }
52 | }
53 |
54 | ///
55 | /// Überschreibt die CurrentUICulture-Eigenschaft des aktuellen Threads für alle
56 | /// Ressourcenlookups, die diese stark typisierte Ressourcenklasse verwenden.
57 | ///
58 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
59 | internal static global::System.Globalization.CultureInfo Culture
60 | {
61 | get
62 | {
63 | return resourceCulture;
64 | }
65 | set
66 | {
67 | resourceCulture = value;
68 | }
69 | }
70 | }
71 | }
72 |
--------------------------------------------------------------------------------
/BlackFlash/MainForm.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.ComponentModel;
3 | using System.Text;
4 | using System.Windows.Forms;
5 |
6 | //Gamestate Integration
7 | using CSGSI;
8 |
9 | //Http stuff to make post request to NegativeScreen
10 | using System.Net;
11 | using System.Runtime.CompilerServices;
12 |
13 | namespace BlackFlash
14 | {
15 | public partial class MainForm : Form
16 | {
17 | //Global Vars
18 | private bool _isFlashed;
19 | private readonly WebClient _web = new WebClient();
20 |
21 | //POST requests
22 | private readonly byte[] _enable = Encoding.UTF8.GetBytes("ENABLE");
23 | private readonly byte[] _disable = Encoding.UTF8.GetBytes("DISABLE");
24 |
25 | //model
26 | private readonly Model _model;
27 |
28 | public MainForm()
29 | {
30 | InitializeComponent();
31 |
32 | _model = new Model {ToggleSetting = 150};
33 |
34 | txtToggleValue.Text = _model.ToggleSetting.ToString();
35 |
36 | // register data binding for current value label
37 | lblCurrentValue.DataBindings.Add("Text", _model, "ToggleSetting");
38 |
39 | // register data binding for flashed value label
40 | lblFlashState.DataBindings.Add("Text", _model, "Flashed");
41 | }
42 |
43 | private void MainForm_Load(object sender, EventArgs e)
44 | {
45 | GameStateListener gsl = new GameStateListener(3000);
46 | gsl.NewGameState += OnNewGameState;
47 | if (!gsl.Start())
48 | {
49 | MessageBox.Show("Failed to start GameStateListener", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
50 | Environment.Exit(0);
51 | }
52 | }
53 |
54 | private void OnNewGameState(GameState gs)
55 | {
56 | _model.Flashed = gs.Player.State.Flashed;
57 |
58 | if (!_isFlashed && _model.Flashed >= _model.ToggleSetting)
59 | {
60 | _web.UploadData("http://localhost:8990", "POST", _enable);
61 | _isFlashed = true;
62 | }
63 | else if (_isFlashed && _model.Flashed <= _model.ToggleSetting)
64 | {
65 | _web.UploadData("http://localhost:8990", "POST", _disable);
66 | _isFlashed = false;
67 | }
68 | }
69 |
70 | private void btnSet_Click(object sender, EventArgs e)
71 | {
72 | if (int.TryParse(txtToggleValue.Text, out int value))
73 | {
74 | if (value > 255 || value < 0)
75 | {
76 | MessageBox.Show("Value should be between 0 and 255");
77 | }
78 | else
79 | {
80 | _model.ToggleSetting = value;
81 | }
82 | }
83 | else
84 | {
85 | MessageBox.Show("Not a number!");
86 | }
87 | }
88 |
89 | private class Model : INotifyPropertyChanged
90 | {
91 | private int _flashed;
92 | public int Flashed
93 | {
94 | get => _flashed;
95 | set
96 | {
97 | _flashed = value;
98 | OnPropertyChanged();
99 | }
100 | }
101 |
102 | private int _toggleSetting;
103 | public int ToggleSetting
104 | {
105 | get => _toggleSetting;
106 | set
107 | {
108 | _toggleSetting = value;
109 | OnPropertyChanged();
110 | }
111 | }
112 |
113 | public event PropertyChangedEventHandler PropertyChanged;
114 |
115 | private void OnPropertyChanged([CallerMemberName] string propertyName = null)
116 | {
117 | PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
118 | }
119 | }
120 | }
121 | }
122 |
--------------------------------------------------------------------------------
/BlackFlash/BlackFlash.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | AnyCPU
7 | {8FAFB06D-C5A9-4D35-95D3-167034D683EB}
8 | WinExe
9 | BlackFlash
10 | BlackFlash
11 | v4.6.1
12 | 512
13 | true
14 |
15 |
16 | AnyCPU
17 | true
18 | full
19 | false
20 | bin\Debug\
21 | DEBUG;TRACE
22 | prompt
23 | 4
24 |
25 |
26 | AnyCPU
27 | pdbonly
28 | true
29 | bin\Release\
30 | TRACE
31 | prompt
32 | 4
33 |
34 |
35 |
36 | ..\packages\CSGSI.1.2.0\lib\CSGSI.dll
37 |
38 |
39 | ..\packages\CSGSI.1.2.0\lib\Newtonsoft.Json.dll
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 | Form
56 |
57 |
58 | MainForm.cs
59 |
60 |
61 |
62 |
63 | MainForm.cs
64 |
65 |
66 | ResXFileCodeGenerator
67 | Resources.Designer.cs
68 | Designer
69 |
70 |
71 | True
72 | Resources.resx
73 |
74 |
75 |
76 | SettingsSingleFileGenerator
77 | Settings.Designer.cs
78 |
79 |
80 | True
81 | Settings.settings
82 | True
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | ## Ignore Visual Studio temporary files, build results, and
2 | ## files generated by popular Visual Studio add-ons.
3 |
4 | # User-specific files
5 | *.suo
6 | *.user
7 | *.userosscache
8 | *.sln.docstates
9 |
10 | # User-specific files (MonoDevelop/Xamarin Studio)
11 | *.userprefs
12 |
13 | # Build results
14 | [Dd]ebug/
15 | [Dd]ebugPublic/
16 | [Rr]elease/
17 | [Rr]eleases/
18 | x64/
19 | x86/
20 | bld/
21 | [Bb]in/
22 | [Oo]bj/
23 | [Ll]og/
24 |
25 | # Visual Studio 2015 cache/options directory
26 | .vs/
27 | # Uncomment if you have tasks that create the project's static files in wwwroot
28 | #wwwroot/
29 |
30 |
31 |
32 | # MSTest test Results
33 | [Tt]est[Rr]esult*/
34 | [Bb]uild[Ll]og.*
35 |
36 | # NUNIT
37 | *.VisualState.xml
38 | TestResult.xml
39 |
40 | # Build Results of an ATL Project
41 | [Dd]ebugPS/
42 | [Rr]eleasePS/
43 | dlldata.c
44 |
45 | # DNX
46 | project.lock.json
47 | project.fragment.lock.json
48 | artifacts/
49 |
50 | *_i.c
51 | *_p.c
52 | *_i.h
53 | *.ilk
54 | *.meta
55 | *.obj
56 | *.pch
57 | *.pdb
58 | *.pgc
59 | *.pgd
60 | *.rsp
61 | *.sbr
62 | *.tlb
63 | *.tli
64 | *.tlh
65 | *.tmp
66 | *.tmp_proj
67 | *.log
68 | *.vspscc
69 | *.vssscc
70 | .builds
71 | *.pidb
72 | *.svclog
73 | *.scc
74 |
75 | # Chutzpah Test files
76 | _Chutzpah*
77 |
78 | # Visual C++ cache files
79 | ipch/
80 | *.aps
81 | *.ncb
82 | *.opendb
83 | *.opensdf
84 | *.sdf
85 | *.cachefile
86 | *.VC.db
87 | *.VC.VC.opendb
88 |
89 | # Visual Studio profiler
90 | *.psess
91 | *.vsp
92 | *.vspx
93 | *.sap
94 |
95 | # TFS 2012 Local Workspace
96 | $tf/
97 |
98 | # Guidance Automation Toolkit
99 | *.gpState
100 |
101 | # ReSharper is a .NET coding add-in
102 | _ReSharper*/
103 | *.[Rr]e[Ss]harper
104 | *.DotSettings.user
105 |
106 | # JustCode is a .NET coding add-in
107 | .JustCode
108 |
109 | # TeamCity is a build add-in
110 | _TeamCity*
111 |
112 | # DotCover is a Code Coverage Tool
113 | *.dotCover
114 |
115 | # NCrunch
116 | _NCrunch_*
117 | .*crunch*.local.xml
118 | nCrunchTemp_*
119 |
120 | # MightyMoose
121 | *.mm.*
122 | AutoTest.Net/
123 |
124 | # Web workbench (sass)
125 | .sass-cache/
126 |
127 | # Installshield output folder
128 | [Ee]xpress/
129 |
130 | # DocProject is a documentation generator add-in
131 | DocProject/buildhelp/
132 | DocProject/Help/*.HxT
133 | DocProject/Help/*.HxC
134 | DocProject/Help/*.hhc
135 | DocProject/Help/*.hhk
136 | DocProject/Help/*.hhp
137 | DocProject/Help/Html2
138 | DocProject/Help/html
139 |
140 | # Click-Once directory
141 | publish/
142 |
143 | # Publish Web Output
144 | *.[Pp]ublish.xml
145 | *.azurePubxml
146 | # TODO: Comment the next line if you want to checkin your web deploy settings
147 | # but database connection strings (with potential passwords) will be unencrypted
148 | #*.pubxml
149 | *.publishproj
150 |
151 | # Microsoft Azure Web App publish settings. Comment the next line if you want to
152 | # checkin your Azure Web App publish settings, but sensitive information contained
153 | # in these scripts will be unencrypted
154 | PublishScripts/
155 |
156 | # NuGet Packages
157 | *.nupkg
158 | # The packages folder can be ignored because of Package Restore
159 | **/packages/*
160 | # except build/, which is used as an MSBuild target.
161 | !**/packages/build/
162 | # Uncomment if necessary however generally it will be regenerated when needed
163 | #!**/packages/repositories.config
164 | # NuGet v3's project.json files produces more ignoreable files
165 | *.nuget.props
166 | *.nuget.targets
167 |
168 | # Microsoft Azure Build Output
169 | csx/
170 | *.build.csdef
171 |
172 | # Microsoft Azure Emulator
173 | ecf/
174 | rcf/
175 |
176 | # Windows Store app package directories and files
177 | AppPackages/
178 | BundleArtifacts/
179 | Package.StoreAssociation.xml
180 | _pkginfo.txt
181 |
182 | # Visual Studio cache files
183 | # files ending in .cache can be ignored
184 | *.[Cc]ache
185 | # but keep track of directories ending in .cache
186 | !*.[Cc]ache/
187 |
188 | # Others
189 | ClientBin/
190 | ~$*
191 | *~
192 | *.dbmdl
193 | *.dbproj.schemaview
194 | *.jfm
195 | *.pfx
196 | *.publishsettings
197 | node_modules/
198 | orleans.codegen.cs
199 |
200 | # Since there are multiple workflows, uncomment next line to ignore bower_components
201 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
202 | #bower_components/
203 |
204 | # RIA/Silverlight projects
205 | Generated_Code/
206 |
207 | # Backup & report files from converting an old project file
208 | # to a newer Visual Studio version. Backup files are not needed,
209 | # because we have git ;-)
210 | _UpgradeReport_Files/
211 | Backup*/
212 | UpgradeLog*.XML
213 | UpgradeLog*.htm
214 |
215 | # SQL Server files
216 | *.mdf
217 | *.ldf
218 |
219 | # Business Intelligence projects
220 | *.rdl.data
221 | *.bim.layout
222 | *.bim_*.settings
223 |
224 | # Microsoft Fakes
225 | FakesAssemblies/
226 |
227 | # GhostDoc plugin setting file
228 | *.GhostDoc.xml
229 |
230 | # Node.js Tools for Visual Studio
231 | .ntvs_analysis.dat
232 |
233 | # Visual Studio 6 build log
234 | *.plg
235 |
236 | # Visual Studio 6 workspace options file
237 | *.opt
238 |
239 | # Visual Studio LightSwitch build output
240 | **/*.HTMLClient/GeneratedArtifacts
241 | **/*.DesktopClient/GeneratedArtifacts
242 | **/*.DesktopClient/ModelManifest.xml
243 | **/*.Server/GeneratedArtifacts
244 | **/*.Server/ModelManifest.xml
245 | _Pvt_Extensions
246 |
247 | # Paket dependency manager
248 | .paket/paket.exe
249 | paket-files/
250 |
251 | # FAKE - F# Make
252 | .fake/
253 |
254 | # JetBrains Rider
255 | .idea/
256 | *.sln.iml
257 |
258 | # CodeRush
259 | .cr/
260 |
261 | # Python Tools for Visual Studio (PTVS)
262 | __pycache__/
263 | *.pyc
--------------------------------------------------------------------------------
/BlackFlash/Properties/Resources.resx:
--------------------------------------------------------------------------------
1 |
2 |
3 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 | text/microsoft-resx
107 |
108 |
109 | 2.0
110 |
111 |
112 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
113 |
114 |
115 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
116 |
117 |
--------------------------------------------------------------------------------
/BlackFlash/MainForm.resx:
--------------------------------------------------------------------------------
1 |
2 |
3 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 | text/microsoft-resx
110 |
111 |
112 | 2.0
113 |
114 |
115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
116 |
117 |
118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
119 |
120 |
121 | At first, start NegativeScreen.exe.
122 |
123 | Set a Value between 0 and 255.
124 | 255 is fullblind 0 is normal.
125 | The program will revert the screen colors when the
126 | player is flashed more than the given amount and
127 | revert back when it is smaller.
128 |
129 | ONLY WORKS IN (FULLSCREEN) WINDOWED MODE!
130 |
131 |
--------------------------------------------------------------------------------
/BlackFlash/MainForm.Designer.cs:
--------------------------------------------------------------------------------
1 | namespace BlackFlash
2 | {
3 | partial class MainForm
4 | {
5 | ///
6 | /// Erforderliche Designervariable.
7 | ///
8 | private System.ComponentModel.IContainer components = null;
9 |
10 | ///
11 | /// Verwendete Ressourcen bereinigen.
12 | ///
13 | /// True, wenn verwaltete Ressourcen gelöscht werden sollen; andernfalls False.
14 | protected override void Dispose(bool disposing)
15 | {
16 | if (disposing && (components != null))
17 | {
18 | components.Dispose();
19 | }
20 | base.Dispose(disposing);
21 | }
22 |
23 | #region Vom Windows Form-Designer generierter Code
24 |
25 | ///
26 | /// Erforderliche Methode für die Designerunterstützung.
27 | /// Der Inhalt der Methode darf nicht mit dem Code-Editor geändert werden.
28 | ///
29 | private void InitializeComponent()
30 | {
31 | System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm));
32 | this.lblFlashed = new System.Windows.Forms.Label();
33 | this.lblFlashState = new System.Windows.Forms.Label();
34 | this.txtToggleValue = new System.Windows.Forms.TextBox();
35 | this.lblInstructions = new System.Windows.Forms.Label();
36 | this.lblSetValue = new System.Windows.Forms.Label();
37 | this.btnSet = new System.Windows.Forms.Button();
38 | this.lblCurrentValue = new System.Windows.Forms.Label();
39 | this.lblCurrentValueText = new System.Windows.Forms.Label();
40 | this.SuspendLayout();
41 | //
42 | // lblFlashed
43 | //
44 | this.lblFlashed.AutoSize = true;
45 | this.lblFlashed.Location = new System.Drawing.Point(12, 184);
46 | this.lblFlashed.Name = "lblFlashed";
47 | this.lblFlashed.Size = new System.Drawing.Size(50, 13);
48 | this.lblFlashed.TabIndex = 0;
49 | this.lblFlashed.Text = "Flashed: ";
50 | //
51 | // lblFlashState
52 | //
53 | this.lblFlashState.AutoSize = true;
54 | this.lblFlashState.Location = new System.Drawing.Point(62, 184);
55 | this.lblFlashState.Name = "lblFlashState";
56 | this.lblFlashState.Size = new System.Drawing.Size(0, 13);
57 | this.lblFlashState.TabIndex = 1;
58 | //
59 | // txtToggleValue
60 | //
61 | this.txtToggleValue.Location = new System.Drawing.Point(96, 143);
62 | this.txtToggleValue.Name = "txtToggleValue";
63 | this.txtToggleValue.Size = new System.Drawing.Size(131, 20);
64 | this.txtToggleValue.TabIndex = 2;
65 | //
66 | // lblInstructions
67 | //
68 | this.lblInstructions.AutoSize = true;
69 | this.lblInstructions.Location = new System.Drawing.Point(12, 9);
70 | this.lblInstructions.Name = "lblInstructions";
71 | this.lblInstructions.Size = new System.Drawing.Size(278, 117);
72 | this.lblInstructions.TabIndex = 3;
73 | this.lblInstructions.Text = resources.GetString("lblInstructions.Text");
74 | //
75 | // lblSetValue
76 | //
77 | this.lblSetValue.AutoSize = true;
78 | this.lblSetValue.Location = new System.Drawing.Point(12, 147);
79 | this.lblSetValue.Name = "lblSetValue";
80 | this.lblSetValue.Size = new System.Drawing.Size(79, 13);
81 | this.lblSetValue.TabIndex = 4;
82 | this.lblSetValue.Text = "Set value here:";
83 | //
84 | // btnSet
85 | //
86 | this.btnSet.Location = new System.Drawing.Point(233, 143);
87 | this.btnSet.Name = "btnSet";
88 | this.btnSet.Size = new System.Drawing.Size(64, 20);
89 | this.btnSet.TabIndex = 5;
90 | this.btnSet.Text = "SET";
91 | this.btnSet.UseVisualStyleBackColor = true;
92 | this.btnSet.Click += new System.EventHandler(this.btnSet_Click);
93 | //
94 | // lblCurrentValue
95 | //
96 | this.lblCurrentValue.AutoSize = true;
97 | this.lblCurrentValue.Location = new System.Drawing.Point(93, 166);
98 | this.lblCurrentValue.Name = "lblCurrentValue";
99 | this.lblCurrentValue.Size = new System.Drawing.Size(0, 13);
100 | this.lblCurrentValue.TabIndex = 6;
101 | //
102 | // lblCurrentValueText
103 | //
104 | this.lblCurrentValueText.AutoSize = true;
105 | this.lblCurrentValueText.Location = new System.Drawing.Point(12, 166);
106 | this.lblCurrentValueText.Name = "lblCurrentValueText";
107 | this.lblCurrentValueText.Size = new System.Drawing.Size(73, 13);
108 | this.lblCurrentValueText.TabIndex = 7;
109 | this.lblCurrentValueText.Text = "Current value:";
110 | //
111 | // MainForm
112 | //
113 | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
114 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
115 | this.ClientSize = new System.Drawing.Size(309, 206);
116 | this.Controls.Add(this.lblCurrentValueText);
117 | this.Controls.Add(this.lblCurrentValue);
118 | this.Controls.Add(this.btnSet);
119 | this.Controls.Add(this.lblSetValue);
120 | this.Controls.Add(this.lblInstructions);
121 | this.Controls.Add(this.txtToggleValue);
122 | this.Controls.Add(this.lblFlashState);
123 | this.Controls.Add(this.lblFlashed);
124 | this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
125 | this.Name = "MainForm";
126 | this.Text = "BlackFlash";
127 | this.Load += new System.EventHandler(this.MainForm_Load);
128 | this.ResumeLayout(false);
129 | this.PerformLayout();
130 |
131 | }
132 |
133 | #endregion
134 |
135 | private System.Windows.Forms.Label lblFlashed;
136 | private System.Windows.Forms.Label lblFlashState;
137 | private System.Windows.Forms.TextBox txtToggleValue;
138 | private System.Windows.Forms.Label lblInstructions;
139 | private System.Windows.Forms.Label lblSetValue;
140 | private System.Windows.Forms.Button btnSet;
141 | private System.Windows.Forms.Label lblCurrentValue;
142 | private System.Windows.Forms.Label lblCurrentValueText;
143 | }
144 | }
145 |
146 |
--------------------------------------------------------------------------------