diff --git a/.gitignore b/.gitignore index 57940fd..3e662a0 100644 --- a/.gitignore +++ b/.gitignore @@ -77,3 +77,17 @@ fabric.properties # Android studio 3.1+ serialized cache file .idea/caches/build_file_checksums.ser + Build results +[Dd]ebug/ +[Dd]ebugPublic/ +[Rr]elease/ +[Rr]eleases/ +x64/ +x86/ +[Aa][Rr][Mm]/ +[Aa][Rr][Mm]64/ +bld/ +[Bb]in/ +[Oo]bj/ +[Ll]og/ + diff --git a/Luski.sln b/Luski.sln new file mode 100644 index 0000000..2944c7e --- /dev/null +++ b/Luski.sln @@ -0,0 +1,16 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Luski", "Luski\Luski.csproj", "{02A83482-752B-4EB8-A952-51961D6EE684}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {02A83482-752B-4EB8-A952-51961D6EE684}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {02A83482-752B-4EB8-A952-51961D6EE684}.Debug|Any CPU.Build.0 = Debug|Any CPU + {02A83482-752B-4EB8-A952-51961D6EE684}.Release|Any CPU.ActiveCfg = Release|Any CPU + {02A83482-752B-4EB8-A952-51961D6EE684}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection +EndGlobal diff --git a/Luski/GUI/StartPage/StartPage.cs b/Luski/GUI/StartPage/StartPage.cs new file mode 100644 index 0000000..69c98b1 --- /dev/null +++ b/Luski/GUI/StartPage/StartPage.cs @@ -0,0 +1,23 @@ +using System; +using GraphicsManager; +using OpenTK.Windowing.Desktop; +using OpenTK.Windowing.Common; + +namespace Luski.GUI.StartPage; + +public class StartPage : Window +{ + private static readonly NativeWindowSettings Settings = new() + { + Title = "Luski StartPage", + WindowBorder = WindowBorder.Fixed, + APIVersion = new Version(3, 2), + StartFocused = true, + Size = new OpenTK.Mathematics.Vector2i(481, 838), + }; + + public StartPage() : base(Settings) + { + Controls.Add(new UI.Login()); + } +} \ No newline at end of file diff --git a/Luski/GUI/StartPage/UI/Login.cs b/Luski/GUI/StartPage/UI/Login.cs new file mode 100644 index 0000000..b44f621 --- /dev/null +++ b/Luski/GUI/StartPage/UI/Login.cs @@ -0,0 +1,22 @@ +using System.Reflection; +using GraphicsManager; +using GraphicsManager.Objects; +using GraphicsManager.Objects.Core; +using OpenTK.Mathematics; + +namespace Luski.GUI.StartPage.UI; + +public class Login : UserControl +{ + public Login() + { + Size = new(481, 838); + Controls.Add(new Rectangle(new Texture(Tools.GetResourceBytes(Assembly.GetExecutingAssembly(), "Luski.Resources.Textures.Luski.png"))) { Location = new(103,8), Size = new(276, 289)}); + Controls.Add(new Label() { Location = new(173,305), Text = "Luski", PixelHeight = 18, Color = new(0.9529f, 0.46666f, 0.203921569f, 1f) }); + Controls.Add(new Label() { Location = new(34,395), Text = "Email"}); + Controls.Add(new Textbox() { Location = new(41,431), Size = new(401,41), InsideColor = new(28,28,28,255), BorderColor = Color4.DarkCyan }); + Controls.Add(new Label() { Location = new(34,521), Text = "Password" }); + Controls.Add(new Textbox() { Location = new(41,562), Size = new(401, 41), InsideColor = new(28, 28, 28, 255), BorderColor = Color4.DarkCyan }); + Controls.Add(new Label() { Location = new(36,664), Text = "Create Account" }); + } +} diff --git a/Luski/Luski.csproj b/Luski/Luski.csproj new file mode 100644 index 0000000..f381381 --- /dev/null +++ b/Luski/Luski.csproj @@ -0,0 +1,19 @@ + + + + Exe + net6.0 + enable + enable + + + + + + + + + + + + diff --git a/Luski/Program.cs b/Luski/Program.cs new file mode 100644 index 0000000..a2706af --- /dev/null +++ b/Luski/Program.cs @@ -0,0 +1,5 @@ +using Luski.GUI.StartPage; + +var t = new StartPage(); +t.StartRender(); +t.Dispose(); \ No newline at end of file diff --git a/Luski/Resources/Textures/Luski.png b/Luski/Resources/Textures/Luski.png new file mode 100644 index 0000000..9871274 Binary files /dev/null and b/Luski/Resources/Textures/Luski.png differ