diff options
Diffstat (limited to 'Projects/UGEditor')
-rw-r--r-- | Projects/UGEditor/.config/dotnet-tools.json | 36 | ||||
-rw-r--r-- | Projects/UGEditor/Content/Content.mgcb | 15 | ||||
-rw-r--r-- | Projects/UGEditor/Game1.cs | 52 | ||||
-rw-r--r-- | Projects/UGEditor/Icon.bmp | bin | 0 -> 16522 bytes | |||
-rw-r--r-- | Projects/UGEditor/Icon.ico | bin | 0 -> 4286 bytes | |||
-rw-r--r-- | Projects/UGEditor/Icon.png | bin | 0 -> 1946 bytes | |||
-rw-r--r-- | Projects/UGEditor/Program.cs | 3 | ||||
-rw-r--r-- | Projects/UGEditor/UGEditor.csproj | 44 | ||||
-rw-r--r-- | Projects/UGEditor/app.manifest | 43 | ||||
-rw-r--r-- | Projects/UGEditor/c-sharp-80x80.ico | bin | 0 -> 26622 bytes |
10 files changed, 193 insertions, 0 deletions
diff --git a/Projects/UGEditor/.config/dotnet-tools.json b/Projects/UGEditor/.config/dotnet-tools.json new file mode 100644 index 0000000..efabe22 --- /dev/null +++ b/Projects/UGEditor/.config/dotnet-tools.json @@ -0,0 +1,36 @@ +{ + "version": 1, + "isRoot": true, + "tools": { + "dotnet-mgcb": { + "version": "3.8.1.303", + "commands": [ + "mgcb" + ] + }, + "dotnet-mgcb-editor": { + "version": "3.8.1.303", + "commands": [ + "mgcb-editor" + ] + }, + "dotnet-mgcb-editor-linux": { + "version": "3.8.1.303", + "commands": [ + "mgcb-editor-linux" + ] + }, + "dotnet-mgcb-editor-windows": { + "version": "3.8.1.303", + "commands": [ + "mgcb-editor-windows" + ] + }, + "dotnet-mgcb-editor-mac": { + "version": "3.8.1.303", + "commands": [ + "mgcb-editor-mac" + ] + } + } +}
\ No newline at end of file diff --git a/Projects/UGEditor/Content/Content.mgcb b/Projects/UGEditor/Content/Content.mgcb new file mode 100644 index 0000000..ddc4c36 --- /dev/null +++ b/Projects/UGEditor/Content/Content.mgcb @@ -0,0 +1,15 @@ + +#----------------------------- Global Properties ----------------------------# + +/outputDir:bin/$(Platform) +/intermediateDir:obj/$(Platform) +/platform:DesktopGL +/config: +/profile:Reach +/compress:False + +#-------------------------------- References --------------------------------# + + +#---------------------------------- Content ---------------------------------# + diff --git a/Projects/UGEditor/Game1.cs b/Projects/UGEditor/Game1.cs new file mode 100644 index 0000000..2c87347 --- /dev/null +++ b/Projects/UGEditor/Game1.cs @@ -0,0 +1,52 @@ +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Microsoft.Xna.Framework.Input; + +namespace UGEditor +{ + public class Game1 : Game + { + private GraphicsDeviceManager _graphics; + private SpriteBatch _spriteBatch; + + public Game1() + { + _graphics = new GraphicsDeviceManager(this); + Content.RootDirectory = "Content"; + IsMouseVisible = true; + } + + protected override void Initialize() + { + // TODO: Add your initialization logic here + + base.Initialize(); + } + + protected override void LoadContent() + { + _spriteBatch = new SpriteBatch(GraphicsDevice); + + // TODO: use this.Content to load your game content here + } + + protected override void Update(GameTime gameTime) + { + if (GamePad.GetState(PlayerIndex.One).Buttons.Back == ButtonState.Pressed || Keyboard.GetState().IsKeyDown(Keys.Escape)) + Exit(); + + // TODO: Add your update logic here + + base.Update(gameTime); + } + + protected override void Draw(GameTime gameTime) + { + GraphicsDevice.Clear(Color.CornflowerBlue); + + // TODO: Add your drawing code here + + base.Draw(gameTime); + } + } +} diff --git a/Projects/UGEditor/Icon.bmp b/Projects/UGEditor/Icon.bmp Binary files differnew file mode 100644 index 0000000..e5eaed9 --- /dev/null +++ b/Projects/UGEditor/Icon.bmp diff --git a/Projects/UGEditor/Icon.ico b/Projects/UGEditor/Icon.ico Binary files differnew file mode 100644 index 0000000..16f2525 --- /dev/null +++ b/Projects/UGEditor/Icon.ico diff --git a/Projects/UGEditor/Icon.png b/Projects/UGEditor/Icon.png Binary files differnew file mode 100644 index 0000000..f036ee9 --- /dev/null +++ b/Projects/UGEditor/Icon.png diff --git a/Projects/UGEditor/Program.cs b/Projects/UGEditor/Program.cs new file mode 100644 index 0000000..17a046b --- /dev/null +++ b/Projects/UGEditor/Program.cs @@ -0,0 +1,3 @@ + +using var game = new UGEditor.Game1(); +game.Run(); diff --git a/Projects/UGEditor/UGEditor.csproj b/Projects/UGEditor/UGEditor.csproj new file mode 100644 index 0000000..debddf1 --- /dev/null +++ b/Projects/UGEditor/UGEditor.csproj @@ -0,0 +1,44 @@ +<Project Sdk="Microsoft.NET.Sdk"> + <PropertyGroup> + <OutputType>WinExe</OutputType> + <TargetFramework>net6.0</TargetFramework> + <RollForward>Major</RollForward> + <PublishReadyToRun>false</PublishReadyToRun> + <TieredCompilation>false</TieredCompilation> + </PropertyGroup> + <PropertyGroup> + <ApplicationIcon>Icon.ico</ApplicationIcon> + <ApplicationManifest>app.manifest</ApplicationManifest> + <PackageIcon>Icon.png</PackageIcon> + <AssemblyName>UGEditor</AssemblyName> + </PropertyGroup> + <ItemGroup> + <None Remove="Icon.ico" /> + <None Remove="Icon.bmp" /> + </ItemGroup> + <ItemGroup> + <Content Include="Icon.ico" /> + </ItemGroup> + <ItemGroup> + <EmbeddedResource Include="Icon.ico"> + <LogicalName>Icon.ico</LogicalName> + </EmbeddedResource> + <EmbeddedResource Include="Icon.bmp"> + <LogicalName>Icon.bmp</LogicalName> + </EmbeddedResource> + </ItemGroup> + <ItemGroup> + <PackageReference Include="MonoGame.Framework.DesktopGL" Version="3.8.1.303" /> + <PackageReference Include="MonoGame.Content.Builder.Task" Version="3.8.1.303" /> + </ItemGroup> + <ItemGroup> + <None Update="icon.png"> + <Pack>True</Pack> + <PackagePath>\</PackagePath> + </None> + </ItemGroup> + <Target Name="RestoreDotnetTools" BeforeTargets="Restore"> + <Message Text="Restoring dotnet tools" Importance="High" /> + <Exec Command="dotnet tool restore" /> + </Target> +</Project>
\ No newline at end of file diff --git a/Projects/UGEditor/app.manifest b/Projects/UGEditor/app.manifest new file mode 100644 index 0000000..991f61c --- /dev/null +++ b/Projects/UGEditor/app.manifest @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="utf-8"?> +<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1"> + <assemblyIdentity version="1.0.0.0" name="UGEditor"/> + <trustInfo xmlns="urn:schemas-microsoft-com:asm.v2"> + <security> + <requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3"> + <requestedExecutionLevel level="asInvoker" uiAccess="false" /> + </requestedPrivileges> + </security> + </trustInfo> + + <compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1"> + <application> + <!-- A list of the Windows versions that this application has been tested on and is + is designed to work with. Uncomment the appropriate elements and Windows will + automatically selected the most compatible environment. --> + + <!-- Windows Vista --> + <supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}" /> + + <!-- Windows 7 --> + <supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}" /> + + <!-- Windows 8 --> + <supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}" /> + + <!-- Windows 8.1 --> + <supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}" /> + + <!-- Windows 10 --> + <supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}" /> + + </application> + </compatibility> + + <application xmlns="urn:schemas-microsoft-com:asm.v3"> + <windowsSettings> + <dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true/pm</dpiAware> + <dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">permonitorv2,permonitor</dpiAwareness> + </windowsSettings> + </application> + +</assembly> diff --git a/Projects/UGEditor/c-sharp-80x80.ico b/Projects/UGEditor/c-sharp-80x80.ico Binary files differnew file mode 100644 index 0000000..fa04363 --- /dev/null +++ b/Projects/UGEditor/c-sharp-80x80.ico |