mirror of
https://github.com/LBPUnion/UnionPatcher.git
synced 2025-04-23 13:05:17 +00:00
Design UI
This commit is contained in:
parent
d7fdb034cd
commit
d0ea2955a0
9 changed files with 66 additions and 15 deletions
7
UnionPatcher.Gui.Linux/Program.cs
Normal file
7
UnionPatcher.Gui.Linux/Program.cs
Normal file
|
@ -0,0 +1,7 @@
|
|||
namespace UnionPatcher.Gui.Linux {
|
||||
public static class Program {
|
||||
public static void Main(string[] args) {
|
||||
Gui.Show();
|
||||
}
|
||||
}
|
||||
}
|
16
UnionPatcher.Gui.Linux/UnionPatcher.Gui.Linux.csproj
Normal file
16
UnionPatcher.Gui.Linux/UnionPatcher.Gui.Linux.csproj
Normal file
|
@ -0,0 +1,16 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net5.0</TargetFramework>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Eto.Platform.Gtk" Version="2.5.11" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\UnionPatcher.Gui\UnionPatcher.Gui.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
}
|
33
UnionPatcher.Gui/MainForm.cs
Normal file
33
UnionPatcher.Gui/MainForm.cs
Normal file
|
@ -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!" })
|
||||
),
|
||||
},
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
|
@ -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" };
|
||||
}
|
||||
}
|
||||
}
|
|
@ -7,7 +7,6 @@
|
|||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Eto.Forms" Version="2.5.11" />
|
||||
<PackageReference Include="Eto.Platform.Gtk" Version="2.5.11" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
|
|
@ -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
|
||||
|
|
2
UnionPatcher.sln.DotSettings
Normal file
2
UnionPatcher.sln.DotSettings
Normal file
|
@ -0,0 +1,2 @@
|
|||
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
|
||||
<s:Boolean x:Key="/Default/UserDictionary/Words/=EBOOT/@EntryIndexedValue">True</s:Boolean></wpf:ResourceDictionary>
|
Loading…
Add table
Reference in a new issue