diff --git a/UnionPatcher.Gui.Linux/Program.cs b/UnionPatcher.Gui.Linux/Program.cs new file mode 100644 index 0000000..c8c4fc2 --- /dev/null +++ b/UnionPatcher.Gui.Linux/Program.cs @@ -0,0 +1,7 @@ +namespace UnionPatcher.Gui.Linux { + public static class Program { + public static void Main(string[] args) { + Gui.Show(); + } + } +} \ No newline at end of file diff --git a/UnionPatcher.Gui.Linux/UnionPatcher.Gui.Linux.csproj b/UnionPatcher.Gui.Linux/UnionPatcher.Gui.Linux.csproj new file mode 100644 index 0000000..79b1a13 --- /dev/null +++ b/UnionPatcher.Gui.Linux/UnionPatcher.Gui.Linux.csproj @@ -0,0 +1,16 @@ + + + + Exe + net5.0 + + + + + + + + + + + diff --git a/UnionPatcher.Gui.Windows/Program.cs b/UnionPatcher.Gui.Windows/Program.cs index 400f856..6a80b24 100644 --- a/UnionPatcher.Gui.Windows/Program.cs +++ b/UnionPatcher.Gui.Windows/Program.cs @@ -3,7 +3,7 @@ namespace UnionPatcher.Gui.Windows { public static class Program { public static void Main(string[] args) { - new Application().Run(new TestForm()); + Gui.Show(); } } } \ No newline at end of file diff --git a/UnionPatcher.Gui/Gui.cs b/UnionPatcher.Gui/Gui.cs index ca1c3ce..fbbf6f5 100644 --- a/UnionPatcher.Gui/Gui.cs +++ b/UnionPatcher.Gui/Gui.cs @@ -4,7 +4,7 @@ using Eto.Forms; namespace UnionPatcher.Gui { public static class Gui { public static void Show() { - new Application().Run(new TestForm()); + new Application().Run(new MainForm()); } } } \ No newline at end of file diff --git a/UnionPatcher.Gui/MainForm.cs b/UnionPatcher.Gui/MainForm.cs new file mode 100644 index 0000000..b143840 --- /dev/null +++ b/UnionPatcher.Gui/MainForm.cs @@ -0,0 +1,33 @@ +using Eto.Drawing; +using Eto.Forms; + +namespace UnionPatcher.Gui { + public class MainForm : Form { + public MainForm() { + this.Title = "Union Patcher"; + this.ClientSize = new Size(500, 160); + this.Content = new TableLayout { + Spacing = new Size(5,5), + Padding = new Padding(10, 10, 10, 10), + Rows = { + new TableRow( + new TableCell(new Label { Text = "EBOOT.elf: ", VerticalAlignment = VerticalAlignment.Center }), + new TableCell(new FilePicker()) + ), + new TableRow( + new TableCell(new Label { Text = "Server URL: ", VerticalAlignment = VerticalAlignment.Center }), + new TableCell(new TextBox()) + ), + new TableRow( + new TableCell(new Label { Text = "Output filename: ", VerticalAlignment = VerticalAlignment.Center }), + new TableCell(new TextBox()) + ), + new TableRow( + new TableCell(new Button { Text = "Help" }), + new TableCell(new Button { Text = "Patch!" }) + ), + }, + }; + } + } +} \ No newline at end of file diff --git a/UnionPatcher.Gui/TestForm.cs b/UnionPatcher.Gui/TestForm.cs deleted file mode 100644 index f01f4d9..0000000 --- a/UnionPatcher.Gui/TestForm.cs +++ /dev/null @@ -1,12 +0,0 @@ -using Eto.Drawing; -using Eto.Forms; - -namespace UnionPatcher.Gui { - public class TestForm : Form { - public TestForm() { - this.Title = "test"; - this.ClientSize = new Size(200, 200); - this.Content = new Label { Text = "i'm stuff" }; - } - } -} \ No newline at end of file diff --git a/UnionPatcher.Gui/UnionPatcher.Gui.csproj b/UnionPatcher.Gui/UnionPatcher.Gui.csproj index 023a8dd..c3c1b7b 100644 --- a/UnionPatcher.Gui/UnionPatcher.Gui.csproj +++ b/UnionPatcher.Gui/UnionPatcher.Gui.csproj @@ -7,7 +7,6 @@ - diff --git a/UnionPatcher.sln b/UnionPatcher.sln index 2a7a1c0..2c2e17c 100644 --- a/UnionPatcher.sln +++ b/UnionPatcher.sln @@ -4,6 +4,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UnionPatcher.Gui", "UnionPa EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UnionPatcher.Gui.Windows", "UnionPatcher.Gui.Windows\UnionPatcher.Gui.Windows.csproj", "{5F8CDEA2-B483-40D1-B1FB-EF8EC667185A}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UnionPatcher.Gui.Linux", "UnionPatcher.Gui.Linux\UnionPatcher.Gui.Linux.csproj", "{55DFA962-3EC5-44E4-9F93-FACF3E7EEBB2}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -18,5 +20,9 @@ Global {5F8CDEA2-B483-40D1-B1FB-EF8EC667185A}.Debug|Any CPU.Build.0 = Debug|Any CPU {5F8CDEA2-B483-40D1-B1FB-EF8EC667185A}.Release|Any CPU.ActiveCfg = Release|Any CPU {5F8CDEA2-B483-40D1-B1FB-EF8EC667185A}.Release|Any CPU.Build.0 = Release|Any CPU + {55DFA962-3EC5-44E4-9F93-FACF3E7EEBB2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {55DFA962-3EC5-44E4-9F93-FACF3E7EEBB2}.Debug|Any CPU.Build.0 = Debug|Any CPU + {55DFA962-3EC5-44E4-9F93-FACF3E7EEBB2}.Release|Any CPU.ActiveCfg = Release|Any CPU + {55DFA962-3EC5-44E4-9F93-FACF3E7EEBB2}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection EndGlobal diff --git a/UnionPatcher.sln.DotSettings b/UnionPatcher.sln.DotSettings new file mode 100644 index 0000000..0be9dcc --- /dev/null +++ b/UnionPatcher.sln.DotSettings @@ -0,0 +1,2 @@ + + True \ No newline at end of file