-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated namespaces in a ton of files - started pkgmaker project
- Loading branch information
1 parent
9303d6b
commit b55d001
Showing
30 changed files
with
770 additions
and
312 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<configuration> | ||
<startup> | ||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" /> | ||
</startup> | ||
</configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
using Nucleus.Gaming; | ||
using System; | ||
using System.Drawing; | ||
using System.Windows.Forms; | ||
|
||
namespace Nucleus.PkgMaker | ||
{ | ||
/// <summary> | ||
/// Form that all other forms inherit from. Has all | ||
/// the default design parameters to have the Nucleus Coop look and feel | ||
/// </summary> | ||
public class BaseForm : Form, IDynamicSized | ||
{ | ||
public BaseForm() | ||
{ | ||
// Default DPI = 96 = 100% | ||
// 1 pt = 1/72 inch | ||
// 12pt = 1/6 inch | ||
// 12 * 300% = 36 | ||
// 12 * 125% = 15 | ||
// 12 * 150% = 18 | ||
AutoScaleMode = AutoScaleMode.None; | ||
BackColor = Color.FromArgb(50, 50, 50); | ||
ForeColor = Color.White; | ||
Margin = new Padding(4, 4, 4, 4); | ||
Name = "BaseForm"; | ||
Text = "BaseForm"; | ||
|
||
// create it here, else the desgienr will show the default windows font | ||
Font = new Font("Segoe UI", 12, GraphicsUnit.Point); | ||
|
||
DPIManager.Register(this); | ||
} | ||
~BaseForm() | ||
{ | ||
DPIManager.Unregister(this); | ||
} | ||
|
||
public void UpdateSize(float scale) | ||
{ | ||
if (IsDisposed) | ||
{ | ||
DPIManager.Unregister(this); | ||
return; | ||
} | ||
|
||
//SuspendLayout(); | ||
|
||
//Font = DPIManager.Font; | ||
|
||
//Size defaultSize = DefaultSize; | ||
//int wid = DPIManager.Adjust(defaultSize.Width, scale); | ||
//int hei = DPIManager.Adjust(defaultSize.Height, scale); | ||
////Size = new Size(wid, hei); | ||
//Console.WriteLine("Changed to {0}x{1}", wid, hei); | ||
|
||
//ResumeLayout(); | ||
} | ||
|
||
/// <summary> | ||
/// Removes the flickering from constantly painting, if needed | ||
/// </summary> | ||
public void RemoveFlicker() | ||
{ | ||
this.SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.UserPaint | ControlStyles.DoubleBuffer, true); | ||
} | ||
|
||
/// <summary> | ||
/// Position the form on the same monitor the user has put our app! | ||
/// (by default, forms are open on the primary monitor, but if the user dragged | ||
/// our form to another monitor the child forms still get created on the main monitor. | ||
/// This is a small quality of life fix) | ||
/// </summary> | ||
/// <param name="f">The form to move</param> | ||
public void SetUpForm(Form f) | ||
{ | ||
Point desktop = this.DesktopLocation; | ||
f.SetDesktopLocation(desktop.X + 100, desktop.Y + 100); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,170 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<root> | ||
<!-- | ||
Microsoft ResX Schema | ||
Version 2.0 | ||
The primary goals of this format is to allow a simple XML format | ||
that is mostly human readable. The generation and parsing of the | ||
various data types are done through the TypeConverter classes | ||
associated with the data types. | ||
Example: | ||
... ado.net/XML headers & schema ... | ||
<resheader name="resmimetype">text/microsoft-resx</resheader> | ||
<resheader name="version">2.0</resheader> | ||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> | ||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> | ||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> | ||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> | ||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> | ||
<value>[base64 mime encoded serialized .NET Framework object]</value> | ||
</data> | ||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> | ||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> | ||
<comment>This is a comment</comment> | ||
</data> | ||
There are any number of "resheader" rows that contain simple | ||
name/value pairs. | ||
Each data row contains a name, and value. The row also contains a | ||
type or mimetype. Type corresponds to a .NET class that support | ||
text/value conversion through the TypeConverter architecture. | ||
Classes that don't support this are serialized and stored with the | ||
mimetype set. | ||
The mimetype is used for serialized objects, and tells the | ||
ResXResourceReader how to depersist the object. This is currently not | ||
extensible. For a given mimetype the value must be set accordingly: | ||
Note - application/x-microsoft.net.object.binary.base64 is the format | ||
that the ResXResourceWriter will generate, however the reader can | ||
read any of the formats listed below. | ||
mimetype: application/x-microsoft.net.object.binary.base64 | ||
value : The object must be serialized with | ||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter | ||
: and then encoded with base64 encoding. | ||
mimetype: application/x-microsoft.net.object.soap.base64 | ||
value : The object must be serialized with | ||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter | ||
: and then encoded with base64 encoding. | ||
mimetype: application/x-microsoft.net.object.bytearray.base64 | ||
value : The object must be serialized into a byte array | ||
: using a System.ComponentModel.TypeConverter | ||
: and then encoded with base64 encoding. | ||
--> | ||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> | ||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> | ||
<xsd:element name="root" msdata:IsDataSet="true"> | ||
<xsd:complexType> | ||
<xsd:choice maxOccurs="unbounded"> | ||
<xsd:element name="metadata"> | ||
<xsd:complexType> | ||
<xsd:sequence> | ||
<xsd:element name="value" type="xsd:string" minOccurs="0" /> | ||
</xsd:sequence> | ||
<xsd:attribute name="name" use="required" type="xsd:string" /> | ||
<xsd:attribute name="type" type="xsd:string" /> | ||
<xsd:attribute name="mimetype" type="xsd:string" /> | ||
<xsd:attribute ref="xml:space" /> | ||
</xsd:complexType> | ||
</xsd:element> | ||
<xsd:element name="assembly"> | ||
<xsd:complexType> | ||
<xsd:attribute name="alias" type="xsd:string" /> | ||
<xsd:attribute name="name" type="xsd:string" /> | ||
</xsd:complexType> | ||
</xsd:element> | ||
<xsd:element name="data"> | ||
<xsd:complexType> | ||
<xsd:sequence> | ||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | ||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> | ||
</xsd:sequence> | ||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> | ||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> | ||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> | ||
<xsd:attribute ref="xml:space" /> | ||
</xsd:complexType> | ||
</xsd:element> | ||
<xsd:element name="resheader"> | ||
<xsd:complexType> | ||
<xsd:sequence> | ||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | ||
</xsd:sequence> | ||
<xsd:attribute name="name" type="xsd:string" use="required" /> | ||
</xsd:complexType> | ||
</xsd:element> | ||
</xsd:choice> | ||
</xsd:complexType> | ||
</xsd:element> | ||
</xsd:schema> | ||
<resheader name="resmimetype"> | ||
<value>text/microsoft-resx</value> | ||
</resheader> | ||
<resheader name="version"> | ||
<value>2.0</value> | ||
</resheader> | ||
<resheader name="reader"> | ||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | ||
</resheader> | ||
<resheader name="writer"> | ||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | ||
</resheader> | ||
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> | ||
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> | ||
<value> | ||
AAABAAEAQEAQAAEABABoCgAAFgAAACgAAABAAAAAgAAAAAEABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA | ||
AABHTyYAFDnQAP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA | ||
AAAAAAAAMzMzMzMzMzMzMzMzMiIiIiIiIiMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMiIiIiIiIiIiMz | ||
MzMzMzMzMzMzMzMzMzMzMzMzMzMzMiIiIiACIiIiIjMzMzMzMzMzMzMzMzMzMzMzMzMzMzMiIiIAAAAA | ||
IiIiMzMzMzMzMzMzMzMzMzMzMzMzMzMzMiIiIAAAAAACIiIjMzMzMzMzMzMzMzMzMzMzMyIiIiIiIiIA | ||
AAAAAAAiIiIiIiIiMzMzMzMzMzMzMzMiIiIiIiIiIAAAAAAAAAIiIiIiIiIiMzMzMzMzMzMzMiIiIiIi | ||
IiIiAAAAAAAAIiIiIiIiIiIjMzMzMzMzMzMiIiIiICIiIiIgAAAAAAIiIiIiAiIiIiIzMzMzMzMzMiIi | ||
IgAAAiIiIiIAAAAAIiIiIgAAACIiIiMzMzMzMzMyIiIAAAACIiIiIiAAAAIiIiIiIAAAACIiIjMzMzMz | ||
MyIiIAAAAAIiICIiIgAAIiIiAiIgAAAAAiIiMzMzMzMzIiIAAAAAAiIgAiIiIAIiIiACIiAAAAAAIiIz | ||
MzMzMzIiIgAAAAACIiAAIiIiIiIiAAIiIAAAAAAiIiMzMzMzMiIgAAAAAAIiIAACIiIiIiAAAiIgAAAA | ||
AAIiIzMzMzMyIiAAAAAAAiIgAAAiIiIiAAACIiAAAAAAAiIjMzMzMzIiAAAAAAACIiAAAAIiIiAAAAIi | ||
IAAAAAACIiMzMzMzMiIAAAAAAAIiIAAAIiIiIgAAAiIgAAAAAAIiIzMzMzMyIiAAAAAAAiIgAAIiIiIi | ||
IAACIiAAAAAAAiIjMzMzMzIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiMzMzMzMiIiIiIiIiIiIiIi | ||
IiIiIiIiIiIiIiIiIiIiIzMzMzMiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiMzMzMiIiIiIiIiIi | ||
IiIiIiIiIiIiIiIiIiIiIiIiIiIiMzMiIiIiIAAAAAIiIiIiERERESIiIiIgAAAAAiIiIiIzMiIiIiIi | ||
AAAAAiIiIiEREREREiIiIiAAAAAiIiIiIiMiIiICIiIgAAACIiIiERERERERIiIiIAAAAiIiICIiIiIi | ||
IAAiIiIAAAIiIiERERERERESIiIgAAAiIiIAAiIiIiIAAAIiIiAAIiIiEREREREREREiIiIAAiIiIAAA | ||
IiIiIAAAACIiIgIiIiERERERERERERIiIiAiIiIAAAACIiIgAAAAAiIiIiIiIREREREREREREiIiIiIi | ||
IAAAAAIiIiAAAAAAIiIiIiIhERERERERERESIiIiIiIAAAAAAiIiAAAAAAACIiIiIiERERERERERERIi | ||
IiIiIAAAAAAAIiIAAAAAAAIiIiIiIREREREREREREiIiIiIgAAAAAAAiIiAAAAAAIiIiIiIhERERERER | ||
ERESIiIiIiIAAAAAAiIiIAAAAAIiIiIiIiERERERERERERIiIiIiIiAAAAACIiIgAAAAIiIiAiIiIRER | ||
EREREREREiIiICIiIgAAAAIiIiIAAAIiIiAAIiIiEREREREREREiIiIAAiIiIAAAIiIiIiAAIiIiAAAC | ||
IiIhEREREREREiIiIAAAIiIiAAIiIiIiIgIiIiAAAAIiIiIREREREREiIiIgAAAC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MzMzMzMzMzMzMzMyIiIiIiIiIiMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMiIiIiIi | ||
IiMzMzMzMzMzMzMzMzP///+AAf///////wAAf//////+AAA///////wAAD//////+AAAH/////AAAAAA | ||
D///wAAAAAAD//+AAAAAAAH//wAAAAAAAP/+AAAAAAAAf/4AAAAAAAA//AAAAAAAAD/8AAAAAAAAP/gA | ||
AAAAAAAf+AAAAAAAAB/4AAAAAAAAH/gAAAAAAAAf+AAAAAAAAB/4AAAAAAAAH/gAAAAAAAAf+AAAAAAA | ||
AB/wAAAAAAAAD+AAAAAAAAADwAAAAAAAAAOAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA | ||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA | ||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAcAAAAAAAAAD4AAAAAAAAAfwAAAAAAAAD/gA | ||
AAAAAAAf+AAAAAAAAB/4AAAAAAAAH/gAAAAAAAAf+AAAAAAAAB/4AAAAAAAAH/gAAAAAAAAf+AAAAAAA | ||
AB/8AAAAAAAAP/wAAAAAAAA//gAAAAAAAH/+AAAAAAAAf/8AAAAAAAD//4AAAAAAAf//4AAAAAAH///4 | ||
AAAAAB/////4AAAf//////wAAD///////gAAf///////AAD///////+AAf///w== | ||
</value> | ||
</data> | ||
</root> |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
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 Nucleus.PkgMaker | ||
{ | ||
public partial class MainForm : BaseForm | ||
{ | ||
public MainForm() | ||
{ | ||
InitializeComponent(); | ||
} | ||
} | ||
} |
Oops, something went wrong.
b55d001
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mhh.. You sure this commit is right?
When the title makes perhaps for 5% of the changes?
b55d001
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lucas doesn't seem to care about commit titles... 😏
The whole commit text is "updated README.md
updated namespaces in a ton of files
@lucasassislar you should probably give another first line when commiting various fixes 🙌
b55d001
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While we are at it, he/somebody should also get to read a fuckton of other remarks I made in other commits
...
And check/answer at least some issues.
b55d001
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I`m sorry, I'll be sure to read these as they come in. Trying to improve, know I don't really respect many rules but I'll be dialing the retardedness back kk
Also there's some of the stuff that I just flat out don't know (self-taught Git, I'll be reading more into it as I think I should know more)